com.tivoli.twg.rmon
Class TWGRMONDevice

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGObject
      extended bycom.tivoli.twg.engine.TWGPersistentObject
          extended bycom.tivoli.twg.engine.TWGManagedObject
              extended bycom.tivoli.twg.snmp.TWGSNMPDevice
                  extended bycom.tivoli.twg.rmon.TWGRMONDevice
All Implemented Interfaces:
TWGBaseShadowedObject, TWGGetSetDescInterface, TWGGetSetInterface, TWGManagedObjectLifeCycleListener, TWGPersistentObjectSubclassRestorable, TWGShadowedObject

public class TWGRMONDevice
extends TWGSNMPDevice

This class represents a base level SNMP Device. This is the class that all other TWGSNMPxxxx device types are derived from. It represents the existance of an SNMP agent at a particular IP address, and the existance of at least part of MIB II.


Field Summary
 
Fields inherited from class com.tivoli.twg.snmp.TWGSNMPDevice
deviceTracker, Engine, Stack
 
Fields inherited from class com.tivoli.twg.engine.TWGManagedObject
CLIENT_SERVICE_NOT_SUPPORTED, CLIENT_SERVICE_START_FAILED, CLIENT_SERVICE_START_SUCCEEDED, CLIENT_SERVICE_STOP_FAILED, CLIENT_SERVICE_STOP_SUCCEEDED, MO_SHADOW_ATTRIB_FLAGS_OFF, MO_SHADOW_CNTTASK_OFF, MO_SHADOW_HDRLEN, MO_SHADOW_HDRLEN_001, MO_SHADOW_HDRLEN_OFF, MO_SHADOW_IMGSET_OFF, MO_SHADOW_OFFNAME_OFF, MO_SHADOW_OFFTASK_OFF, MO_SHADOW_PINGINT_OFF, MO_SHADOW_STATE_OFF, MOSTATE_ERROR_OFFLINE, MOSTATE_ERROR_ONLINE, MOSTATE_INDETERMINATE, MOSTATE_INVALID_OBJECT, MOSTATE_NORMAL_OFFLINE, MOSTATE_NORMAL_ONLINE, MOSTATE_UNKNOWN, MOSTATE_UNLICENSED, SHADOWCLASSNAME
 
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
TWGRMONDevice()
          Construct A TWGSNMPDevice instance into the system.
TWGRMONDevice(java.lang.String Address, java.lang.String Context, int SubNet)
          Construct A TWGSNMPDevice instance into the system.
 
Method Summary
protected  void copyTo(TWGManagedObject managedObject)
          Copy instance data to another managed object.
 void Delete()
          Destructor for TWGNativeManagedObject: remove object from lists
 void Destroy()
          Destroy for TWGNativeManagedObject: send delete to NetMgr
protected static TWGRMONDevice GetRMONDevice(java.lang.String Address)
           
static TWGRMONDevice GetRMONDeviceFromID(long ID)
           
protected static int GetRMONDeviceID(java.lang.String Address)
           
protected  void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences)
          Method for restoring persistent object data.
protected  void saveData(TWGPersistentObjectDictionary dictionary)
          Method for saving persistent object data.
 
Methods inherited from class com.tivoli.twg.snmp.TWGSNMPDevice
advanceCurrentAddressInUse, CheckAdd, DiscoveryStart, exists, GetAddress, GetAddressList, getAttributeDescription, getAttributeIDList, getAttributeType, getAttributeValue, getAttributeValueString, GetContext, GetCount, GetDeviceFromID, GetDeviceID, getEngineID, getFingerprint, getOurAddressEntryRecord, GetSNMPDevice, GetSNMPDevice, getSNMPDeviceID, GetSNMPDeviceID, GetSNMPDeviceID, GetSNMPDiscEngine, GetSNMPStack, GetSubNetMask, GetTitle, getVersion, Initialize, isEncryptionEnabled, IsIP, managedObjectChanged, managedObjectCreated, managedObjectDestroyed, PingStatusChange, SetAddressList, setAttributeValue, SetContext, SetObjectID, SetPingRetries, SetPingTimeout, SetSubnetMask, SetSubnetMask, SetTitle, setVersion, ShutDown, startPing, startPingWithReauthenticate, SubnetMask, SubnetMaskRaw
 
Methods inherited from class com.tivoli.twg.engine.TWGManagedObject
AddClientService, addDatabaseRecord, addTask, addTask, categorizedManagedObjectIDs, clearPingInterval, ClientServiceStart, ClientServiceStart, ClientServiceStop, ClientServiceStop, containsTask, containsTask, deregisterNewOSListener, FindByAttributeValue, FindByAttributeValue, getAddressEntryRecord, getAddressEntryShadowClass, getAgentPingInterval, getAgentTimezoneOffset, getAllManagedObjectIDs, getAllManagedObjects, GetClientServices, GetConShadowClass, getDatabaseList, getEventCorrelator, getImageSet, getLicenseVersionRequired, getManagedObjectByID, getManagedObjectsSupportingClientService, getMof, getName, getOEMID, getPinger, getPingInterval, getPingInterval, getPingType, GetShadowRecord, GetShadowVersion, getState, getTaskListAsIds, getTaskListSize, initializeRestoredLicenses, initializeRestoredStatusGroups, ipAddressChangeNotify, isAccessDenied, isAccessRequestSupported, isAttribFlagSet, isClientSecureSupported, IsClientServiceSupported, isClientUnsecure, isConsoleDeletable, isConsoleRenamable, isPowerdownSupported, isRestartSupported, isServerMO, isShutdownSupported, isTMADetectable, isTMADetected, isWakeOnLANSupported, licenseGranted, licenseRequired, ObjectAddressEntryChangeNotify, ObjectChangedNotify, ObjectCreateNotify, ObjectDestroyNotify, ObjectStateChangeNotify, proce ssGrantRevokeLicense, registerClientServiceSubscriber, registerIPAddressChangeListener, RegisterLifeCycleListener, registerNewOSListener, RegisterStateListener, reissueLicenses, removeAllTaskAssociations, removeAllTaskAssociations, RemoveClientService, removeTask, removeTask, ReplaceClientServiceList, reportOSTypeAndVersion, requestAccess, requestClientSecure, requestPowerdown, requestRestart, requestShutdown, requestWakeOnLAN, saveAndUpdateIfNeeded, setAccessDenied, setAccessRequestSupported, setAgentPingInterval, setAgentTimezoneOffset, setAsServerMO, setClientSecureSupported, setClientUnsecureFlag, setConsoleDeletable, setConsoleRenamable, setEncryptionEnabled, setEventCorrelator, setImageSet, setName, setOEMID, setPinger, setPingInterval, setPowerdownSupported, setRestartSupported, setShutdownSupported, setState, setTMADetectable, setTMADetected, setWakeOnLANSupported, startPing, startPing, synchronizedObjectWithDatabase, toString, unregisterClientServiceSubscriber, unregisterIPAddressChangeListener, UnregisterLifeCycleListener, UnregisterStateListener, updateNameInDatabaseRecord, UpdateShadowVersion, updateStateInDatabaseRecord
 
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject
enableAsyncWrites, fromPersistID, initialize, 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
 

Constructor Detail

TWGRMONDevice

public TWGRMONDevice(java.lang.String Address,
                     java.lang.String Context,
                     int SubNet)
Construct A TWGSNMPDevice instance into the system. This usually occurs as the result of information obtained from the IP/IPX discovery process.

Parameters:
Address - An IP address, in string format.
Context - An SNMP V1 Community name.
SubNet - The subnet on which this device exists.

TWGRMONDevice

public TWGRMONDevice()
Construct A TWGSNMPDevice instance into the system. This will occur ONLY at system restart, and will be used to rebuild objects we already knew about.

Method Detail

copyTo

protected void copyTo(TWGManagedObject managedObject)
Copy instance data to another managed object.

Overrides:
copyTo in class TWGSNMPDevice
Parameters:
managedObject - target managed object.

GetRMONDeviceID

protected static int GetRMONDeviceID(java.lang.String Address)

GetRMONDevice

protected static TWGRMONDevice GetRMONDevice(java.lang.String Address)

GetRMONDeviceFromID

public static TWGRMONDevice GetRMONDeviceFromID(long ID)

saveData

protected void saveData(TWGPersistentObjectDictionary dictionary)
                 throws TWGPersistentObjectSaveException
Method for saving persistent object data.

Overrides:
saveData in class TWGSNMPDevice
Parameters:
dictionary - used to collect persistent object.
Throws:
TWGPersistentObjectSaveException - thrown to abort save procedure.

restoreData

protected void restoreData(TWGPersistentObjectDictionary dictionary,
                           boolean resolveObjectReferences)
                    throws TWGPersistentObjectRestoreException
Method for restoring persistent object data.

Overrides:
restoreData in class TWGSNMPDevice
Parameters:
resolveObjectReferences - used to indicate if object references should be resolved during restore.
dictionary - used to restore persistent object.
Throws:
TWGPersistentObjectRestoreException - thrown to abort restore procedure.

Delete

public void Delete()
Destructor for TWGNativeManagedObject: remove object from lists

Overrides:
Delete in class TWGSNMPDevice

Destroy

public void Destroy()
             throws TWGObjectDestroyException
Destroy for TWGNativeManagedObject: send delete to NetMgr

Overrides:
Destroy in class TWGSNMPDevice
Throws:
TWGObjectDestroyException - if error during destroy