|
|||||||||||
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.TWGManagedObjectFactory
com.tivoli.twg.snmp.TWGSNMPDeviceObjectFactory
Base class for representing the managed object factory for SNMP 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 | |
---|---|
TWGSNMPDeviceObjectFactory()
INTERNAL USE ONLY |
|
TWGSNMPDeviceObjectFactory(java.lang.String m_o_cname)
INTERNAL USE ONLY |
Method Summary | |
---|---|
protected void |
Activate()
INTERNAL USE ONLY |
void |
Deactivate()
INTERNAL USE ONLY |
static java.lang.String[] |
getAllProfileNames()
This method returns all of the SNMPv3 user profile names stored. |
boolean |
getAutoAddEnabled()
Returns current setting of Auto-Add feature : subclasses should replace this method with their own implementations. |
boolean |
getAutoAddSupported()
Indicates if auto-add of unknown clients is supported : subclasses should replace this method to return 'true' if feature is supported. |
static short |
getDefaultVersion()
Returns the default version of SNMP to use for communication. |
static com.tivoli.twg.snmp.TWGSnmpDiscoveryData |
GetDiscoveryData()
INTERNAL USE ONLY |
static TWGSNMPDeviceObjectFactory |
GetFactory()
Get instance of native managed object factory |
protected TWGManagedObject |
getManagedObjectByFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
Get managed object by managed object fingerprint |
protected byte[] |
getOurAddressEntryRecord(TWGManagedObject obj)
Address entry record support method. |
static com.tivoli.twg.snmp.SNMPv3Profile |
getProfileData(java.lang.String profileName)
This method returns the SNMPv3 user profile data for the given profile name. |
static com.tivoli.twg.snmp.TWGSnmpTrapObserver |
GetTrapObserver()
Get the instance of the TWGSnmpTrapObserver used by the Director Server |
byte |
instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf,
TWGManagedObject mo)
Test a managed object instance for inclusion into a managed object factory class. |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
INTERNAL USE ONLY |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
INTERNAL USE ONLY |
boolean |
setAutoAddEnabled(boolean enable)
Change setting of auto-add feature : subclasses should replace this method with their own implementations. |
static void |
SetDiscoveryData(com.tivoli.twg.snmp.TWGSnmpDiscoveryData newData)
INTERNAL USE ONLY |
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.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 |
public static final java.lang.String MO_CLASS
protected static final java.lang.String[] IMAGE_SET
protected static final java.lang.String[] FILTER_SET
Constructor Detail |
public TWGSNMPDeviceObjectFactory() throws java.lang.ClassNotFoundException
Default constructor
java.lang.ClassNotFoundException
- if MO class not loadedpublic TWGSNMPDeviceObjectFactory(java.lang.String m_o_cname) throws java.lang.ClassNotFoundException
Constructor for creating a subclass of this factory.
m_o_cname
- - TWGManagedObject classname associated with factory
java.lang.ClassNotFoundException
- if MO class not loadedMethod Detail |
public static TWGSNMPDeviceObjectFactory GetFactory()
public static com.tivoli.twg.snmp.TWGSnmpTrapObserver GetTrapObserver()
protected void Activate() throws ManagedObjectFactoryActivateException
Activate the topology processing.
Activate
in class TWGManagedObjectFactory
ManagedObjectFactoryActivateException
- if errorpublic boolean getAutoAddSupported()
getAutoAddSupported
in class TWGManagedObjectFactory
public boolean getAutoAddEnabled()
getAutoAddEnabled
in class TWGManagedObjectFactory
public boolean setAutoAddEnabled(boolean enable)
setAutoAddEnabled
in class TWGManagedObjectFactory
enable
- - true if enabled, false if disabled
public void Deactivate()
Deactivate the topology processing
Deactivate
in class TWGManagedObjectFactory
public void StartDiscoveryPass() throws ManagedObjectFactoryDiscoverException
StartDiscoveryPass
in class TWGManagedObjectFactory
ManagedObjectFactoryDiscoverException
- if error starting
discovery passpublic byte instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf, TWGManagedObject mo)
instanceOf
in class TWGManagedObjectFactory
mofInstanceOf
- Reference to TWGMofInstanceOf callback interface object.mo
- Reference to managed object instance to be tested.
protected TWGManagedObject getManagedObjectByFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
getManagedObjectByFingerprint
in class TWGManagedObjectFactory
fingerprint
- - managed object fingerprint
protected byte[] getOurAddressEntryRecord(TWGManagedObject obj)
getOurAddressEntryRecord
in class TWGManagedObjectFactory
obj
- - Managed object to request address encoding for
public static final com.tivoli.twg.snmp.TWGSnmpDiscoveryData GetDiscoveryData()
public static final void SetDiscoveryData(com.tivoli.twg.snmp.TWGSnmpDiscoveryData newData)
public static final short getDefaultVersion()
public static final java.lang.String[] getAllProfileNames()
public static final com.tivoli.twg.snmp.SNMPv3Profile getProfileData(java.lang.String profileName)
profileName
- profile to get info on
protected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
Method for saving persistent object data.
saveData
in class TWGManagedObjectFactory
TWGPersistentObjectSaveException
- thrown to abort save procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
Method for restoring persistent object data.
restoreData
in class TWGManagedObjectFactory
resolveObjectReferences
- used to indicate if object references should be
resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort restore procedure.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |