iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core
Class ISeriesSystemManager

java.lang.Object
  extended bycom.ibm.etools.systems.subsystems.impl.AbstractSystemManager
      extended bycom.ibm.etools.iseries.core.ISeriesSystemManager

public class ISeriesSystemManager
extends com.ibm.etools.systems.subsystems.impl.AbstractSystemManager

This class is responsible for instantiating the ISystem object for iSeries subsystems. Because all iSeries subsystems for any one connection share a single ISystem instance, this class ensures only one is ever created per connection.

You must use this class exclusively for getting the ISystem object, or else call getSystem() in the subsystem objects, which are coded to call this.


Field Summary
static String Copyright
           
 
Method Summary
 com.ibm.etools.systems.subsystems.ISystem createSystemObject(com.ibm.etools.systems.subsystems.SubSystem subsystem)
          Return the actual ISystem object.
 Class getSubSystemCommonInterface(com.ibm.etools.systems.subsystems.SubSystem subsystem)
          For all subsystems in a particular SystemConnection, we need to know which ones are to share a single ISystem object.
static ISeriesSystemManager getTheISeriesSystemManager()
          Return singleton instance of this class
static boolean getUsingDataStore()
          Return whether we are using datastore or using toolbox.
static void setUseDataStore(boolean set)
          Set whether or not we are using datastore versus toolbox for the communications.
 boolean sharesSystem(com.ibm.etools.systems.subsystems.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

Copyright

public static final String Copyright
See Also:
Constant Field Values
Method Detail

getTheISeriesSystemManager

public static ISeriesSystemManager getTheISeriesSystemManager()
Return singleton instance of this class


setUseDataStore

public static void setUseDataStore(boolean set)
Set whether or not we are using datastore versus toolbox for the communications.


getUsingDataStore

public static boolean getUsingDataStore()
Return whether we are using datastore or using toolbox.


createSystemObject

public com.ibm.etools.systems.subsystems.ISystem createSystemObject(com.ibm.etools.systems.subsystems.SubSystem subsystem)
Return the actual ISystem object. We return an instance of ISeriesSystemDataStore.


getSubSystemCommonInterface

public Class getSubSystemCommonInterface(com.ibm.etools.systems.subsystems.SubSystem subsystem)
For all subsystems in a particular SystemConnection, we need to know which ones are to share a single ISystem object. To do this, we need a key which is canonical for all subsystems in a given connection. This can be anything, but is typically a unique interface that all subsystems supported a shared ISystem object implement.

Whatever is returned from here is used as the key into a hashtable to find the singleton ISystem object in getSystemObject.

Returns:
IISeriesSubSystem.class

sharesSystem

public boolean sharesSystem(com.ibm.etools.systems.subsystems.SubSystem otherSubSystem)
Given another subsystem, return true if that subsystem shares a single ISystem object with this one. You must override this to return true if you recognize that subsystem as one of your own. You are guaranteed the other subsystem will be from the same SystemConnection as this one.

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

Returns:
true if otherSubSystem instanceof IISeriesSubSystem

iSeries Remote Systems
v6.0.0

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.