|
org.eclipse.rse.core.subsystems
Class SubSystem.SubSystemOperationJob
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.rse.core.subsystems.SubSystem.SubSystemOperationJob
-
All Implemented Interfaces:
-
Comparable,
IAdaptable
-
Direct Known Subclasses:
-
RemoteCmdSubSystem.CancelShellJob,
RemoteCmdSubSystem.RemoveShellJob,
RemoteCmdSubSystem.RunCommandJob,
RemoteCmdSubSystem.RunShellJob,
RemoteCmdSubSystem.SendCommandToShellJob,
SubSystem.ConnectJob,
SubSystem.DisconnectJob,
SubSystem.GetPropertiesJob,
SubSystem.GetPropertyJob,
SubSystem.ResolveAbsoluteJob,
SubSystem.ResolveAbsolutesJob,
SubSystem.ResolveRelativeJob,
SubSystem.SetPropertiesJob,
SubSystem.SetPropertyJob
-
Enclosing class:
-
SubSystem
-
protected abstract class SubSystem.SubSystemOperationJob
- extends
Job
Represents an operation that can be performed by the subsystem. Since this class
extends Job, it is run on a separate thread, but reports progress to the Main thread.
Takes care of some common error handling and Status creation for SubSystem Operations.
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
|
manager
|
Methods inherited from class org.eclipse.core.runtime.jobs.
Job
|
addJobChangeListener,
belongsTo,
cancel,
canceling,
done,
getJobManager,
getName,
getPriority,
getProperty,
getResult,
getRule,
getState,
getThread,
isBlocking,
isSystem,
isUser,
join,
removeJobChangeListener,
schedule,
schedule,
setName,
setPriority,
setProgressGroup,
setProperty,
setRule,
setSystem,
setThread,
setUser,
shouldRun,
shouldSchedule,
sleep,
wakeUp,
wakeUp
|
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
|
compareTo, toString
|
runOutputs
protected
Object[] runOutputs
runOutputStrings
protected
String[] runOutputStrings
_hasStarted
protected boolean _hasStarted
SubSystem.SubSystemOperationJob
public SubSystem.SubSystemOperationJob(
String operationName)
performOperation
public abstract void performOperation(
IProgressMonitor monitor)
throws
InterruptedException,
InvocationTargetException,
Exception
- Override this method with the actual operation performed by your subsystem operation. Make sure to
report progress to the Progress monitor.
-
-
Throws:
-
InterruptedException
- if the user presses cancel
-
InvocationTargetException
- if there is some error performing the operation
-
Exception
- if there is some other error
getOutputs
public
Object[] getOutputs()
- SubSystemOperationJobs are designed to be run synchronously - if you require output from them. Clients can query any output
using getOutputs() or getOutputStrings().
-
getOutputStrings
public
String[] getOutputStrings()
- SubSystemOperationJobs are designed to be run synchronously - if you require output from them. Clients can query any output
using getOutputs() or getOutputStrings().
-
runInContext
public
IStatus runInContext(
IRunnableContext context)
-
hasStarted
public boolean hasStarted()
-
run
public
IStatus run(
IProgressMonitor monitor)
-
-
Specified by:
-
run
in class
Job
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|