com.adventnet.snmp.snmp2.agent
Class SystemGroupInstrument

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.SystemGroupInstrument

public class SystemGroupInstrument
extends java.lang.Object

This class is the implementation for the SystemGroup. By default, it only returns default values for the SystemGroup variables. The user has to extend this class and override the methods to get the values .


Field Summary
(package private)  SystemGroupInstrument listener
           
protected  java.lang.String sysContact
          The sysContact variable
protected  java.lang.String sysDescr
          The sysDescr variable
protected  java.lang.String sysLocation
          The sysLocation variable
protected  java.lang.String sysName
          The sysName variable
protected  java.lang.String sysObjectID
          The sysObjectID variable
protected  java.lang.Integer sysServices
          The sysServices variable
protected  java.lang.Long sysUpTime
          The sysUpTime variable
 
Constructor Summary
SystemGroupInstrument()
          Default constructor.
 
Method Summary
 void addSystemGroupListener(SystemGroupInstrument listener)
          This method adds the user implemented class as the SystemGroupInstrument instead of the dafult implementation.
 java.lang.String getSysContact()
          Handles the SNMP Get Request for sysContact
 java.lang.String getSysDescr()
          Handles the SNMP Get Request for sysDescr
 java.lang.String getSysLocation()
          Handles the SNMP Get Request for sysLocation
 java.lang.String getSysName()
          Handles the SNMP Get Request for sysName
 java.lang.String getSysObjectID()
          Handles the SNMP Get Request for sysObjectID
 java.lang.Long getSysORLastChange()
          Handles the SNMP Get Request for sysORLastChange
 java.lang.Integer getSysServices()
          Handles the SNMP Get Request for sysServices
 java.lang.Long getSysUpTime()
          Handles the SNMP Get Request for sysUpTime
 void setSysContact(java.lang.String value)
          Handles the SNMP Set Request for sysContact
 void setSysDescr(java.lang.String value)
          Handles the SNMP Set Request for sysDescr
 void setSysLocation(java.lang.String value)
          Handles the SNMP Set Request for sysLocation
 void setSysName(java.lang.String value)
          Handles the SNMP Set Request for sysName
 void setSysObjectID(java.lang.String value)
          Handles the SNMP Set Request for sysObjectID
 void setSysORLastChange(java.lang.Long value)
          Handles the SNMP Set Request for sysORLastChange
 void setSysServices(java.lang.Integer value)
          Handles the SNMP Set Request for sysServices
 void setSysUpTime(java.lang.Long value)
          Handles the SNMP Set Request for sysUpTime
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sysDescr

protected java.lang.String sysDescr
The sysDescr variable

sysObjectID

protected java.lang.String sysObjectID
The sysObjectID variable

sysUpTime

protected java.lang.Long sysUpTime
The sysUpTime variable

sysContact

protected java.lang.String sysContact
The sysContact variable

sysName

protected java.lang.String sysName
The sysName variable

sysLocation

protected java.lang.String sysLocation
The sysLocation variable

sysServices

protected java.lang.Integer sysServices
The sysServices variable

listener

SystemGroupInstrument listener
Constructor Detail

SystemGroupInstrument

public SystemGroupInstrument()
Default constructor. At present does nothing.
Method Detail

addSystemGroupListener

public void addSystemGroupListener(SystemGroupInstrument listener)
                            throws AgentException
This method adds the user implemented class as the SystemGroupInstrument instead of the dafult implementation. The user has to call this method from the agent to register his/her class to act as the SystemGropuInstrument.

getSysDescr

public java.lang.String getSysDescr()
                             throws AgentException
Handles the SNMP Get Request for sysDescr
Returns:
The sysDescr Value
Throws:
AgentException - on error.

setSysDescr

public void setSysDescr(java.lang.String value)
                 throws AgentException
Handles the SNMP Set Request for sysDescr
Parameters:
value - the String value to be set
Throws:
AgentException - on error

getSysObjectID

public java.lang.String getSysObjectID()
                                throws AgentException
Handles the SNMP Get Request for sysObjectID
Returns:
The sysObjectID Value
Throws:
AgentException - on error.

setSysObjectID

public void setSysObjectID(java.lang.String value)
                    throws AgentException
Handles the SNMP Set Request for sysObjectID
Parameters:
value - the String value to be set
Throws:
AgentException - on error

getSysUpTime

public java.lang.Long getSysUpTime()
                            throws AgentException
Handles the SNMP Get Request for sysUpTime
Returns:
The sysUpTime Value
Throws:
AgentException - on error.

setSysUpTime

public void setSysUpTime(java.lang.Long value)
                  throws AgentException
Handles the SNMP Set Request for sysUpTime
Parameters:
value - the Long value to be set
Throws:
AgentException - on error

getSysContact

public java.lang.String getSysContact()
                               throws AgentException
Handles the SNMP Get Request for sysContact
Returns:
The sysContact String
Throws:
AgentException - on error.

setSysContact

public void setSysContact(java.lang.String value)
                   throws AgentException
Handles the SNMP Set Request for sysContact
Parameters:
value - the String value to be set
Throws:
AgentException - on error

getSysName

public java.lang.String getSysName()
                            throws AgentException
Handles the SNMP Get Request for sysName
Returns:
The sysName String
Throws:
AgentException - on error.

setSysName

public void setSysName(java.lang.String value)
                throws AgentException
Handles the SNMP Set Request for sysName
Parameters:
value - the String value to be set
Throws:
AgentException - on error

getSysLocation

public java.lang.String getSysLocation()
                                throws AgentException
Handles the SNMP Get Request for sysLocation
Returns:
The sysLocation String
Throws:
AgentException - on error.

setSysLocation

public void setSysLocation(java.lang.String value)
                    throws AgentException
Handles the SNMP Set Request for sysLocation
Parameters:
value - the String value to be set
Throws:
AgentException - on error

getSysServices

public java.lang.Integer getSysServices()
                                 throws AgentException
Handles the SNMP Get Request for sysServices
Returns:
The sysServices Value
Throws:
AgentException - on error.

setSysServices

public void setSysServices(java.lang.Integer value)
                    throws AgentException
Handles the SNMP Set Request for sysServices
Parameters:
value - the Value to be set
Throws:
AgentException - on error

getSysORLastChange

public java.lang.Long getSysORLastChange()
                                  throws AgentException
Handles the SNMP Get Request for sysORLastChange
Returns:
The sysORLastChange Value
Throws:
AgentException - on error.

setSysORLastChange

public final void setSysORLastChange(java.lang.Long value)
                              throws AgentException
Handles the SNMP Set Request for sysORLastChange
Parameters:
value - the Value to be set
Throws:
AgentException - on error