|
RSE Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.SubSystem
org.eclipse.rse.subsystems.processes.core.subsystem.impl.RemoteProcessSubSystemImpl
org.eclipse.rse.subsystems.processes.servicesubsystem.ProcessServiceSubSystem
The subsystem that, coupled with a ProcessService implementation, can query and kill remote processes on a remote system.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.rse.core.subsystems.SubSystem |
SubSystem.ChangeStatusJob, SubSystem.ConnectJob, SubSystem.DisconnectJob, SubSystem.DisplayErrorMessageJob, SubSystem.GetPropertiesJob, SubSystem.GetPropertyJob, SubSystem.ResolveAbsoluteJob, SubSystem.ResolveAbsolutesJob, SubSystem.ResolveRelativeJob, SubSystem.SetPropertiesJob, SubSystem.SetPropertyJob, SubSystem.SubSystemOperationJob, SubSystem.SystemMessageDialogRunnable |
| Field Summary | |
protected IProcessService |
_hostProcessService
|
protected IHostProcessToRemoteProcessAdapter |
_hostProcessToRemoteProcessAdapter
|
| Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
NO_CHILDREN |
| Constructor Summary | |
ProcessServiceSubSystem(IHost host,
IConnectorService connectorService,
IProcessService hostProcessService,
IHostProcessToRemoteProcessAdapter adapter)
|
|
| Method Summary | |
boolean |
canSwitchTo(ISubSystemConfiguration configuration)
Determine is this subsystem is compatible with this specified configuration. |
IHostProcessToRemoteProcessAdapter |
getHostProcessToRemoteProcessAdapter()
|
IProcessService |
getProcessService()
|
IRemoteProcess |
getRemoteProcessObject(long pid)
Returns the IRemoteProcess representing the process on the remote machine that has a certain pid. |
Class |
getServiceType()
Returns the interface type (i.e. a Class object that is an Interface) of a service subsystem. |
String[] |
getSignalTypes()
Returns a list of the types of signals that can be sent to a process on the remote system. |
void |
initializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it connects successfully. |
protected void |
internalSwitchSubSystemConfiguration(ISubSystemConfiguration configuration)
Perform the subsystem specific processing required to complete a subsystem configuration switch for a service subsystem. |
boolean |
kill(IRemoteProcess process,
String signal)
Kill the given process. |
IRemoteProcess[] |
listAllProcesses(IHostProcessFilter processFilter,
IRemoteProcessContext context,
IProgressMonitor monitor)
Return a list of all processes on the remote system. |
IRemoteProcess[] |
listChildProcesses(IRemoteProcess parent,
IHostProcessFilter processFilter,
IRemoteProcessContext context,
IProgressMonitor monitor)
Return a list of remote child processes of the given process, which match the filter. |
IRemoteProcess[] |
listChildProcesses(IRemoteProcess parent,
IRemoteProcessContext context,
IProgressMonitor monitor)
Return a list of all remote child processes of the given parent process on the remote system |
void |
setHostProcessToRemoteProcessAdapter(IHostProcessToRemoteProcessAdapter hostProcessAdapter)
Sets the associated adapter for converting IHostProcess objects to IRemoteProcess objects |
void |
setProcessService(IProcessService service)
Sets which process service is associated with and used by this subsystem. |
void |
uninitializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it disconnects |
| Methods inherited from class org.eclipse.rse.subsystems.processes.core.subsystem.impl.RemoteProcessSubSystemImpl |
communicationsStateChange, getObjectWithAbsoluteName, getParentProcess, getParentRemoteProcessSubSystemConfiguration, internalResolveFilterString, isCaseSensitive, isPassiveCommunicationsListener, listRoots |
| Methods inherited from class org.eclipse.rse.core.model.RSEModelObject |
getDescription |
| Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from class org.eclipse.rse.core.model.RSEPersistableObject |
compareStrings, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.subsystems.processes.core.subsystem.IRemoteProcessSubSystem |
getParentProcess, getParentRemoteProcessSubSystemConfiguration, isCaseSensitive, listRoots |
| Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteObjectResolver |
getObjectWithAbsoluteName, getObjectWithAbsoluteName |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
contains, isConflicting |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
getDescription |
| Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| Field Detail |
protected IProcessService _hostProcessService
protected IHostProcessToRemoteProcessAdapter _hostProcessToRemoteProcessAdapter
| Constructor Detail |
public ProcessServiceSubSystem(IHost host,
IConnectorService connectorService,
IProcessService hostProcessService,
IHostProcessToRemoteProcessAdapter adapter)
| Method Detail |
public IProcessService getProcessService()
public void setProcessService(IProcessService service)
service - The IProcessService with which to associate this subsystem.public IHostProcessToRemoteProcessAdapter getHostProcessToRemoteProcessAdapter()
public void setHostProcessToRemoteProcessAdapter(IHostProcessToRemoteProcessAdapter hostProcessAdapter)
public IRemoteProcess getRemoteProcessObject(long pid)
throws SystemMessageException
getRemoteProcessObject in interface IRemoteProcessSubSystempid - The pid of the process to return
SystemMessageException
public String[] getSignalTypes()
throws SystemMessageException
IRemoteProcessSubSystem
getSignalTypes in interface IRemoteProcessSubSystemSystemMessageException
public boolean kill(IRemoteProcess process,
String signal)
throws SystemMessageException
IRemoteProcessSubSystem
kill in interface IRemoteProcessSubSystemprocess - represents the object to be killed.
SystemMessageException
public IRemoteProcess[] listAllProcesses(IHostProcessFilter processFilter,
IRemoteProcessContext context,
IProgressMonitor monitor)
throws InterruptedException,
SystemMessageException
IRemoteProcessSubSystem
listAllProcesses in interface IRemoteProcessSubSystemprocessFilter - filter the results according to this objectcontext - A context object that will be associated with each returned processmonitor - the progress monitor
InterruptedException
SystemMessageException
public IRemoteProcess[] listChildProcesses(IRemoteProcess parent,
IHostProcessFilter processFilter,
IRemoteProcessContext context,
IProgressMonitor monitor)
throws SystemMessageException
IRemoteProcessSubSystem
listChildProcesses in interface IRemoteProcessSubSystemparent - The parent process whose children to listprocessFilter - The process filter to subset the list by, or null to return all child processes.context - A context object that will be associated with each returned processmonitor - the progress monitor
SystemMessageException
public IRemoteProcess[] listChildProcesses(IRemoteProcess parent,
IRemoteProcessContext context,
IProgressMonitor monitor)
throws SystemMessageException
IRemoteProcessSubSystem
listChildProcesses in interface IRemoteProcessSubSystemparent - The parent process whose children to listcontext - A context object that will be associated with each returned processmonitor - the progress monitor
SystemMessageExceptionprotected void internalSwitchSubSystemConfiguration(ISubSystemConfiguration configuration)
SubSystem
internalSwitchSubSystemConfiguration in class SubSystemconfiguration - the configuration this subsystem should use from
this point.public boolean canSwitchTo(ISubSystemConfiguration configuration)
ISubSystem
canSwitchTo in interface ISubSystemcanSwitchTo in class SubSystemconfiguration - the configuration to which this subsystem may switch
ISubSystem.canSwitchTo(ISubSystemConfiguration)public Class getServiceType()
ISubSystem
getServiceType in interface ISubSystemgetServiceType in class SubSystemISubSystem.getServiceType()public void initializeSubSystem(IProgressMonitor monitor)
ISubSystemIConnectorService after it connects successfully. This call is
always made on a background Thread, so it's allowed to be long-running.
initializeSubSystem in interface ISubSysteminitializeSubSystem in class RemoteProcessSubSystemImplpublic void uninitializeSubSystem(IProgressMonitor monitor)
ISubSystemIConnectorService after it disconnects
uninitializeSubSystem in interface ISubSystemuninitializeSubSystem in class RemoteProcessSubSystemImpl
|
RSE Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||