com.tivoli.twg.engine
Class TWGConExtension

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

public class TWGConExtension
extends TWGConObject

Console object used to shadow the state of a TWGExtension object in the Director Server.


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConExtension(long obj_id)
          Constructor for TWGConExtension with given object ID
 
Method Summary
 java.lang.String extensionClassname()
          Get extension classname
 java.lang.String ExtensionName()
          Get extension name
static TWGConExtension getExtension(java.lang.String classname)
          Find extension by classname
 java.lang.String getExtensionProperty(java.lang.String propkey)
          Get property value from extension
static java.lang.String getExtensionProperty(java.lang.String classname, java.lang.String propkey)
          Get property value from extension with given classname
 boolean isDisabled()
          Check to see if extension disabled
 java.lang.String toString()
          Generate 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.
 java.lang.String VendorName()
          Get vendor name
 java.lang.String VersionName()
          Get version name
 
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
 

Constructor Detail

TWGConExtension

public TWGConExtension(long obj_id)
                throws DuplicateObjectIDException
Constructor for TWGConExtension 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()
Generate string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

VendorName

public java.lang.String VendorName()
Get vendor name

Returns:
vendor name

ExtensionName

public java.lang.String ExtensionName()
Get extension name

Returns:
extension name

VersionName

public java.lang.String VersionName()
Get version name

Returns:
version name

extensionClassname

public java.lang.String extensionClassname()
Get extension classname

Returns:
extension classname
Since:
ITD V3.1

isDisabled

public final boolean isDisabled()
Check to see if extension disabled


getExtensionProperty

public java.lang.String getExtensionProperty(java.lang.String propkey)
Get property value from extension

Parameters:
propkey - - property key
Returns:
value, or null if not found
Since:
ITD V3.1

getExtensionProperty

public static java.lang.String getExtensionProperty(java.lang.String classname,
                                                    java.lang.String propkey)
Get property value from extension with given classname

Parameters:
classname - - classname of extension
propkey - - property key
Returns:
value, or null if extension not found or property not found

getExtension

public static TWGConExtension getExtension(java.lang.String classname)
Find extension by classname

Parameters:
classname - - classname of extension
Returns:
TWGConExtension instance, or null if not found