|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.Context
This class is the basic repository of data and services. Instances of this class can be linked, or chained, in a tree of contexts, and the instances are capable of navigating over this tree, always in the upper direction. The instances of this class also can be passed as parameters of the format() and unformat() methods of a record format.
Field Summary | |
---|---|
protected int |
bufferSize
|
static int |
DEFAULT_BUFFER_SIZE
|
static byte |
DEFAULT_COMPRESSION
|
static java.lang.String |
DEFAULTPROCTIMEOUT
Default processes timeout constant |
protected static Externalizer |
externalizer
|
Constructor Summary | |
---|---|
Context()
This constructor creates a Context object. |
|
Context(java.lang.String aName)
This constructor creates a new instance of the Context class, which is obtained from the external definition files through aName. |
|
Context(java.lang.String aName,
java.lang.String aType,
Context aParent)
Creates a context with the provided parameters. |
|
Context(java.lang.String aName,
java.lang.String aType,
Context aContext,
KeyedCollection aKeyedCollection)
Creates a context with the provided parameters. |
|
Context(java.lang.String aName,
java.lang.String aType,
KeyedCollection aKeyedCollection)
Creates a context with the provided parameters. |
|
Context(java.lang.String aName,
java.lang.String aType,
java.lang.String aContextName)
Creates a context with the provided parameters. |
Method Summary | |
---|---|
static void |
addApplicationSession(java.lang.String aSession,
java.lang.String aParentSession,
Context aContext)
Adds a new SessionEntry kColl for the application id to the kColl for the session id. |
void |
addElement(DataElement aDataElement)
Adds an element to its keyedCollection. |
void |
addNotifier(Notifier aNotifier,
java.lang.String aNotifierName,
java.lang.String aNotifierType)
Adds a notifier to the notifiers list of this context. |
void |
addService(Service aService,
java.lang.String aServiceName,
java.lang.String aServiceType)
Adds a service to the service list of this context. |
static void |
addSession(SessionEntry se)
Adds a session entry in the table of sessions in the root context. |
static void |
addSession(java.lang.String aType,
java.lang.Long aTimeStamp,
java.lang.String aSession,
java.lang.String aTID,
Context aContext)
Adds an entry in the table of sessions in the root context. |
static void |
addSession(java.lang.String aType,
java.lang.Long aTimeStamp,
java.lang.String aSession,
java.lang.String aTID,
Context aContext,
java.util.Locale locale)
Adds an entry in the table of sessions in the root context. |
static void |
addSession(java.lang.String aType,
java.lang.Long aTimeStamp,
java.lang.String aSession,
java.lang.String aTID,
Context aContext,
java.lang.String ipAddress,
java.lang.Integer port)
Adds an entry in the table of sessions in the root context. |
static void |
addSession(java.lang.String aSession,
java.lang.String aTID,
Context aContext)
Adds an entry in the table of sessions in the root context. |
static void |
addSession(java.lang.String aSession,
java.lang.String aTID,
Context aContext,
java.util.Locale locale)
Adds an entry in the table of sessions in the root context. |
void |
chainTo(Context aContext)
Chains this context to aContext. |
void |
chainToContextNamed(java.lang.String aContextName)
Chains this context to the context named aContextName. |
void |
chainToCurrentContext()
Chains this context to the current context. |
static void |
checkExpiredSessions()
Fires an event and marks the session as expired when it finds an expired session. |
void |
clearKeyedCollection()
Clears the context (current level only) by destroying the current keyed collection associated and replacing it with a new one. |
void |
clearKeyedCollection(boolean keepKCollStatus,
boolean clearOnlyValues)
This method clears both the typed and non-typed elements in the context keyed collection. |
boolean |
containsChild(java.lang.String aContextName)
Returns true if this context has a child with the name aContextName. |
static Context |
currentContext()
Returns the context set as the currentContext from the root. |
Externalizer |
externalizer()
Returns the externalizer instance of this class. |
Vector |
fields()
Returns all the data fields, which are addressable from this context. |
Context |
getAncestorByName(java.lang.String aContextName)
Searches the context tree for an ancestor Context named aContextName and returns the first matching context. |
static SessionEntry |
getApplicationSession(java.lang.String sessionId,
java.lang.String applicationId)
Returns the SessionEntry for the applicationId. |
Vector |
getChildren()
Returns the children contexts of this one. |
Context |
getContextByType(java.lang.String aTypeName)
Returns the first context that matches its type to aTypeName. |
static Context |
getContextNamed(java.lang.String aContextName)
Searches the context tree for a context named aContextName and returns the first matching context. |
static CSClientService |
getCSClient()
Obtains the first instance of the CSClient service. |
static CSServerService |
getCSServer()
Returns the instance of CSServer. |
Context |
getCurrentContext()
Obtains the context marked as currentContext from this one. |
static Context |
getCurrentContextForSession(java.lang.String aSession)
Returns the current Context for the specified sessionId. |
static Context |
getCurrentContextForSession(java.lang.String aSession,
java.lang.String anApplication)
Returns the current Context for the specified sessionId and applicationId. |
static Context |
getCurrentContextForSessionOrApplication(java.lang.String aSession)
Returns the current Context for the specified sessionId. |
DataElement |
getElementAt(java.lang.String aCompositeKey)
Returns the element of its keyedCollection,or keyedCollections of the upper contexts which is located at aCompositeKey path. |
static Externalizer |
getExternalizer()
Gets the externalizer. |
static java.util.Vector |
getIpAddressAndPortForTID(java.lang.String tid)
Returns a vector with two integers: the ipAddress and port that a TID has associated or null if there is no ipAddress and port associated with the passed TID. |
KeyedCollection |
getKeyedCollection()
Returns the keyedCollection attribute. |
java.lang.String |
getName()
Return the name attribute. |
Context |
getNextContextNamed(java.lang.String aContextName)
Returns the first context named aContextName beginning at this context. |
Notifier |
getNotifier(java.lang.String aNotifierName)
Returns the first notifier named "aNotifierName" found by searching over this context branch in the upper direction. |
Notifier |
getNotifierByType(java.lang.String aNotifierType)
Returns the first notifier that has a type that matches aNotifierType found by searching over this context branch in the upper direction. |
protected Hashtable |
getNotifiers()
Returns the notifiers attribute. |
Context |
getParent()
Returns the parent attribute. |
static Context |
getRoot()
Returns the root context of the context tree. |
Service |
getService(java.lang.String aServiceName)
Returns the first service named aServiceName, by searching over this context branch in the upper direction. |
Service |
getServiceByType(java.lang.String aServiceType)
Returns the first service that has a type that matches aServiceType found by searching over this context branch in the upper direction. |
Hashtable |
getServices()
Returns the services attribute. |
static SessionEntry |
getSession(java.lang.String aSession)
Returns the SessionEntry for the sessionId. |
static java.lang.String |
getSessionForTID(java.lang.String tid)
Returns the session id that a TID has associated or null if there is no session id associated with the passed TID. |
static java.lang.Object |
getSessionObjectForSession(java.lang.String aSession)
Returns the Session Object for the specified sessionId. |
static SessionTable |
getSessionTable()
Returns the sessionTable. |
java.lang.String |
getTagName()
Returns a String used by the externalizer. |
static java.lang.String |
getTIDForSession(java.lang.String aSession)
Returns the client workstation TID for the sessionId. |
static java.lang.Long |
getTimeStampForSession(java.lang.String aSession)
Returns the timeStamp of the last operation executed for the sessionId. |
java.lang.String |
getType()
Returns the "type" attribute. |
static java.lang.String |
getTypeForSession(java.lang.String aSession)
Returns the client workstation type for the sessionId. |
java.lang.Object |
getValueAt(java.lang.String aCompositeKey)
Returns the value of the element of its keyedCollection, or keyedCollections of the upper contexts, located in the "aCompositeKey" path. |
boolean |
hasChildren()
Returns true if this context has any children. |
boolean |
hasNotifiers()
Returns true if this context has any notifier. |
boolean |
hasServices()
Returns true if this context has any service. |
java.lang.Object |
initializeContextFrom(Tag aContextTag)
Initializes a DataField with the aTag attributes. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a Context with the Tag attributes. |
java.lang.Object |
initializeKeyedCollectionFrom(Tag aTag)
Initializes the context KeyedCollection. |
java.lang.Object |
initializeKeyedCollectionValueFrom(Tag aTag)
Initializes a collection of values from aTag. |
java.lang.Object |
initializeServiceFrom(Tag aTag)
Initializes services in the context. |
java.lang.Object |
initializeTypeFrom(Tag aTag)
Initializes the context's KeyedCollection with a new instance created by the Types Externalizer. |
boolean |
isAddToDynamicKColl()
Returns the value of the addToDynamicKColl property. |
boolean |
isChained()
Returns true if this context is in the context tree. |
static boolean |
isContext(java.lang.String aContextName)
Returns true if there is at least one context in the context tree that has a name that matches aContextName. |
boolean |
isRoot()
Returns true if this context is the root context. |
static int |
occurrencesNamed(java.lang.String aContextName)
Returns the number of contexts in the context tree that have names that match aContextName. |
void |
prune()
Removes this context and its children from the context tree. |
void |
readExternal()
Initializes a dataElement with its external value. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
readExternal(TagInputStream aTIS)
Initializes this instance with values read from a file. |
void |
readFromStream(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
static java.lang.Object |
readObject(java.lang.String name)
Instantiates a Context called name from an XML source. |
DataElement |
removeAt(java.lang.String aCompositeKey)
Removes aCompositeKey element of its keyedCollection. |
DataElement |
removeAtAnyLevel(java.lang.String aCompositeKey)
Removes an element of its keyedCollection, or the keyedCollections in the upper contexts, located in the aCompositeKey path. |
void |
removeExternal()
Removes the object's tags from the file in which the object is externalized. |
void |
removeNotifier(java.lang.String aNotifierName)
Removes a notifier from the context. |
void |
removeService(java.lang.String aServiceName)
Remove a service from the context. |
static void |
removeSession(java.lang.String aSession)
Removes an entry in the session table using the remove method of SessionEntry for safety. |
static void |
removeSession(java.lang.String aSession,
java.lang.String anApplication)
Removes an sub session entry in the session table for a given session id and application id. |
static void |
reset()
Deletes all context instances. |
void |
setAddToDynamicKColl(boolean newValue)
Sets the value of the addToDynamicKColl property. |
void |
setAsCurrentChild()
Sets this context as currentChild in the parent Context. |
void |
setAsCurrentContext()
Sets this context as currentChild in all its parent Contexts until the root. |
void |
setChildren(Vector aChildrenCollection)
Sets the children property. |
static void |
setCurrentContextForSession(java.lang.String aSession,
Context aContext)
Sets the specified Context for the specified sessionId. |
static void |
setCurrentContextForSession(java.lang.String aSession,
java.lang.String anApplication,
Context aContext)
Sets the Context for the specified sessionId and applicationId. |
static void |
setExternalizer(Externalizer anExternalizer)
Sets the externalizer. |
void |
setKeyedCollection(KeyedCollection aKeyedCollection)
Sets the attribute keyedCollection. |
void |
setName(java.lang.String aContextName)
Sets the name property of this context. |
void |
setServices(Hashtable aHashtable)
Sets the service property of this context. |
static void |
setSessionObjectForSession(java.lang.String aSession,
java.lang.Object aSessionObject)
Sets the specified Session Object for the specified sessionId. |
static void |
setTimeStampForApplicationSession(java.lang.String sessionId,
java.lang.String applicationId,
java.lang.Long timeStamp)
Sets the timeStamp for the applicationId. |
static void |
setTimeStampForSession(java.lang.String aSession,
java.lang.Long aTimeStamp)
Sets the timeStamp for the sessionId. |
void |
setType(java.lang.String aContextType)
Sets the type property of this context. |
static void |
setTypeForSession(java.lang.String aSession,
java.lang.String aType)
Sets the client type for the sessionId. |
void |
setValueAt(java.lang.String aCompositeKey,
java.lang.Object aDataValue)
Sets the value of the element of its keyedCollection, or keyedCollections of the upper contexts, located in the aCompositeKey path. |
void |
stopNotifiers()
Stops all notifiers in the context invoking the terminate notifier's method. |
void |
stopNotifiersInChildren()
Stops all notifiers in this context and all its children. |
void |
stopServices()
Stops all services in the context invoking the terminate service's method. |
void |
stopServicesInChildren()
Stops all services in this context and all of its children. |
void |
terminateServices()
Looks for all the services in the context and removes them. |
java.lang.String |
toString()
Returns an XML representation of this context. |
Vector |
toStrings()
Returns a visual representation of this context. |
Vector |
toTags()
Returns a Vector with the elements represented as a Tag. |
DataElement |
tryGetElementAt(java.lang.String aCompositeKey)
Returns the element of its keyedCollection, or keyedCollections of the upper contexts which is located at aCompositeKey path. |
Notifier |
tryGetNotifier(java.lang.String aNotifierName)
Returns the first notifier named aNotifierName found by searching over this context branch in the upper direction. |
Notifier |
tryGetNotifierByType(java.lang.String aNotifierType)
Returns the first notifier that has a type that matches aNotifierType found by searching over this context branch in the upper direction. |
Service |
tryGetService(java.lang.String aServiceName)
Returns the first service named aServiceName, by searching over this context branch in the upper direction. |
java.lang.Object |
tryGetValueAt(java.lang.String aCompositeKey)
Returns the value of the element of its keyedCollection, or keyedCollections of the upper contexts, located in the aCompositeKey path. |
void |
unchain()
Removes this context and all its children from the context tree. |
void |
writeExternal()
Writes this instance to a file using tags. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for contexts. |
void |
writeToStream(java.io.ObjectOutput s)
Provides concrete serialization handling for contexts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static Externalizer externalizer
public static final byte DEFAULT_COMPRESSION
public static final int DEFAULT_BUFFER_SIZE
public static final java.lang.String DEFAULTPROCTIMEOUT
protected int bufferSize
Constructor Detail |
public Context()
public Context(java.lang.String aName) throws java.io.IOException
aName
- java.lang.Stringpublic Context(java.lang.String aName, java.lang.String aType, Context aParent) throws DSEInvalidRequestException
aName
- java.lang.StringaType
- java.lang.StringaParent
- com.ibm.dse.base.Contextpublic Context(java.lang.String aName, java.lang.String aType, Context aContext, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException
aName
- java.lang.StringaType
- java.lang.StringaContext
- com.ibm.dse.base.ContextaKeyedCollection
- com.ibm.dse.base.KeyedCollectionpublic Context(java.lang.String aName, java.lang.String aType, KeyedCollection aKeyedCollection)
aName
- java.lang.StringaType
- java.lang.StringaKeyedCollection
- com.ibm.dse.base.KeyedCollectionpublic Context(java.lang.String aName, java.lang.String aType, java.lang.String aContextName) throws DSEInvalidRequestException
aName
- java.lang.StringaType
- java.lang.StringaContextName
- java.lang.StringMethod Detail |
public static void addApplicationSession(java.lang.String aSession, java.lang.String aParentSession, Context aContext) throws DSEInvalidRequestException
aSession
- java.lang.StringaParentSession
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEInvalidRequestException
public void addElement(DataElement aDataElement) throws DSEInvalidRequestException
DSEInvalidRequestException
public void addNotifier(Notifier aNotifier, java.lang.String aNotifierName, java.lang.String aNotifierType) throws DSEInvalidRequestException
DSEInvalidRequestException
public void addService(Service aService, java.lang.String aServiceName, java.lang.String aServiceType) throws DSEInvalidRequestException
DSEInvalidRequestException
public static void addSession(SessionEntry se) throws DSEInvalidRequestException
se
- com.ibm.dse.base.SessionEntry
DSEInvalidRequestException
public static void addSession(java.lang.String aType, java.lang.Long aTimeStamp, java.lang.String aSession, java.lang.String aTID, Context aContext) throws DSEInvalidRequestException
aType
- java.lang.StringaTimeStamp
- java.lang.LongaSession
- java.lang.StringaTID
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEInvalidRequestException
public static void addSession(java.lang.String aType, java.lang.Long aTimeStamp, java.lang.String aSession, java.lang.String aTID, Context aContext, java.util.Locale locale) throws DSEInvalidRequestException
aType
- java.lang.StringaTimeStamp
- java.lang.LongaSession
- java.lang.StringaTID
- java.lang.StringaContext
- com.ibm.dse.base.Contextlocale
- Locale
DSEInvalidRequestException
public static void addSession(java.lang.String aType, java.lang.Long aTimeStamp, java.lang.String aSession, java.lang.String aTID, Context aContext, java.lang.String ipAddress, java.lang.Integer port) throws DSEInvalidRequestException
aType
- java.lang.StringaTimeStamp
- java.lang.LongaSession
- java.lang.StringaTID
- java.lang.StringaContext
- com.ibm.dse.base.ContextipAddress
- Integerport
- Integer
DSEInvalidRequestException
public static void addSession(java.lang.String aSession, java.lang.String aTID, Context aContext) throws DSEInvalidRequestException
aSession
- java.lang.StringaTID
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEInvalidRequestException
public static void addSession(java.lang.String aSession, java.lang.String aTID, Context aContext, java.util.Locale locale) throws DSEInvalidRequestException
aSession
- java.lang.StringaTID
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEInvalidRequestException
public void chainTo(Context aContext) throws DSEInvalidRequestException
DSEInvalidRequestException
public void chainToContextNamed(java.lang.String aContextName) throws DSEInvalidRequestException, DSEObjectNotFoundException
DSEInvalidRequestException
DSEObjectNotFoundException
public void chainToCurrentContext() throws DSEInvalidRequestException
DSEInvalidRequestException
public static void checkExpiredSessions() throws DSEInvalidRequestException, DSEObjectNotFoundException
DSEInvalidRequestException
DSEObjectNotFoundException
public void clearKeyedCollection()
public void clearKeyedCollection(boolean keepKCollStatus, boolean clearOnlyValues) throws java.io.IOException
keepKCollStatus
- boolean (false - clear also the context kColl attributes; true - keep the context kColl attributes and clear only the kColl data elements)clearOnlyValues
- boolean (false - clear all attributes of the context kColl data elements; true - clear only kColl data elements values)
java.io.IOException
- - If keepKCollStatus or clearOnlyValues are false and the keyed collection has not been defined in the generic data file or in the generic types filepublic boolean containsChild(java.lang.String aContextName)
public static Context currentContext()
public Externalizer externalizer()
externalizer
in interface Externalizable
public Vector fields()
public Context getAncestorByName(java.lang.String aContextName) throws DSEInvalidRequestException
aContextName
- java.lang.String
DSEInvalidRequestException
public Vector getChildren()
public Context getContextByType(java.lang.String aTypeName)
public static Context getContextNamed(java.lang.String aContextName) throws DSEInvalidRequestException
DSEInvalidRequestException
public static CSClientService getCSClient()
public static CSServerService getCSServer()
public Context getCurrentContext()
public static Context getCurrentContextForSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static Context getCurrentContextForSession(java.lang.String aSession, java.lang.String anApplication) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.StringanApplication
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static Context getCurrentContextForSessionOrApplication(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public DataElement getElementAt(java.lang.String aCompositeKey) throws DSEObjectNotFoundException
DSEObjectNotFoundException
public static Externalizer getExternalizer()
public KeyedCollection getKeyedCollection()
public java.lang.String getName()
getName
in interface Externalizable
public Context getNextContextNamed(java.lang.String aContextName) throws DSEInvalidRequestException
aContextName
- java.lang.String
DSEInvalidRequestException
public Notifier getNotifier(java.lang.String aNotifierName) throws DSEObjectNotFoundException
DSEObjectNotFoundException
public Notifier getNotifierByType(java.lang.String aNotifierType) throws DSEObjectNotFoundException
DSEObjectNotFoundException
protected Hashtable getNotifiers()
public Context getParent()
public static Context getRoot()
public Service getService(java.lang.String aServiceName) throws DSEObjectNotFoundException
DSEObjectNotFoundException
public Service getServiceByType(java.lang.String aServiceType) throws DSEObjectNotFoundException
DSEObjectNotFoundException
public Hashtable getServices()
public static SessionEntry getSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
DSEInvalidRequestException
DSEObjectNotFoundException
public static java.lang.String getSessionForTID(java.lang.String tid) throws DSEInvalidRequestException, DSEObjectNotFoundException
tid
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static java.lang.Object getSessionObjectForSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static SessionTable getSessionTable() throws DSEInvalidRequestException
DSEInvalidRequestException
public java.lang.String getTagName()
public static java.lang.String getTIDForSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static java.lang.Long getTimeStampForSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public java.lang.String getType()
public static java.lang.String getTypeForSession(java.lang.String aSession) throws DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public java.lang.Object getValueAt(java.lang.String aCompositeKey) throws DSEObjectNotFoundException
DSEObjectNotFoundException
public boolean hasChildren()
public boolean hasNotifiers()
public boolean hasServices()
public java.lang.Object initializeContextFrom(Tag aContextTag) throws java.io.IOException
aContextTag
- com.ibm.dse.base.Tag
java.io.IOException
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
initializeFrom
in interface Externalizable
aTag
- com.ibm.dse.base.Tag
java.io.IOException
DSEException
public java.lang.Object initializeKeyedCollectionFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tag
java.io.IOException
public java.lang.Object initializeKeyedCollectionValueFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tag
java.io.IOException
public java.lang.Object initializeServiceFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tag
java.io.IOException
public java.lang.Object initializeTypeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tag
java.io.IOException
public boolean isAddToDynamicKColl()
public boolean isChained()
public static boolean isContext(java.lang.String aContextName) throws DSEInvalidRequestException
DSEInvalidRequestException
public boolean isRoot()
public static int occurrencesNamed(java.lang.String aContextName) throws DSEInvalidRequestException
DSEInvalidRequestException
public void prune() throws DSEInvalidRequestException, DSEObjectNotFoundException
DSEInvalidRequestException
DSEObjectNotFoundException
public void readExternal() throws java.io.IOException
readExternal
in interface Externalizable
java.io.IOException
public void readExternal(TagInputStream aTIS) throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
s
- java.io.ObjectInput
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException
public void readFromStream(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
s
- java.io.ObjectInput
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException
public static java.lang.Object readObject(java.lang.String name) throws java.io.IOException
name
- java.lang.String
java.io.IOException
public DataElement removeAt(java.lang.String aCompositeKey) throws DSEObjectNotFoundException, DSEInvalidRequestException
DSEObjectNotFoundException
DSEInvalidRequestException
public DataElement removeAtAnyLevel(java.lang.String aCompositeKey) throws DSEObjectNotFoundException, DSEInvalidRequestException
DSEObjectNotFoundException
DSEInvalidRequestException
public void removeExternal() throws java.io.IOException
removeExternal
in interface Externalizable
java.io.IOException
public void removeNotifier(java.lang.String aNotifierName) throws DSEObjectNotFoundException, DSEException
DSEObjectNotFoundException
DSEException
public void removeService(java.lang.String aServiceName) throws DSEObjectNotFoundException, DSEException
DSEObjectNotFoundException
DSEException
public static void removeSession(java.lang.String aSession) throws DSEObjectNotFoundException, DSEInvalidArgumentException, DSEInvalidRequestException
aSession
- java.lang.String
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException
public static void removeSession(java.lang.String aSession, java.lang.String anApplication) throws DSEObjectNotFoundException, DSEInvalidArgumentException, DSEInvalidRequestException
aSession
- java.lang.StringanApplication
- java.lang.String
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException
public static void reset() throws DSEException
DSEException
public void setAddToDynamicKColl(boolean newValue)
newValue
- boolean The new value of the property.public void setAsCurrentChild() throws DSEInvalidRequestException
DSEInvalidRequestException
public void setAsCurrentContext() throws DSEInvalidRequestException
DSEInvalidRequestException
public void setChildren(Vector aChildrenCollection)
public static void setCurrentContextForSession(java.lang.String aSession, Context aContext) throws DSEObjectNotFoundException, DSEInvalidArgumentException, DSEInvalidRequestException
aSession
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException
public static void setCurrentContextForSession(java.lang.String aSession, java.lang.String anApplication, Context aContext) throws DSEObjectNotFoundException, DSEInvalidArgumentException, DSEInvalidRequestException
aSession
- java.lang.StringanApplication
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException
public static void setExternalizer(Externalizer anExternalizer)
public void setKeyedCollection(KeyedCollection aKeyedCollection)
public void setName(java.lang.String aContextName)
setName
in interface Externalizable
aContextName
- java.lang.Stringpublic void setServices(Hashtable aHashtable)
aHashtable
- com.ibm.dse.base.Hashtablepublic static void setSessionObjectForSession(java.lang.String aSession, java.lang.Object aSessionObject) throws DSEObjectNotFoundException, DSEInvalidArgumentException, DSEInvalidRequestException
aSession
- java.lang.StringaSessionObject
- Object
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException
public static void setTimeStampForSession(java.lang.String aSession, java.lang.Long aTimeStamp) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.StringaTimeStamp
- java.lang.Long
DSEInvalidArgumentException
DSEInvalidRequestException
DSEObjectNotFoundException
public void setType(java.lang.String aContextType)
public static void setTypeForSession(java.lang.String aSession, java.lang.String aType) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEObjectNotFoundException
aSession
- java.lang.String
DSEInvalidArgumentException
DSEInvalidRequestException
DSEObjectNotFoundException
public void setValueAt(java.lang.String aCompositeKey, java.lang.Object aDataValue) throws DSEInvalidArgumentException, DSEObjectNotFoundException
DSEInvalidArgumentException
DSEObjectNotFoundException
public void stopNotifiers()
public void stopNotifiersInChildren()
public void stopServices()
public void stopServicesInChildren()
public void terminateServices() throws DSEException
DSEException
public java.lang.String toString()
public Vector toStrings()
toStrings
in interface Externalizable
public Vector toTags() throws java.io.IOException
toTags
in interface Externalizable
java.io.IOException
public DataElement tryGetElementAt(java.lang.String aCompositeKey)
public Notifier tryGetNotifier(java.lang.String aNotifierName)
public Notifier tryGetNotifierByType(java.lang.String aNotifierType)
public Service tryGetService(java.lang.String aServiceName)
public java.lang.Object tryGetValueAt(java.lang.String aCompositeKey)
public void unchain() throws DSEInvalidRequestException, DSEObjectNotFoundException
DSEInvalidRequestException
DSEObjectNotFoundException
public void writeExternal() throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
s
- java.io.ObjectOutput
java.io.IOException
public void writeToStream(java.io.ObjectOutput s) throws java.io.IOException
s
- java.io.ObjectOutput
java.io.IOException
public static java.util.Vector getIpAddressAndPortForTID(java.lang.String tid) throws DSEInvalidRequestException, DSEObjectNotFoundException
tid
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static SessionEntry getApplicationSession(java.lang.String sessionId, java.lang.String applicationId) throws DSEObjectNotFoundException, DSEInvalidRequestException
sessionId
- - The session identifierapplicationId
- - The application identifier
DSEObjectNotFoundException
DSEInvalidRequestException
public static void setTimeStampForApplicationSession(java.lang.String sessionId, java.lang.String applicationId, java.lang.Long timeStamp) throws DSEObjectNotFoundException, DSEInvalidRequestException, DSEInvalidArgumentException
sessionId
- - The session identifierapplicationId
- - The application identifiertimeStamp
- - The timeStamp
DSEObjectNotFoundException
DSEInvalidRequestException
DSEInvalidArgumentException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |