|
|||||||||||
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
com.tivoli.twg.mscs.MSCSManagedObject
Microsoft Cluster Services cluster managed object.
Field Summary | |
---|---|
static int |
BLK_CLUSTERNAMEOFF_OFF
|
static int |
BLK_CLUSTERRESIDOFF_OFF
|
static int |
BLK_CLUSTERVERSIONOFF_OFF
|
static int |
BLK_HDRLEN
|
static int |
BLK_HDRLEN_000
|
static int |
BLK_HDRLEN_001
|
static int |
BLK_HDRLEN_OFF
Persistent record format ULONG hdrlen ULONG off_clustername ULONG off_clusversion ULONG off_clusterresid |
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 | |
---|---|
MSCSManagedObject()
Default constructor for cluster managed object |
|
MSCSManagedObject(java.lang.String name,
java.lang.String resid,
IntValueSet init_moids)
Constructor for creating new cluster |
Method Summary | |
---|---|
protected void |
copyTo(TWGManagedObject managedObject)
Copy instance data to another managed object. |
void |
Delete()
Destructor for MSCSManagedObject: remove object from lists |
void |
Destroy()
Destroy for MSCSManagedObject |
static MSCSManagedObject |
findClusterByObject(TWGManagedObject obj)
Find cluster containing given object |
static MSCSManagedObject |
findMSCSObjectByName(java.lang.String cluster_name)
Find MSCS cluster instance by name |
static MSCSManagedObject |
findMSCSObjectByNameResID(java.lang.String cluster_resid)
Find MSCS cluster instance by resource ID |
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 |
java.lang.String[] |
GetAvailablePaths()
Return all available IPC paths |
java.lang.String |
getClusterName()
Get name of cluster |
java.lang.String |
getClusterNodeName(int id)
Get computer name of cluster node |
java.lang.String |
getClusterResourceID()
Get cluster resource ID |
java.lang.String |
getClusterServicesVersion()
Get version of cluster services : format is "major.minor.build" |
TWGNativeManagedObject |
getPreferredNode()
Get current preferred node to access cluster thorough |
java.lang.String |
getPreferredPath()
Get current preferred IPC path from server to client |
boolean |
removeMember(int rem_moid)
Remove member managed object from cluster : |
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 |
setNodeBad(int id)
Mark given node as bad (don't use for agent communications) |
void |
setNodeBad(TWGManagedObject node)
Mark given node as bad (don't use for agent communications) |
void |
setNodeGood(TWGManagedObject node)
Mark given node as good (use for agent communications) |
void |
SetObjectID(long oid)
Set object ID. |
boolean |
startPing()
Start a ping on this cluster. |
Methods inherited from class com.tivoli.twg.engine.cluster.TWGClusterManagedObject |
---|
addNewMember, getMemberIDs, isMember, isMember, removeMember |
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
public static final int BLK_HDRLEN_OFF
public static final int BLK_CLUSTERNAMEOFF_OFF
public static final int BLK_CLUSTERVERSIONOFF_OFF
public static final int BLK_CLUSTERRESIDOFF_OFF
public static final int BLK_HDRLEN
public static final int BLK_HDRLEN_000
public static final int BLK_HDRLEN_001
Constructor Detail |
public MSCSManagedObject()
public MSCSManagedObject(java.lang.String name, java.lang.String resid, IntValueSet init_moids) throws TWGPersistentObjectSaveException
name
- - name of clusterresid
- - resource ID of clusterinit_moids
- - initial MOIDs which are member of cluster
TWGPersistentObjectSaveException
- if error creating objectMethod Detail |
protected void copyTo(TWGManagedObject managedObject)
copyTo
in class TWGClusterManagedObject
managedObject
- target managed object.public void Delete()
Delete
in class TWGClusterManagedObject
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGClusterManagedObject
TWGObjectDestroyException
- if error during destroyprotected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGClusterManagedObject
TWGPersistentObjectSaveException
- if error on saveprotected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGClusterManagedObject
TWGPersistentObjectRestoreException
- if restore errorpublic void SetObjectID(long oid) throws DuplicateObjectIDException
SetObjectID
in class TWGClusterManagedObject
oid
- - new object ID, or INVALID_OBJECT_ID if none
DuplicateObjectIDException
- if ID is duplicatepublic static MSCSManagedObject findMSCSObjectByName(java.lang.String cluster_name)
cluster_name
- - Cluster Namepublic static MSCSManagedObject findMSCSObjectByNameResID(java.lang.String cluster_resid)
cluster_resid
- - Cluster resource IDpublic java.lang.String getPreferredPath()
public TWGNativeManagedObject getPreferredNode()
public java.lang.String[] GetAvailablePaths()
public java.lang.String[] getAttributeIDList()
TWGManagedObject
getAttributeIDList
in interface TWGGetSetInterface
getAttributeIDList
in class TWGClusterManagedObject
public DataValue getAttributeValue(java.lang.String id, java.util.Locale loc)
getAttributeValue
in interface TWGGetSetInterface
getAttributeValue
in class TWGClusterManagedObject
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 TWGClusterManagedObject
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 TWGClusterManagedObject
id
- - attribute ID
public java.lang.String getAttributeDescription(java.lang.String id, java.util.Locale loc)
getAttributeDescription
in interface TWGGetSetDescInterface
getAttributeDescription
in class TWGClusterManagedObject
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 TWGClusterManagedObject
id
- - attribute IDloc
- - locale to use for description
public boolean startPing()
startPing
in class TWGManagedObject
public java.lang.String getClusterName()
public java.lang.String getClusterResourceID()
public java.lang.String getClusterServicesVersion()
public static MSCSManagedObject findClusterByObject(TWGManagedObject obj)
obj
- - object contained in MSCS cluster
public void setNodeBad(TWGManagedObject node)
node
- - managed object of nodepublic void setNodeBad(int id)
id
- - persistent ID of nodepublic void setNodeGood(TWGManagedObject node)
node
- - managed object of nodepublic boolean removeMember(int rem_moid) throws InvalidObjectIDException
removeMember
in class TWGClusterManagedObject
rem_moid
- - Persistent ID of managed object to be removed
InvalidObjectIDException
public java.lang.String getClusterNodeName(int id)
id
- - persistent ID of node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |