|
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.subsystems.AbstractConnectorServiceManager
org.eclipse.rse.connectorservice.dstore.DStoreConnectorServiceManager
public class DStoreConnectorServiceManager
IConnectorService manager class.
There should be only one of these instantiated.
Use getInstance()
to get that singleton.
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 command subsystems can share the same system object.
Method Summary | |
---|---|
IConnectorService |
createConnectorService(IHost host)
Return the actual IConnectorService object. |
static DStoreConnectorServiceManager |
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. |
static boolean |
isInstantiated()
Return true if the singleton has been created. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DStoreConnectorServiceManager getInstance()
public static boolean isInstantiated()
public IConnectorService createConnectorService(IHost host)
createConnectorService
in class AbstractConnectorServiceManager
public Class getSubSystemCommonInterface(ISubSystem subsystem)
Whatever is returned from here is used as the key into a hashtable to find the singleton IConnectorService object in getSystemObject.
getSubSystemCommonInterface
in class AbstractConnectorServiceManager
subsystem
- - rarely used, but if you support multiple common interfaces then this will help you
decide which one to return.
public boolean sharesSystem(ISubSystem otherSubSystem)
You can't assume a SystemConnection will you only have subsystems of 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 AbstractConnectorServiceManager
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |