|
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.subsystems.AbstractConnectorServiceManager
org.eclipse.rse.connectorservice.ssh.SshConnectorServiceManager
ConnectorService manager class. The job of this manager is to manage and return IConnectorService objects. It ensures there is only ever one per unique SystemConnection, so that both the file and cmd subsystems can share the same ConnectorService object.
| Method Summary | |
|---|---|
IConnectorService |
createConnectorService(IHost host)
Return the actual IConnectorService object. |
static SshConnectorServiceManager |
getInstance()
Return singleton instance of this class |
Class |
getSubSystemCommonInterface(ISubSystem subsystem)
For all subsystems in a particular SystemConnection, we need to know which ones are to share a single IConnectorService object. |
boolean |
sharesSystem(ISubSystem otherSubSystem)
Given another subsystem, return true if that subsystem shares a single IConnectorService object with this one. |
| Methods inherited from class org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager |
|---|
findConnHTForDummyHost, getConnectorService, setConnectorService, updateSubSystems |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SshConnectorServiceManager getInstance()
public IConnectorService createConnectorService(IHost host)
AbstractConnectorServiceManager
createConnectorService in class AbstractConnectorServiceManagerpublic boolean sharesSystem(ISubSystem otherSubSystem)
AbstractConnectorServiceManagerYou can't assume a SystemConnection will only have subsystems that you created, so you should only return true if it implements your interface or you know it is an instance of your subsystem class.
This should simply return (otherSubSystem instanceof interface) where interface is the same one returned from getSubSystemCommonInterface.
sharesSystem in class AbstractConnectorServiceManagerpublic Class getSubSystemCommonInterface(ISubSystem subsystem)
AbstractConnectorServiceManagerWhatever is returned from here is used as the key into a hashtable to find the singleton IConnectorService object in getSystemObject.
getSubSystemCommonInterface in class AbstractConnectorServiceManagersubsystem - - rarely used, but if you support multiple common interfaces then this will help you
decide which one to return.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||