com.tivoli.twg.engine
Class TWGConManagedObjectFactory

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

public class TWGConManagedObjectFactory
extends TWGConObject

Console object used to shadow an instance of TWGManagedObjectFactory in the Director Server.


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConManagedObjectFactory(long oid)
          Constructor for TWGConManagedObjectFactory with a given object ID.
 
Method Summary
 void Delete()
          Destructor for TWGConObject: remove object from hash table
 void findAllTasks(IntValueSet taskset)
          Find all tasks associated with MOF, and add them to provided set
static TWGConManagedObjectFactory findByMOClass(java.lang.String mo_cname)
          Find TWGConManagedObjectFactory by TWGManagedObject class name
 TWGConImageSet findImageSet()
          Find image set for given MOF instance
 java.lang.String getAddObjectClassname()
          Get add-object classname
 long getAutoDiscoverInterval()
          Get automatic discovery interval
 long getAutoPingInterval()
          Get automatic ping interval
 StringValueSet getDatabaseList()
          Return the database table list for the instance.
 StringValueSet getDatabaseList(boolean traverseParent)
          Return the database table list.
 java.lang.String getEditObjectClassname()
          Get edit-object classname
 java.lang.String getName()
          Get name for this instance.
 TWGConManagedObjectFactory getParentMOF()
          Get parent MOF reference
 boolean isAutoAddEnabled()
          Test if auto-add of unknown agents is enabled
 boolean isAutoAddSupported()
          Test if this factory supports auto-add of unknown agents
 boolean isAutoSecureClientsEnabled()
          Test if this factory has automatic client secure enabled
 boolean isClientSecureSupported()
          Test if this factory supports client secure/unsecure
 boolean isDiscoverySupported()
          Test if this factory supports discovery requests
 boolean isPingSupported()
          Test if this factory supports auto-ping
 boolean isRoot()
          Checks if this instance is the root MOF in the tree.
 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, 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

TWGConManagedObjectFactory

public TWGConManagedObjectFactory(long oid)
                           throws DuplicateObjectIDException
Constructor for TWGConManagedObjectFactory with a given object ID.

Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

Delete

public void Delete()
Destructor for TWGConObject: remove object from hash table

Overrides:
Delete in class TWGConObject

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] rec,
                                    int rec_off,
                                    int rec_len)
                             throws TWGConObjectUpdateException
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 start of shadow record in byte array
rec_len - - length of shadow record within byte array
Throws:
TWGConObjectUpdateException - if error during update

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()
Get name for this instance.

Returns:
Name of this instance.

isRoot

public boolean isRoot()
Checks if this instance is the root MOF in the tree.

Returns:
true: if root instance.

findImageSet

public TWGConImageSet findImageSet()
Find image set for given MOF instance

Returns:
image set (or null if none)

findByMOClass

public static TWGConManagedObjectFactory findByMOClass(java.lang.String mo_cname)
Find TWGConManagedObjectFactory by TWGManagedObject class name

Parameters:
mo_cname - - managed object class name
Returns:
MOF instance reference, or null if not found

getParentMOF

public TWGConManagedObjectFactory getParentMOF()
Get parent MOF reference

Returns:
parent MOF

findAllTasks

public void findAllTasks(IntValueSet taskset)
Find all tasks associated with MOF, and add them to provided set

Parameters:
taskset - - set to add tasks into

getDatabaseList

public StringValueSet getDatabaseList()
Return the database table list for the instance. Include parents.

Returns:
List of data base tables.

getDatabaseList

public StringValueSet getDatabaseList(boolean traverseParent)
Return the database table list. A copy of the set is returned.

Returns:
List of data base tables.

getAddObjectClassname

public java.lang.String getAddObjectClassname()
Get add-object classname

Returns:
add-object classname, or null if adds not supported

getEditObjectClassname

public java.lang.String getEditObjectClassname()
Get edit-object classname

Returns:
edit-object classname, or null if edits not supported

isDiscoverySupported

public boolean isDiscoverySupported()
Test if this factory supports discovery requests

Returns:
true if supported, false if not

isClientSecureSupported

public boolean isClientSecureSupported()
Test if this factory supports client secure/unsecure

Returns:
true if supported, false if not

isAutoSecureClientsEnabled

public boolean isAutoSecureClientsEnabled()
Test if this factory has automatic client secure enabled

Returns:
true if enabled, false if not

getAutoDiscoverInterval

public long getAutoDiscoverInterval()
Get automatic discovery interval

Returns:
period, in msec, or 0 if disabled/unsupported

getAutoPingInterval

public long getAutoPingInterval()
Get automatic ping interval

Returns:
period, in msec, or 0 if disabled/unsupported

isPingSupported

public boolean isPingSupported()
Test if this factory supports auto-ping

Returns:
true if supported, false if not

isAutoAddSupported

public boolean isAutoAddSupported()
Test if this factory supports auto-add of unknown agents

Returns:
true if supported, false if not

isAutoAddEnabled

public boolean isAutoAddEnabled()
Test if auto-add of unknown agents is enabled

Returns:
true if supported, false if not