Package com._1c.g5.v8.dt.core.lifecycle
Class SafeProjectRestartJob
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.core.internal.jobs.InternalJob
-
- org.eclipse.core.runtime.jobs.Job
-
- com._1c.g5.v8.dt.core.lifecycle.ServiceLifecycleJob
-
- com._1c.g5.v8.dt.core.lifecycle.ProjectRestartJob
-
- com._1c.g5.v8.dt.core.lifecycle.SafeProjectRestartJob
-
- All Implemented Interfaces:
Comparable
,org.eclipse.core.runtime.IAdaptable
public class SafeProjectRestartJob extends ProjectRestartJob
Job to stop and re-start project service lifecycle. UnlikeProjectRestartJob
this job startsexclusive operation
before performing restart. In particular, this means- The job waits completion of a running exclusive operation.
- The job is automatically canceled if the project was stopped before the operation was started.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.core.lifecycle.ProjectRestartJob
projects
-
Fields inherited from class com._1c.g5.v8.dt.core.lifecycle.ServiceLifecycleJob
FAMILY
-
-
Constructor Summary
Constructors Constructor Description SafeProjectRestartJob(IWorkspaceOrchestrator workspaceOrchestrator, IDtProject project)
Creates an instance of the job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.core.runtime.IStatus
run(org.eclipse.core.runtime.IProgressMonitor monitor)
-
Methods inherited from class com._1c.g5.v8.dt.core.lifecycle.ServiceLifecycleJob
belongsTo
-
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, cancel, canceling, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
-
-
-
-
Constructor Detail
-
SafeProjectRestartJob
public SafeProjectRestartJob(IWorkspaceOrchestrator workspaceOrchestrator, IDtProject project)
Creates an instance of the job.- Parameters:
workspaceOrchestrator
- the workspace orchestrator, cannot benull
project
- the project, cannot benull
-
-
Method Detail
-
run
protected org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
- Overrides:
run
in classProjectRestartJob
-
-