|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGObject
com.tivoli.twg.engine.TWGPersistentObject
com.tivoli.twg.engine.TWGManagedObject
com.tivoli.twg.engine.cluster.TWGClusterManagedObject
Class for managed objects representing clusters. Object represents the general idea of a cluster, including the common concepts of membership by other managed objects in the cluster.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
|
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
CLASS_NAME, SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGClusterManagedObject()
Default constructor for cluster managed object |
|
TWGClusterManagedObject(IntValueSet init_moids)
Constructor for creating new cluster |
Method Summary | |
---|---|
boolean |
addNewMember(TWGManagedObject new_mo)
Add new member managed object to cluster : requires save() to be called afterward |
protected void |
copyTo(TWGManagedObject managedObject)
Copy instance data to another managed object. |
void |
Delete()
Destructor for TWGClusterManagedObject: remove object from lists |
void |
Destroy()
Destroy for TWGClusterManagedObject |
java.lang.String |
getAttributeDescription(java.lang.String id,
java.util.Locale loc)
Get description string for given attribute in given locale |
java.lang.String[] |
getAttributeIDList()
Attribute ID enumeration : this method is expected to return a List of strings containing the String names of the attributes supported for a given object. |
int |
getAttributeType(java.lang.String id)
Get type of attribute value for given attribute |
DataValue |
getAttributeValue(java.lang.String id,
java.util.Locale loc)
Get value of attribute with given ID |
java.lang.String |
getAttributeValueString(java.lang.String id,
java.util.Locale loc)
Get descriptive value string for given attribute in given locale |
int[] |
getMemberIDs()
Get list of member object IDs |
boolean |
isMember(int mo_id)
Test to see if managed object is member of cluster |
boolean |
isMember(TWGManagedObject mo)
Test to see if managed object is member of cluster |
boolean |
removeMember(int rem_moid)
Remove member managed object from cluster : requires save() to be called afterward |
boolean |
removeMember(TWGManagedObject rem_mo)
Remove member managed object from cluster : requires save() to be called afterward |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
Restore support for persistant object. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
Save support for persistant object. |
boolean |
setAttributeValue(java.lang.String id,
DataValue val)
Set value of attribute with given ID |
void |
SetObjectID(long oid)
Set object ID. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
enableAsyncWrites, fromPersistID, initialize, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CLASSNAME
Constructor Detail |
public TWGClusterManagedObject()
public TWGClusterManagedObject(IntValueSet init_moids)
init_moids
- - initial set of member managed object IDsMethod Detail |
protected void copyTo(TWGManagedObject managedObject)
copyTo
in class TWGManagedObject
managedObject
- target managed object.public void Delete()
Delete
in class TWGManagedObject
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGManagedObject
TWGObjectDestroyException
- if error during destroyprotected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGManagedObject
TWGPersistentObjectSaveException
- if error on saveprotected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGManagedObject
TWGPersistentObjectRestoreException
- if restore errorpublic boolean addNewMember(TWGManagedObject new_mo) throws InvalidObjectIDException
new_mo
- - new managed object to be added
InvalidObjectIDException
- if bad MO or cluster objectpublic boolean removeMember(TWGManagedObject rem_mo) throws InvalidObjectIDException
rem_mo
- - managed object to be removed
InvalidObjectIDException
- if bad MO or cluster objectpublic boolean removeMember(int rem_moid) throws InvalidObjectIDException
rem_moid
- - Persistent ID of managed object to be removed
InvalidObjectIDException
public boolean isMember(TWGManagedObject mo)
mo
- - managed object to be checkedpublic boolean isMember(int mo_id)
mo_id
- - persistent ID of managed object to be checkedpublic int[] getMemberIDs()
public void SetObjectID(long oid) throws DuplicateObjectIDException
SetObjectID
in class TWGManagedObject
oid
- - new object ID, or INVALID_OBJECT_ID if none
DuplicateObjectIDException
- if ID is duplicatepublic java.lang.String[] getAttributeIDList()
TWGManagedObject
getAttributeIDList
in interface TWGGetSetInterface
getAttributeIDList
in class TWGManagedObject
public DataValue getAttributeValue(java.lang.String id, java.util.Locale loc)
getAttributeValue
in interface TWGGetSetInterface
getAttributeValue
in class TWGManagedObject
id
- - attribute ID requestedloc
- - locale to use for value, if applicable
public boolean setAttributeValue(java.lang.String id, DataValue val)
setAttributeValue
in interface TWGGetSetInterface
setAttributeValue
in class TWGManagedObject
id
- - attribute ID to be setval
- - attribute value to be set
public int getAttributeType(java.lang.String id)
getAttributeType
in interface TWGGetSetInterface
getAttributeType
in class TWGManagedObject
id
- - attribute ID
public java.lang.String getAttributeDescription(java.lang.String id, java.util.Locale loc)
getAttributeDescription
in interface TWGGetSetDescInterface
getAttributeDescription
in class TWGManagedObject
id
- - attribute IDloc
- - locale to use for description
public java.lang.String getAttributeValueString(java.lang.String id, java.util.Locale loc)
getAttributeValueString
in interface TWGGetSetDescInterface
getAttributeValueString
in class TWGManagedObject
id
- - attribute IDloc
- - locale to use for description
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |