com.tivoli.twg.engine
Class TWGConManagedObject

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

public class TWGConManagedObject
extends TWGConObject

Console object used to shadow the state of a TWGImageSet object in the Director Server. Constants defined in com.tivoli.twg.engine.TWGManagedObjectConstants.


Field Summary
static int MO_IMAGE_DETAILVIEW
          Image set flags : request small/detail view images
static int MO_IMAGE_ICONVIEW
          Image set flags : request large/icon view images
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConManagedObject(long obj_id)
          Constructor for TWGConManagedObject with given object ID
 
Method Summary
 boolean canConsolePowerDown()
          Test if object can be powered down by the console
 boolean canConsoleReboot()
          Test if object can be rebooted by the console
 boolean canConsoleShutdown()
          Test if object can be shutdown by the console
 boolean canConsoleWakeOnLAN()
          Test if object can wake on lan by the console
 void findAllTasks(IntValueSet taskset)
          Find all tasks supported by managed object, and add to provided set
 TWGConImageSet findImageSet()
          Find image set for given object
 TWGConManagedObjectFactory findMOF()
          Find managed object factory associated with object
 TWGConManagedObjectStatusGroup.StatusDefinition[] getAllStatusDefinitions()
          Get list of status definitions (in presentation priority order) associated with managed object.
 javax.swing.ImageIcon getCurrentImage(int flags)
          Get current image for object, for given mode.
static StringValueSet getDatabaseTableSet(LongValueSet moSet)
          Get database table list associated with set of managed object ids and.
static StringValueSet getDatabaseTableSet(LongValueSet moSet, boolean traverseParent)
          Get database table list associated with set of managed object ids.
 int getImageSetID()
          Get image set ID
static LongValueSet getMOFIDSet(LongValueSet moSet)
          Get set of managed object factory ids associated with specified set of managed object ids
static TWGConManagedObjectFactory[] getMOFSet(LongValueSet moSet)
          Get managed object factorys associated with set of managed object ids.
 java.lang.String getName()
          Read name of managed object
 long getPingInterval()
          Get ping interval value
 int getState()
          Get state value
 IntValueSet getTaskSet()
          Get set of supported tasks.
 boolean hasLicenseGranted()
          Test if object has been granted a licenses.
 boolean isAccessDenied()
          Test if object has denied access to server
 boolean isAccessRequestSupported()
          Test if access request supported
 boolean isClientSecureSupported()
          Test if client secure/unsecure is supported
 boolean isClientUnsecure()
          Test if client is currently unsecure
 boolean isConsoleDeletable()
          Test if object is console deletable
 boolean isConsoleRenamable()
          Test if managed object is console renameable
 boolean isLicensedObject()
          Test if object is licensed (requires a license).
 boolean isServerMO()
          Test if client is an ITD server
 boolean isTMADetectable()
          Test if client can be checked for tma presence
 boolean isTMADetected()
          Test if client has tma loaded and operational
 boolean lacksLicense()
          Test to see if client lacks a required license
 java.lang.String toString()
          Get string representation of object
 void UpdateUsingShadowRecord(byte[] rec, 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, Delete, 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
 

Field Detail

MO_IMAGE_ICONVIEW

public static final int MO_IMAGE_ICONVIEW
Image set flags : request large/icon view images

See Also:
Constant Field Values

MO_IMAGE_DETAILVIEW

public static final int MO_IMAGE_DETAILVIEW
Image set flags : request small/detail view images

See Also:
Constant Field Values
Constructor Detail

TWGConManagedObject

public TWGConManagedObject(long obj_id)
                    throws DuplicateObjectIDException
Constructor for TWGConManagedObject 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[] rec,
                                    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 - - byte array containing opaque representation of shadowed attributes
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array

toString

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

Overrides:
toString in class TWGConObject
Returns:
string representation

getName

public java.lang.String getName()
Read name of managed object

Returns:
managed object name

getTaskSet

public IntValueSet getTaskSet()
Get set of supported tasks.

Returns:
reference to IntValueSet containing tasks (caller must not modify)

getImageSetID

public int getImageSetID()
Get image set ID

Returns:
ID of image set

getState

public int getState()
Get state value

Returns:
state value

getPingInterval

public long getPingInterval()
Get ping interval value

Returns:
ping interval value

getCurrentImage

public javax.swing.ImageIcon getCurrentImage(int flags)
Get current image for object, for given mode.

Parameters:
flags - - image selection flags
Returns:
image icon

findImageSet

public TWGConImageSet findImageSet()
Find image set for given object

Returns:
image set, or null if not found

findAllTasks

public void findAllTasks(IntValueSet taskset)
Find all tasks supported by managed object, and add to provided set

Parameters:
taskset - - set which will have tasks inserted

isConsoleDeletable

public boolean isConsoleDeletable()
Test if object is console deletable

Returns:
true if object is console deletable

isConsoleRenamable

public boolean isConsoleRenamable()
Test if managed object is console renameable

Returns:
true if console renameable

findMOF

public TWGConManagedObjectFactory findMOF()
Find managed object factory associated with object

Returns:
reference to MOF

getMOFSet

public static TWGConManagedObjectFactory[] getMOFSet(LongValueSet moSet)
Get managed object factorys associated with set of managed object ids.

Returns:
Array of managed object factory references.

getDatabaseTableSet

public static StringValueSet getDatabaseTableSet(LongValueSet moSet,
                                                 boolean traverseParent)
Get database table list associated with set of managed object ids.

Returns:
Set of database table names.

getMOFIDSet

public static LongValueSet getMOFIDSet(LongValueSet moSet)
Get set of managed object factory ids associated with specified set of managed object ids

Parameters:
moSet - set of managed object ids
Returns:
Set of managed object factory ids

getDatabaseTableSet

public static StringValueSet getDatabaseTableSet(LongValueSet moSet)
Get database table list associated with set of managed object ids and. parents.

Returns:
Set of database table names.

canConsoleShutdown

public boolean canConsoleShutdown()
Test if object can be shutdown by the console

Returns:
true if object can be shutdown by the console

canConsoleReboot

public boolean canConsoleReboot()
Test if object can be rebooted by the console

Returns:
true if object can be rebooted by the console

canConsoleWakeOnLAN

public boolean canConsoleWakeOnLAN()
Test if object can wake on lan by the console

Returns:
true if object can wake on lan by the console

canConsolePowerDown

public boolean canConsolePowerDown()
Test if object can be powered down by the console

Returns:
true if object can be powered down by the console

isAccessDenied

public boolean isAccessDenied()
Test if object has denied access to server

Returns:
true if object cannot be accessed by server

isLicensedObject

public boolean isLicensedObject()
Test if object is licensed (requires a license). This does NOT reflect whether or not it has been granted a license.

Returns:
true if object is a licensed object

hasLicenseGranted

public boolean hasLicenseGranted()
Test if object has been granted a licenses. This will be false for any unlicensed object, or for a licensed object which has not been granted a license.

Returns:
true if object has been granted a license, false otherwise

lacksLicense

public boolean lacksLicense()
Test to see if client lacks a required license

Returns:
true if client lacks license, false if not

isClientSecureSupported

public final boolean isClientSecureSupported()
Test if client secure/unsecure is supported

Returns:
true if function supported, false if not

isAccessRequestSupported

public final boolean isAccessRequestSupported()
Test if access request supported

Returns:
true if function supported, false if not

isClientUnsecure

public final boolean isClientUnsecure()
Test if client is currently unsecure

Returns:
true if client unsecure, false if secure or unsupported

isTMADetectable

public final boolean isTMADetectable()
Test if client can be checked for tma presence

Returns:
true if client supports tma presence check, false otherwise

isTMADetected

public final boolean isTMADetected()
Test if client has tma loaded and operational

Returns:
true if client has tma, false otherwise

isServerMO

public final boolean isServerMO()
Test if client is an ITD server

Returns:
true if client is a native mo and acts as an ITD server

getAllStatusDefinitions

public TWGConManagedObjectStatusGroup.StatusDefinition[] getAllStatusDefinitions()
Get list of status definitions (in presentation priority order) associated with managed object.

Returns:
array of status definitions