RSE
Release 3.0

org.eclipse.rse.subsystems.shells.core.subsystems
Class RemoteCmdSubSystem.RunCommandJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.rse.core.subsystems.SubSystem.SubSystemOperationJob
                  extended by org.eclipse.rse.subsystems.shells.core.subsystems.RemoteCmdSubSystem.RunCommandJob
All Implemented Interfaces:
Comparable, IAdaptable
Enclosing class:
RemoteCmdSubSystem

protected class RemoteCmdSubSystem.RunCommandJob
extends SubSystem.SubSystemOperationJob

Represents the subsystem operation of running a remote command.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.rse.core.subsystems.SubSystem.SubSystemOperationJob
SubSystem.SubSystemOperationJob.ContextRunnable
 
Field Summary
protected  String _cmd
           
protected  Object _runContext
           
protected  boolean _runInterpret
           
 
Fields inherited from class org.eclipse.rse.core.subsystems.SubSystem.SubSystemOperationJob
_hasStarted, runOutputs, runOutputStrings
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
RemoteCmdSubSystem.RunCommandJob(String cmd, Object runContext, boolean runInterpret)
          Creates a new RunCommandJob
 
Method Summary
 void performOperation(IProgressMonitor mon)
          Override this method with the actual operation performed by your subsystem operation.
 
Methods inherited from class org.eclipse.rse.core.subsystems.SubSystem.SubSystemOperationJob
getOutputs, getOutputStrings, hasStarted, run, runInContext
 
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
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

_cmd

protected String _cmd

_runContext

protected Object _runContext

_runInterpret

protected boolean _runInterpret
Constructor Detail

RemoteCmdSubSystem.RunCommandJob

public RemoteCmdSubSystem.RunCommandJob(String cmd,
                                        Object runContext,
                                        boolean runInterpret)
Creates a new RunCommandJob

Parameters:
cmd - The remote command to run
runContext - The context in which to run the command
runInterpret - Whether or not to interpret results of the command as RSE objects
Method Detail

performOperation

public void performOperation(IProgressMonitor mon)
                      throws InterruptedException,
                             InvocationTargetException,
                             Exception
Description copied from class: SubSystem.SubSystemOperationJob
Override this method with the actual operation performed by your subsystem operation. Make sure to report progress to the Progress monitor.

Specified by:
performOperation in class SubSystem.SubSystemOperationJob
Throws:
InterruptedException - if the user presses cancel
InvocationTargetException - if there is some error performing the operation
Exception - if there is some other error

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.