|
|||||||||||
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.ibm.sysmgt.chassis.ChassisManagedObject
Chassis Managed Object Class Abstract class for managed objects representing Chassis. Object represents the general idea of a chassis, including the common concepts of membership by other managed objects in the chassis.
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 | |
---|---|
ChassisManagedObject()
Default constructor for creating new chassis |
Method Summary | |
---|---|
boolean |
addSubsystem(ChassisSubsystemInfo info)
Add subsystem to Chassis list and Chassis Factory list. |
boolean |
addSubsystem(ChassisSubsystemInfo info,
ChassisSubsystemInfo parentInfo)
Add subsystem to Chassis list and Chassis Factory list. |
protected void |
copyTo(TWGManagedObject managedObject)
Copy instance data to another managed object. |
void |
Delete()
Destructor for ChassisManagedObject: remove persistent oid from lists |
void |
Destroy()
Destroy for ChassisManagedObject |
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 |
getChassisSubsystemType()
Get Chassis Subsystem Type |
ChassisSubsystemInfo[] |
getSubsystemInfo()
Get list of Subystem Informatin Objects |
static ChassisSubsystemInfo[] |
getSubsystemInfo(long chassis_moid)
Get list of Subystem Informatin Objects |
ChassisSubsystemInfo |
getSubsystemInfoByLocation(int type,
int loc)
Get subsystem Information objects of a specific subystem type at a specific location (Assumes Chassis as the parent) |
static ChassisSubsystemInfo |
getSubsystemInfoByLocation(long chassis_moid,
int type,
int loc)
Get subsystem Information objects of a specific subystem type at a specific location |
ChassisSubsystemInfo |
getSubsystemInfoByMOID(long subsys_moid)
Get Subsytem Information object of a specific subsystem MOID |
static ChassisSubsystemInfo |
getSubsystemInfoByMOID(long chassis_moid,
long subsys_moid)
Get Subsytem Information object of a specific subsystem MOID |
ChassisSubsystemInfo[] |
getSubsystemInfoByParent(ChassisSubsystemInfo parentInfo)
Get children subsystem Information objects of a parent |
static ChassisSubsystemInfo[] |
getSubsystemInfoByParent(long chassis_moid,
ChassisSubsystemInfo parentInfo)
Get children subsystem Information objects of a parent |
static ChassisSubsystemInfo[] |
getSubsystemInfoByParent(long chassis_moid,
ChassisSubsystemInfo parentInfo,
int childType)
Get specific type children subsystem Information objects of a parent |
static ChassisSubsystemInfo |
getSubsystemInfoByParent(long chassis_moid,
ChassisSubsystemInfo parentInfo,
int childType,
int childIndex)
Get children subsystem Information objects of a parent by specific subsystem type and index of a specific parent |
ChassisSubsystemInfo[] |
getSubsystemInfoByType(int type)
Get list of subsystem Information objects of a specific subsystem type |
static ChassisSubsystemInfo[] |
getSubsystemInfoByType(long chassis_moid,
int type)
Get list of subsystem Information objects of a specific subsystem type |
long[] |
getSubsystemMOID()
Get list of subsystem MOIDs |
static long[] |
getSubsystemMOID(long chassis_moid)
Get list of subsystem MOIDs |
long |
getSubsystemMOIDByLocation(int type,
int loc)
Get Subsystem MOID of a specific type at a specific location |
static long |
getSubsystemMOIDByLocation(long chassis_moid,
int type,
int loc)
Get Subsystem MOID of a specific type at a specific location |
long[] |
getSubsystemMOIDByType(int type)
Get specific type subsystem MOIDs |
static long[] |
getSubsystemMOIDByType(long chassis_moid,
int type)
Get specific type subsystem MOIDs |
boolean |
isSubsystem(long moid)
Test to see if managed object ID is a subsystem of chassis |
boolean |
isSubsystem(TWGManagedObject mo)
Test to see if managed object is a subsystem of chassis |
boolean |
removeSubsystem(ChassisSubsystemInfo info)
Remove subsystem hardware from Chassis list and Chassis Factory list. |
boolean |
removeSubsystem(int subsys_type,
int subsys_locId)
Remove subsystem hardware from Chassis list and Chassis Factory list. |
boolean |
removeSubsystemMOID(long moid)
Remove subsystem managed object id from Chassis list and Chassis Factory list. |
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 |
setChassisSubsystemType(int type)
Set Chassis Subsystem Type |
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 ChassisManagedObject()
Method Detail |
protected void copyTo(TWGManagedObject managedObject)
copyTo
in class TWGManagedObject
managedObject
- target managed object.protected 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 void Delete()
Delete
in class TWGManagedObject
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGManagedObject
TWGObjectDestroyException
- if error during destroypublic void setChassisSubsystemType(int type)
public int getChassisSubsystemType()
public final boolean addSubsystem(ChassisSubsystemInfo info) throws InvalidObjectIDException
info
- Subsystem to be added with Chassis as the parent
InvalidObjectIDException
- if bad MO or chassis objectpublic final boolean addSubsystem(ChassisSubsystemInfo info, ChassisSubsystemInfo parentInfo) throws InvalidObjectIDException
info
- Subsystem to be addedparentInfo
- Parent of the Subsytem to be added
InvalidObjectIDException
- if bad MO or chassis objectpublic final boolean removeSubsystemMOID(long moid) throws InvalidObjectIDException
moid
- - subsystem managed object id to be removed
InvalidObjectIDException
- if bad MO or Chassis objectpublic final boolean removeSubsystem(int subsys_type, int subsys_locId)
subsys_type
- Subsystem Typesubsys_locId
- Subsystem Location Id
public final boolean removeSubsystem(ChassisSubsystemInfo info)
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()
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
public boolean isSubsystem(TWGManagedObject mo)
mo
- - managed object to be checkedpublic boolean isSubsystem(long moid)
public ChassisSubsystemInfo[] getSubsystemInfo()
public static ChassisSubsystemInfo[] getSubsystemInfo(long chassis_moid)
public ChassisSubsystemInfo[] getSubsystemInfoByType(int type)
type
- - Subsystem Type
public static ChassisSubsystemInfo[] getSubsystemInfoByType(long chassis_moid, int type)
type
- - Subsystem Type
public ChassisSubsystemInfo getSubsystemInfoByLocation(int type, int loc)
type
- - Subsystem Typeloc
- - Subsystem Location
public static ChassisSubsystemInfo[] getSubsystemInfoByParent(long chassis_moid, ChassisSubsystemInfo parentInfo)
chassis_moid
- - Chassis MOIDparentInfo
- - Parent Subsytem Information object
public ChassisSubsystemInfo[] getSubsystemInfoByParent(ChassisSubsystemInfo parentInfo)
parentInfo
- - Parent Subsytem Information object
public static ChassisSubsystemInfo[] getSubsystemInfoByParent(long chassis_moid, ChassisSubsystemInfo parentInfo, int childType)
parentInfo
- - Parent Subsytem Information objectchildType
- - Child Subsystem Type
public static ChassisSubsystemInfo getSubsystemInfoByParent(long chassis_moid, ChassisSubsystemInfo parentInfo, int childType, int childIndex)
parentInfo
- - Parent Subsytem Information objectchildType
- - Child Subsystem TypechildIndex
- - Child Subsystem Indexpublic static ChassisSubsystemInfo getSubsystemInfoByLocation(long chassis_moid, int type, int loc)
type
- - Subsystem Typeloc
- - Subsystem Location
public ChassisSubsystemInfo getSubsystemInfoByMOID(long subsys_moid)
subsys_moid
- - Subsystem MOID
public static ChassisSubsystemInfo getSubsystemInfoByMOID(long chassis_moid, long subsys_moid)
subsys_moid
- - Subsystem MOID
public long[] getSubsystemMOID()
public static long[] getSubsystemMOID(long chassis_moid)
public long[] getSubsystemMOIDByType(int type)
type
- - Subsystem Type
public static long[] getSubsystemMOIDByType(long chassis_moid, int type)
type
- - Subsystem Type
public long getSubsystemMOIDByLocation(int type, int loc)
type
- - Subsystem Typeloc
- - Subsystem Location
public static long getSubsystemMOIDByLocation(long chassis_moid, int type, int loc)
type
- - Subsystem Typeloc
- - Subsystem Location
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |