|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.AbstractSystemManager
com.ibm.etools.systems.localfilesubsys.impl.LocalSystemManager
ISystem manager class. There should be only one of these instantiated. Use getTheLocalSystemManager to get that singleton.
The job of this manager is to manage and return ISystem objects. It ensures there is only ever one per unique SystemConnection, so that both the file and cmd subsystems can share the same system object.
Field Summary | |
---|---|
static String |
Copyright
|
Method Summary | |
---|---|
ISystem |
createSystemObject(SubSystem subsystem)
Return the actual ISystem object. |
Class |
getSubSystemCommonInterface(SubSystem subsystem)
For all subsystems in a particular SystemConnection, we need to know which ones are to share a single ISystem object. |
static LocalSystemManager |
getTheLocalSystemManager()
Return singleton instance of this class |
static boolean |
isInstantiated()
Return true if the singleton has been created. |
boolean |
sharesSystem(SubSystem otherSubSystem)
Given another subsystem, return true if that subsystem shares a single ISystem object with this one. |
Methods inherited from class com.ibm.etools.systems.subsystems.impl.AbstractSystemManager |
---|
getSystemObject, updateSubSystems |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Method Detail |
public static LocalSystemManager getTheLocalSystemManager()
public static boolean isInstantiated()
public ISystem createSystemObject(SubSystem subsystem)
createSystemObject
in class AbstractSystemManager
public Class getSubSystemCommonInterface(SubSystem subsystem)
Whatever is returned from here is used as the key into a hashtable to find the singleton ISystem object in getSystemObject.
getSubSystemCommonInterface
in class AbstractSystemManager
subsystem
- - rarely used, but if you support multiple common interfaces then this will help you
decide which one to return.
public boolean sharesSystem(SubSystem 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 AbstractSystemManager
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |