|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGConObject
Base class for console shadows of engine objects. Primary purpose is to support shadows of unique objects from engine. This is an abstract class, which requires the implementation of the methods needed to support delivery of shadow update records from the engine.
Field Summary | |
---|---|
static long |
INVALID_OBJECT_ID
Reserved value for invalid object IDs (which are not inserted in the TWGConObject hash table |
Constructor Summary | |
---|---|
TWGConObject(long obj_id)
Constructor for TWGConObject with given object ID |
Method Summary | |
---|---|
static java.util.Enumeration |
AllObjects()
Enumerate all TWGConObjects |
static java.util.Enumeration |
AllObjects(java.lang.Class cls)
Enumerate all TWGConObject instances derived from a given class. |
void |
Delete()
Destructor for TWGConObject: remove object from hash table |
static void |
DeleteObjects(long[] oids,
com.tivoli.twg.engine.TWGConObject.TWGConObjectDeltaAccum delta)
Delete all objects in given list of IDs |
static void |
DeregisterListener(TWGConObjectListener listener)
Deregister a listener previously registered |
static TWGConObject |
FindObject(long oid)
Find object, given an object ID |
java.lang.String |
getBaseClassName()
Get name of base class for console object |
static java.lang.reflect.Constructor |
LookUpShadowClass(java.lang.String base_class,
java.lang.String shad_class)
Look up or load shadow class for given base class, and return constructor |
long |
ObjectID()
Return the object ID |
static long |
ProcessUpdateRequest(TWGUpdateRequestCommand cmd)
Process a successful update request command |
static void |
RegisterListener(TWGConObjectListener listener)
Register a listener for TWGConObject update notifications |
void |
SetObjectID(long oid)
Change the object ID to a new value |
java.lang.String |
toString()
Print attributes of object to a string |
abstract void |
UpdateUsingShadowRecord(byte[] rec,
int rec_off,
int rec_len)
Update object using shadow record created by the the engine object which is matched with this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long INVALID_OBJECT_ID
Constructor Detail |
public TWGConObject(long obj_id) throws DuplicateObjectIDException
obj_id
- - object ID of console object
DuplicateObjectIDException
- if ID is duplicate of
existing object IDMethod Detail |
public void Delete()
public long ObjectID()
public void SetObjectID(long oid) throws DuplicateObjectIDException
oid
- - new object ID value
DuplicateObjectIDException
public static TWGConObject FindObject(long oid)
oid
- - object ID of object to find
public static java.util.Enumeration AllObjects(java.lang.Class cls)
cls
- - class to be scanned for
public static java.util.Enumeration AllObjects()
public java.lang.String toString()
public static void RegisterListener(TWGConObjectListener listener)
listener
- - TWGConObjectListener to be registeredpublic static void DeregisterListener(TWGConObjectListener listener)
listener
- - TWGConObjectListener to be deregisteredpublic abstract void UpdateUsingShadowRecord(byte[] rec, int rec_off, int rec_len) throws TWGConObjectUpdateException
rec
- - byte array containing opaque representation of
shadowed attributesrec_off
- - offset of start of shadow record in byte arrayrec_len
- - length of shadow record within byte array
TWGConObjectUpdateException
- if error during updatepublic static java.lang.reflect.Constructor LookUpShadowClass(java.lang.String base_class, java.lang.String shad_class) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.SecurityException
base_class
- - name of base class (TWGObject subclass)shad_class
- - name of shadow class (TWGConObject subclass)
java.lang.ClassNotFoundException
- if shadow class not found
java.lang.NoSuchMethodException
- if X(long) constructor not
found
java.lang.SecurityException
- if access to constructor deniedpublic static void DeleteObjects(long[] oids, com.tivoli.twg.engine.TWGConObject.TWGConObjectDeltaAccum delta)
oids
- - array of object IDspublic static long ProcessUpdateRequest(TWGUpdateRequestCommand cmd)
cmd
- - Completed TWGUpdateRequestCommand
public java.lang.String getBaseClassName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |