|
|||||||||||
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.TWGNativeManagedObject
Base class for representing Director native clients.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
|
static int |
ITD_V200_VERSION
Version 2.00 value |
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 | |
---|---|
TWGNativeManagedObject()
Default constructor for native managed object |
Method Summary | |
---|---|
void |
addDatabaseRecord()
Add managed object database table row |
static void |
AddUpdateSNID(int systag,
byte[] snidbuf,
int snidoff)
Update existing SNID record, or add new one |
void |
ClientServiceStart(java.lang.String svcname,
ClientServiceListener cslistener)
Request client service start : start request is asynchronous, and provided listener will be have its ClientServiceStartCompleted() callback called when the start request is completed (success or failure). |
void |
ClientServiceStart(java.lang.String svcname,
ClientServiceListener cslistener,
TWGUser userid)
Request client service start : start request is asynchronous, and provided listener will be have its ClientServiceStartCompleted() callback called when the start request is completed (success or failure). |
void |
ClientServiceStop(java.lang.String svcname,
ClientServiceListener cslistener)
Request client service stop : stop request is asynchronous, and provided listener will be have its ClientServiceStopCompleted() callback called when the stop request is completed (success or failure). |
void |
ClientServiceStop(java.lang.String svcname,
ClientServiceListener cslistener,
TWGUser userid)
Request client service stop : stop request is asynchronous, and provided listener will be have its ClientServiceStopCompleted() callback called when the stop request is completed (success or failure). |
protected void |
copyTo(TWGManagedObject managedObject)
Copy instance data to another managed object. |
void |
Delete()
Destructor for TWGNativeManagedObject: remove object from lists |
void |
Destroy()
Destroy for TWGNativeManagedObject: send delete to NetMgr |
static void |
DumpAll()
Dump info on all objects (debug) |
static TWGNativeManagedObject |
FindByUniqueID(long uid)
Find native managed object by unique id. |
java.util.Date |
getAgentDate()
Get agent date |
java.lang.String |
getAgentDisplayVersion()
Get displayable agent version string |
java.lang.String |
getAgentVersion()
Get agent version string |
java.lang.String[] |
getAllMACAddrs()
Return list of all known MAC addresses for the given object |
static int[] |
GetAllSNIDTags()
Return all SNID tags |
byte |
getArchType()
Get arch_type |
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 |
getComputerName()
Get computer name |
int |
getDesktopImageSet()
Get desktop image set (may be overridden by subclass) |
com.tivoli.twg.engine.TWGManagedObjectFingerprint |
getFingerprint()
Get fingerprint. |
StringValueSet |
getIPAddressList()
Return list of TCPIP addresses currently being used by this native MO. |
int |
getLaptopImageSet()
Get laptop image set (may be overridden by subclass) |
int |
getLicenseVersionRequired(int prod_id)
License version required for this MO instance. |
byte[] |
getMACAddress()
Get MAC Address |
java.lang.String |
GetPerferredPath()
Get current preferred IPC path from server to client |
java.lang.String |
getPreferredPath()
Get current preferred IPC path from server to client |
int |
getServerImageSet()
Get server image set (may be overridden by subclass) |
static com.tivoli.twg.netipc.SystemNodeItemData |
GetSNIDByTag(int systag)
Get SNID by tag |
byte[] |
getUUID()
Get UUID |
boolean |
IsClientServiceSupported(java.lang.String svcname)
Test for support for a given client service |
void |
issueConfigRecordSynchronize(TWGDistConfigRecordHashcode[] recs,
DistConfigAgentResult rslt)
Starts synchronize of agent state to match given set of record definitions. |
void |
requestAccess(java.lang.String uid,
java.lang.String pwd,
java.lang.Object req_id_obj,
TWGManagedObjectActionListener result_listener)
Request access to managed object : this method should be subclassed by managed object implementations which support access request |
int |
requestClientSecure(TWGSecureRequestListener listen,
boolean do_unsecure)
Request client secure/unsecure : notify result through listener provided |
void |
requestPowerdown(java.lang.Object req_id_obj,
TWGManagedObjectActionListener result_listener)
Request powerdown of managed object : this method should be subclassed by managed object implementations which support powerdown |
void |
requestRestart(java.lang.Object req_id_obj,
TWGManagedObjectActionListener result_listener)
Request restart of managed object : this method should be subclassed by managed object implementations which support restart |
void |
requestShutdown(java.lang.Object req_id_obj,
TWGManagedObjectActionListener result_listener)
Request shutdown of managed object : this method should be subclassed by managed object implementations which support shutdown |
void |
requestWakeOnLAN(java.lang.Object req_id_obj,
TWGManagedObjectActionListener result_listener)
Request wake-up of managed object : this method should be subclassed by managed object implementations which support wake-on-LAN |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
Method for restoring persistent object data. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
Method for saving persistent object data. |
void |
setArchType(byte new_val,
boolean no_save)
Set arch_type |
boolean |
setAttributeValue(java.lang.String id,
DataValue val)
Set value of attribute with given ID |
void |
setMACAddress(byte[] new_val,
boolean no_save)
Set MAC Address |
void |
setPingInterval(long intr)
f7693 Set Ping Interval |
void |
SetUniqueID(long uid)
Set unique ID: removed or add objects to common object list |
void |
setUUID(byte[] new_val,
boolean no_save)
Set UUID |
boolean |
startPing()
Start ping : return true if supported |
protected boolean |
startPingInternal(boolean reauth)
Start ping : return true if supported |
boolean |
startPingWithReauthenticate()
Start ping with reauthenticate : return true if supported |
protected void |
startServiceRequest()
Start service list request for native managed object (normal priority -- FIFO queuing) |
protected void |
startServiceRequest(boolean highPriority)
Start service list request for native managed object |
static void |
startServiceRequest(java.lang.String baseService)
Perform a startServiceRequest() for all online objects that have the specified baseService. |
static void |
synchronizedObjectWithDatabase()
Synch database with managed objects : used during initialization to confirm existance of managed objects with state of database. |
long |
UniqueID()
Return unique ID |
protected void |
updateAttributes()
Update attribute flags |
static void |
ValidateSNIDs(int[] systags)
Validate records using tag list : remove all records which are not in list |
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 ITD_V200_VERSION
Constructor Detail |
public TWGNativeManagedObject()
Method Detail |
protected void copyTo(TWGManagedObject managedObject)
copyTo
in class TWGManagedObject
managedObject
- target managed object.public void SetUniqueID(long uid)
uid
- - new unique IDpublic long UniqueID()
public void setUUID(byte[] new_val, boolean no_save)
new_val
- - byte[16] unique ID (or null)no_save
- - no save required (used during restore)public byte[] getUUID()
public void setArchType(byte new_val, boolean no_save)
new_val
- - byte architecture type (or null)no_save
- - no save required (used during restore)public byte getArchType()
public void setMACAddress(byte[] new_val, boolean no_save)
new_val
- - byte[6] MAC Address (or null)no_save
- - no save required (used during restore)public byte[] getMACAddress()
public java.lang.String[] getAllMACAddrs()
public static int[] GetAllSNIDTags()
public static com.tivoli.twg.netipc.SystemNodeItemData GetSNIDByTag(int systag)
public static void AddUpdateSNID(int systag, byte[] snidbuf, int snidoff) throws TWGPersistentObjectSaveException, TWGObjectDestroyException
systag
- - system tagsnidbuf
- - buffer containing SNID recordsnidoff
- - offset of SNID record
TWGPersistentObjectSaveException
- if error on saving update
TWGObjectDestroyException
- if error on deleting old objectspublic StringValueSet getIPAddressList()
TWGObjectDestroyException
- if error destroying obsolete objectspublic static void ValidateSNIDs(int[] systags) throws TWGObjectDestroyException
systags
- - array of valid system tags
TWGObjectDestroyException
- if error destroying obsolete objectspublic static TWGNativeManagedObject FindByUniqueID(long uid)
uid
- - unique IDpublic void Delete()
Delete
in class TWGManagedObject
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGManagedObject
TWGObjectDestroyException
- if error during destroypublic static void DumpAll()
protected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGManagedObject
TWGPersistentObjectSaveException
- thrown to abort save procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGManagedObject
resolveObjectReferences
- used to indicate if object references should be
resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort restore procedure.public java.lang.String GetPerferredPath()
public java.lang.String getPreferredPath()
public java.lang.String[] GetAvailablePaths()
public boolean IsClientServiceSupported(java.lang.String svcname)
IsClientServiceSupported
in class TWGManagedObject
svcname
- - service name to be tested
public void ClientServiceStart(java.lang.String svcname, ClientServiceListener cslistener)
ClientServiceStart
in class TWGManagedObject
svcname
- - service namecslistener
- - ClientServiceListener for service completepublic void ClientServiceStart(java.lang.String svcname, ClientServiceListener cslistener, TWGUser userid)
ClientServiceStart
in class TWGManagedObject
svcname
- - service namecslistener
- - ClientServiceListener for service completeuserid
- - user ID of requesterpublic void ClientServiceStop(java.lang.String svcname, ClientServiceListener cslistener)
ClientServiceStop
in class TWGManagedObject
svcname
- - service namecslistener
- - ClientServiceListener for service completepublic void ClientServiceStop(java.lang.String svcname, ClientServiceListener cslistener, TWGUser userid)
ClientServiceStop
in class TWGManagedObject
svcname
- - service namecslistener
- - ClientServiceListener for service completeuserid
- - user ID of requester (null if none)public boolean startPing()
startPing
in class TWGManagedObject
public boolean startPingWithReauthenticate()
startPingWithReauthenticate
in class TWGManagedObject
protected boolean startPingInternal(boolean reauth)
reauth
- whether to request reauthentication
public void setPingInterval(long intr)
setPingInterval
in class TWGManagedObject
intr
- - new interval, in millisecondspublic 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 com.tivoli.twg.engine.TWGManagedObjectFingerprint getFingerprint()
getFingerprint
in class TWGManagedObject
protected void startServiceRequest()
protected void startServiceRequest(boolean highPriority)
highPriority
- true to enqueue as high priority (LIFO)public static void startServiceRequest(java.lang.String baseService)
baseService
- - the service the object must have to be
included in the startServiceRequest.
Typically this is: NativeMO.CIMMgr
NativeMO.DMIMgrprotected void updateAttributes()
public void requestShutdown(java.lang.Object req_id_obj, TWGManagedObjectActionListener result_listener)
requestShutdown
in class TWGManagedObject
req_id_obj
- - arbitrary request ID object (passed back to result
listener)result_listener
- - result listenerpublic void requestPowerdown(java.lang.Object req_id_obj, TWGManagedObjectActionListener result_listener)
requestPowerdown
in class TWGManagedObject
req_id_obj
- - arbitrary request ID object (passed back to result
listener)result_listener
- - result listenerpublic void requestRestart(java.lang.Object req_id_obj, TWGManagedObjectActionListener result_listener)
requestRestart
in class TWGManagedObject
req_id_obj
- - arbitrary request ID object (passed back to result
listener)result_listener
- - result listenerpublic void requestWakeOnLAN(java.lang.Object req_id_obj, TWGManagedObjectActionListener result_listener)
requestWakeOnLAN
in class TWGManagedObject
req_id_obj
- - arbitrary request ID object (passed back to result
listener)result_listener
- - result listenerpublic int getServerImageSet()
public int getLaptopImageSet()
public int getDesktopImageSet()
public int requestClientSecure(TWGSecureRequestListener listen, boolean do_unsecure)
requestClientSecure
in class TWGManagedObject
listen
- - TWGSecureRequestListener to notify with result, null if not
interesteddo_unsecure
- - true if unsecuring client, false if securing
public java.lang.String getAgentVersion()
public java.lang.String getAgentDisplayVersion()
public java.util.Date getAgentDate()
public int getLicenseVersionRequired(int prod_id)
getLicenseVersionRequired
in class TWGManagedObject
prod_id
- - product ID to be checked forpublic void issueConfigRecordSynchronize(TWGDistConfigRecordHashcode[] recs, DistConfigAgentResult rslt)
issueConfigRecordSynchronize
in interface TWGDistConfigAgentUpdate
recs
- - TWGDistConfigRecordHashcode set to be synchronized on agentrslt
- - result object to report results topublic void requestAccess(java.lang.String uid, java.lang.String pwd, java.lang.Object req_id_obj, TWGManagedObjectActionListener result_listener)
requestAccess
in class TWGManagedObject
uid
- - user IDpwd
- - passwordreq_id_obj
- - arbitrary request ID object (passed back to result
listener)result_listener
- - result listenerpublic java.lang.String getComputerName()
public void addDatabaseRecord()
addDatabaseRecord
in class TWGManagedObject
public static void synchronizedObjectWithDatabase() throws TWGDbException
TWGDbException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |