com.tivoli.twg.rmon
Class TWGRMONDeviceObjectFactory

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGObject
      extended bycom.tivoli.twg.engine.TWGPersistentObject
          extended bycom.tivoli.twg.engine.TWGManagedObjectFactory
              extended bycom.tivoli.twg.rmon.TWGRMONDeviceObjectFactory
All Implemented Interfaces:
TWGBaseShadowedObject, TWGGetSetInterface, TWGShadowedObject

public class TWGRMONDeviceObjectFactory
extends TWGManagedObjectFactory

Base class for representing the managed object factory for RMON clients.


Field Summary
protected static java.lang.String[] FILTER_SET
           
protected static java.lang.String[] IMAGE_SET
           
static java.lang.String MO_CLASS
           
 
Fields inherited from class com.tivoli.twg.engine.TWGManagedObjectFactory
INSTANCE_OF_CALLBACK, INSTANCE_OF_NO, INSTANCE_OF_NO_RESPONSE, INSTANCE_OF_YES
 
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
TWGRMONDeviceObjectFactory()
          Default constructor
TWGRMONDeviceObjectFactory(java.lang.String m_o_cname)
          Constructor for creating a subclass of this factory.
 
Method Summary
 void Activate()
          Activate the topology processing.
 void Deactivate()
          Deactivate the topology processing
static TWGRMONDeviceObjectFactory GetFactory()
          Get instance of native managed object factory
protected  byte[] getOurAddressEntryRecord(TWGManagedObject obj)
          Address entry record support method.
 byte instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf, TWGManagedObject mo)
          Test a managed object instance for inclusion into a managed object factory class.
 void StartDiscoveryPass()
          Start a discovery pass: operation should return quickly, with actual discovery logic not being completed before the method returns.
 
Methods inherited from class com.tivoli.twg.engine.TWGManagedObjectFactory
ActivateAll, addDatabaseList, addMoClassAssociation, addTask, addTask, addTask, addTask, associateDatabaseTable, clearPingInterval, containsTask, containsTask, DeactivateAll, Delete, DiscoveryInterval, DiscoverySupported, DumpMOFTree, emptyDatabaseList, findDatabaseTables, findFactoryForManagedObject, findFactoryForManagedObject, findManagedObjectByFingerprint, freeLicense, getAddressEntryRecord, getAddressEntryShadow, getAgentPingInterval, getAllAssociatedManagedObjectIDs, getAllManagedObjectClassNames, getAllManagedObjectClassNamesAndOIDs, getAllManagedObjectSetAsIds, getAttributeIDList, getAttributeType, getAttributeValue, getAutoAddEnabled, getAutoAddSupported, getChildMOFSetAsIds, GetConShadowClass, getDatabaseList, getDatabaseList, GetFactoryForManagedObject, GetFactoryForManagedObject, getFilterImageSet, getImageSet, getLicense, getManagedObjectByFingerprint, getManagedObjectClassname, getManagedObjectSetAsIds, getManagedObjectSetAsIds, getMOFInstances, getMorphInterval, getName, getName, getNameKey, getParentMOF, getParentMofIds, getPingInterval, getPingInterval, getPingSupported, getPingType, getResourceBundle, getRootMOF, GetShadowRecord, GetShadowVersion, getTaskListAsIds, getTaskListAsIds, getTaskListSize, getTreeOrderedMOFList, initialize, isAutoClientSecureEnabled, isRootMOF, licenseRequired, ProcessAllAutoDiscovery, ProcessAllImmedDiscovery, ProcessAllImmedDiscovery, removeMoClassAssociation, removeTask, removeTask, restoreData, saveData, setAddObjectClassname, setAddressEntryShadow, setAgentPingInterval, setAttributeValue, setAutoAddEnabled, setAutoClientSecure, setClientSecureSupport, SetDiscoveryInterval, SetDiscoverySupported, setEditObjectClassname, setFilterImageSet, setImageSet, setLicenseProductCode, setMorphInterval, setName, setName, SetObjectID, setPingInterval, setPingType, startDiscoveryDaemon, startPing, stopDiscoveryDaemon, toString, UpdateShadowVersion
 
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject
Destroy, enableAsyncWrites, fromPersistID, 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

IMAGE_SET

protected static final java.lang.String[] IMAGE_SET

FILTER_SET

protected static final java.lang.String[] FILTER_SET

MO_CLASS

public static final java.lang.String MO_CLASS
See Also:
Constant Field Values
Constructor Detail

TWGRMONDeviceObjectFactory

public TWGRMONDeviceObjectFactory()
                           throws java.lang.ClassNotFoundException
Default constructor

Throws:
java.lang.ClassNotFoundException - if MO class not loaded

TWGRMONDeviceObjectFactory

public TWGRMONDeviceObjectFactory(java.lang.String m_o_cname)
                           throws java.lang.ClassNotFoundException
Constructor for creating a subclass of this factory.

Parameters:
m_o_cname - - TWGManagedObject classname associated with factory
Throws:
java.lang.ClassNotFoundException - if MO class not loaded
Method Detail

GetFactory

public static TWGRMONDeviceObjectFactory GetFactory()
Get instance of native managed object factory

Returns:
TWGRMONDeviceObjectFactory instance

Activate

public void Activate()
              throws ManagedObjectFactoryActivateException
Activate the topology processing.

Overrides:
Activate in class TWGManagedObjectFactory
Throws:
ManagedObjectFactoryActivateException - if error

Deactivate

public void Deactivate()
Deactivate the topology processing

Overrides:
Deactivate in class TWGManagedObjectFactory

StartDiscoveryPass

public void StartDiscoveryPass()
                        throws ManagedObjectFactoryDiscoverException
Start a discovery pass: operation should return quickly, with actual discovery logic not being completed before the method returns. The default method does nothing.

Overrides:
StartDiscoveryPass in class TWGManagedObjectFactory
Throws:
ManagedObjectFactoryDiscoverException - if error starting discovery pass

instanceOf

public byte instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf,
                       TWGManagedObject mo)
Test a managed object instance for inclusion into a managed object factory class. This method is used during managed object morphing. It is used by TWGEngine processes to determine the lowest level managed object factory class to which a managed object instace belongs. This method should bve inplemented by all managed object factory extension classes.

Overrides:
instanceOf in class TWGManagedObjectFactory
Parameters:
mofInstanceOf - Reference to TWGMofInstanceOf callback interface object.
mo - Reference to managed object instance to be tested.
Returns:
byte see TWGManagedObjectFactory.

getOurAddressEntryRecord

protected byte[] getOurAddressEntryRecord(TWGManagedObject obj)
Address entry record support method. This method generates a single record encoding to be interpreted by TWGNativeAddressEntry. The record simply consists of the compressed unicode encoding of the current best IPC path. should be subclassed by MOF subclasses in order to provide support for encoding address records. Each address record must consist of a list of records (1 or more), ordered from superclass to subclass, with each record consisting of an overall record length (SHORT) and a magic number (SHORT), followed by class-specific data.

Overrides:
getOurAddressEntryRecord in class TWGManagedObjectFactory
Parameters:
obj - - Managed object to request address encoding for
Returns:
byte array containing encoded address record, or null no support