|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cha.ejb.CHAInstanceMemoryFactory
public class CHAInstanceMemoryFactory
This class is to manipulate remote context stored in memory and it works as a singleton.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Constructor Summary | |
---|---|
CHAInstanceMemoryFactory()
The constructor method of this class. |
Method Summary | |
---|---|
void |
addNewContextInfo(java.lang.String instanceID)
|
void |
cleanUp()
Clean up memory |
void |
create(java.lang.String instanceID,
java.lang.String contextName,
java.lang.String typeName,
boolean isRoot,
Context aContext)
Create a remote context. |
void |
deleteNewContextInfo(java.lang.String instanceID)
|
Context |
getContext(java.lang.String instanceID)
Get the context object according to the instanceID. |
java.lang.String |
getContextNamed(java.lang.String contextName)
Searches the context tree from the root context for a context named aContextName |
java.util.Map |
getContextTable()
Get the context table which is a hashtable. |
static CHAInstanceMemoryFactory |
getInstance()
Get the instance of this class. |
java.lang.String |
getLevel(java.lang.String instanceID)
We can define an attribute --level-- in dsectxt.xml file to indicate level of the context. |
static java.lang.String |
getRootContextInstanceID()
Get the instance ID of the root context. |
boolean |
isNewContext(java.lang.String instanceID)
|
boolean |
isReadOnly(java.lang.String instanceID)
If the definition of this context in dsetxt.xml has the attribute readonly="true", this method will return true, otherwise, false is returned. |
boolean |
isRoot(java.lang.String instanceID)
Judge if the context is a root context. |
Context |
newDynamicContext(java.lang.String contextName)
Creates a new dynamic Local context with a supplied name. |
void |
removeContext(java.lang.String instanceID)
Remove the context from hashtabe. |
void |
setContext(java.lang.String instanceID,
Context aContext)
Set a context object into the hashtable. |
static void |
setRootContextInstanceID(java.lang.String string)
Set the instance ID of the root context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CHAInstanceMemoryFactory()
Method Detail |
---|
public static CHAInstanceMemoryFactory getInstance()
public void create(java.lang.String instanceID, java.lang.String contextName, java.lang.String typeName, boolean isRoot, Context aContext) throws CHARemoteProcessException
instanceID
- parentID
- contextName
- typeName
- isRoot
- aContext
-
CHARemoteProcessException
public Context getContext(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHARemoteProcessException
public void setContext(java.lang.String instanceID, Context aContext) throws CHARemoteProcessException
instanceID
- aContext
-
CHARemoteProcessException
public boolean isRoot(java.lang.String instanceID)
instanceID
-
CHARemoteProcessException
public void removeContext(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
- specifing the context
CHARemoteProcessException
public boolean isReadOnly(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHARemoteProcessException
public java.lang.String getLevel(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHARemoteProcessException
public static java.lang.String getRootContextInstanceID()
public static void setRootContextInstanceID(java.lang.String string)
string
- public Context newDynamicContext(java.lang.String contextName) throws CHARemoteProcessException
contextName
- location
-
CHARemoteProcessException
public java.lang.String getContextNamed(java.lang.String contextName) throws CHARemoteProcessException
contextName
-
CHARemoteProcessException
public java.util.Map getContextTable()
public void addNewContextInfo(java.lang.String instanceID)
instanceID
- parentInstanceID
- public void deleteNewContextInfo(java.lang.String instanceID)
instanceID
- parentInstanceID
- public boolean isNewContext(java.lang.String instanceID)
instanceID
- parentInstanceID
- public void cleanUp()
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |