|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.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 class org.eclipse.rse.core.model.RSEModelObject |
|---|
_isDirty, _wasRestored |
| Constructor Summary | |
|---|---|
ProcessServiceSubSystem(IHost host,
IConnectorService connectorService,
IProcessService hostProcessService,
IHostProcessToRemoteProcessAdapter adapter)
|
|
| Method Summary | |
|---|---|
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()
|
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. |
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 |
switchServiceFactory(IServiceSubSystemConfiguration fact)
|
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 |
|---|
compareStrings, getDescription, isDirty, setDirty, setWasRestored, wasRestored |
| Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| 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 |
| 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.persistance.IRSEPersistableContainer |
|---|
commit, isDirty, setDirty, 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 IRemoteProcessSubSystemgetRemoteProcessObject in class RemoteProcessSubSystemImplpid - The pid of the process to return
SystemMessageException
public String[] getSignalTypes()
throws SystemMessageException
IRemoteProcessSubSystem
getSignalTypes in interface IRemoteProcessSubSystemgetSignalTypes in class RemoteProcessSubSystemImplSystemMessageException
public boolean kill(IRemoteProcess process,
String signal)
throws SystemMessageException
IRemoteProcessSubSystem
kill in interface IRemoteProcessSubSystemkill in class RemoteProcessSubSystemImplSystemMessageException
public IRemoteProcess[] listAllProcesses(IHostProcessFilter processFilter,
IRemoteProcessContext context,
IProgressMonitor monitor)
throws InterruptedException,
SystemMessageException
IRemoteProcessSubSystem
listAllProcesses in interface IRemoteProcessSubSystemlistAllProcesses in class RemoteProcessSubSystemImplInterruptedException
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
SystemMessageExceptionpublic void switchServiceFactory(IServiceSubSystemConfiguration fact)
switchServiceFactory in interface IServiceSubSystempublic Class getServiceType()
getServiceType in interface IServiceSubSystempublic void initializeSubSystem(IProgressMonitor monitor)
ISubSystemIConnectorService after it connects.
initializeSubSystem in interface ISubSysteminitializeSubSystem in class RemoteProcessSubSystemImplpublic void uninitializeSubSystem(IProgressMonitor monitor)
ISubSystemIConnectorService after it disconnects
uninitializeSubSystem in interface ISubSystemuninitializeSubSystem in class RemoteProcessSubSystemImpl
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||