com.tivoli.twg.engine
Class TWGConManagedObjectStatusSet

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGConObject
      extended bycom.tivoli.twg.engine.TWGConManagedObjectStatusSet

public class TWGConManagedObjectStatusSet
extends TWGConObject

Console shadow for TWGManagedObjectStatusSet


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConManagedObjectStatusSet(long obj_id)
          Constructor for TWGConManagedObjectStatusSet with given object ID
 
Method Summary
 void Delete()
          Handle delete
static TWGConManagedObjectStatusSet findStatusSet(java.lang.String status_group, java.lang.String status)
          Find status set for given status group ID and status ID
static TWGConManagedObjectStatusGroup.StatusDefinition[] getAllDefinitionsForMO(long moid)
          Find all status definitions (in priority order) associated with a given managed object.
static java.util.Enumeration getAllStatusSets()
          Get all defined status sets
 LongValueSet getManagedObjectIDs()
          Get reference to value set containing managed object IDs which have this status associated with them.
 LongValueSet getNewlyAddedManagedObjectIDs()
          Get reference to value set containing managed object IDs which have just been associated with this status set.
 LongValueSet getNewlyRemovedManagedObjectIDs()
          Get reference to value set containing managed object IDs which have just been dropped from this status set.
 java.lang.String getStatusGroupID()
          Get status group ID
 java.lang.String getStatusID()
          Get status ID
 boolean isObjectAssociatedWithStatusSet(long moid)
          Test if given object is associated with status set
 java.lang.String toString()
          Get string representation of object
 void UpdateUsingShadowRecord(byte[] buf, 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 com.tivoli.twg.engine.TWGConObject
AllObjects, AllObjects, DeleteObjects, DeregisterListener, FindObject, getBaseClassName, LookUpShadowClass, ObjectID, ProcessUpdateRequest, RegisterListener, SetObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGConManagedObjectStatusSet

public TWGConManagedObjectStatusSet(long obj_id)
                             throws DuplicateObjectIDException
Constructor for TWGConManagedObjectStatusSet with given object ID

Parameters:
obj_id - - object ID of console object
Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] buf,
                                    int rec_off,
                                    int rec_len)
Update object using shadow record created by the the engine object which is matched with this class.

Specified by:
UpdateUsingShadowRecord in class TWGConObject
Parameters:
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array
buf - - byte array containing opaque representation of shadowed attributes

Delete

public void Delete()
Handle delete

Overrides:
Delete in class TWGConObject

toString

public java.lang.String toString()
Get string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

getManagedObjectIDs

public LongValueSet getManagedObjectIDs()
Get reference to value set containing managed object IDs which have this status associated with them.

Returns:
managed object IDs value set

getNewlyAddedManagedObjectIDs

public LongValueSet getNewlyAddedManagedObjectIDs()
Get reference to value set containing managed object IDs which have just been associated with this status set. (as of the last console update)

Returns:
managed object IDs value set

getNewlyRemovedManagedObjectIDs

public LongValueSet getNewlyRemovedManagedObjectIDs()
Get reference to value set containing managed object IDs which have just been dropped from this status set. (as of the last console update)

Returns:
managed object IDs value set

findStatusSet

public static TWGConManagedObjectStatusSet findStatusSet(java.lang.String status_group,
                                                         java.lang.String status)
Find status set for given status group ID and status ID

Parameters:
status_group - - ID of status group
status - - ID of status in set
Returns:
set found, or null if not found

getAllStatusSets

public static java.util.Enumeration getAllStatusSets()
Get all defined status sets

Returns:
enumeration of status sets

getStatusGroupID

public java.lang.String getStatusGroupID()
Get status group ID

Returns:
status group ID

getStatusID

public java.lang.String getStatusID()
Get status ID

Returns:
status ID

isObjectAssociatedWithStatusSet

public boolean isObjectAssociatedWithStatusSet(long moid)
Test if given object is associated with status set

Parameters:
moid - - object ID
Returns:
true if associated, false if not

getAllDefinitionsForMO

public static TWGConManagedObjectStatusGroup.StatusDefinition[] getAllDefinitionsForMO(long moid)
Find all status definitions (in priority order) associated with a given managed object.

Parameters:
moid - - managed object ID
Returns:
array of status definitions, ordered from highest to lowest priority