|
RSE Release 3.3 |
|||||||||
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
public class ProcessServiceSubSystem
The subsystem that, coupled with a ProcessService implementation, can query and kill remote processes on a remote system.
Nested Class Summary |
---|
Nested classes/interfaces 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 if a service subsystem is capable of switching to this new 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()
Return the service type for this 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)
Initialize this subsystem instance after the corresponding IConnectorService connect method finishes. |
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)
Uninitialize this subsystem just after disconnect. |
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, clonePropertySets, 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, clonePropertySets, 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 IRemoteProcessSubSystem
pid
- The pid of the process to return
SystemMessageException
public String[] getSignalTypes() throws SystemMessageException
IRemoteProcessSubSystem
getSignalTypes
in interface IRemoteProcessSubSystem
SystemMessageException
public boolean kill(IRemoteProcess process, String signal) throws SystemMessageException
IRemoteProcessSubSystem
kill
in interface IRemoteProcessSubSystem
process
- represents the object to be killed.
SystemMessageException
public IRemoteProcess[] listAllProcesses(IHostProcessFilter processFilter, IRemoteProcessContext context, IProgressMonitor monitor) throws InterruptedException, SystemMessageException
IRemoteProcessSubSystem
listAllProcesses
in interface IRemoteProcessSubSystem
processFilter
- 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 IRemoteProcessSubSystem
parent
- 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 IRemoteProcessSubSystem
parent
- The parent process whose children to listcontext
- A context object that will be associated with each returned processmonitor
- the progress monitor
SystemMessageException
protected void internalSwitchSubSystemConfiguration(ISubSystemConfiguration configuration)
SubSystem
internalSwitchSubSystemConfiguration
in class SubSystem
configuration
- the configuration this subsystem should use from
this point.public boolean canSwitchTo(ISubSystemConfiguration configuration)
SubSystem
canSwitchTo
in interface ISubSystem
canSwitchTo
in class SubSystem
configuration
- the configuration to which this subsystem may switch
ISubSystem.canSwitchTo(ISubSystemConfiguration)
public Class getServiceType()
SubSystem
getServiceType
in interface ISubSystem
getServiceType
in class SubSystem
ISubSystem.getServiceType()
public void initializeSubSystem(IProgressMonitor monitor) throws SystemMessageException
SubSystem
IConnectorService
connect method finishes. This method should be
overridden if any initialization for the subsystem needs to occur at this
time.
The default implementation currently does nothing, but overriding methods should call super before doing any other work.
initializeSubSystem
in interface ISubSystem
initializeSubSystem
in class RemoteProcessSubSystemImpl
monitor
- a progress monitor that can be used to show progress
during long-running operation. Cancellation is typically not
supported since it might leave the system in an inconsistent
state.
SystemMessageException
- if an error occurs during initialization.public void uninitializeSubSystem(IProgressMonitor monitor)
SubSystem
uninitializeSubSystem
in interface ISubSystem
uninitializeSubSystem
in class RemoteProcessSubSystemImpl
monitor
- a progress monitor that can be used to show progress
during long-running operation. Cancellation is typically not
supported since it might leave the system in an inconsistent
state.
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |