com.adventnet.snmp.snmp2.agent
Class SnmpAgentInfoInstrument

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

class SnmpAgentInfoInstrument
extends java.lang.Object

This class has the SnmpAgent Informations. This takes care of SnmpAgentInfo Support.


Field Summary
protected  SnmpAgent agentRef
          Agent Reference
protected  java.lang.String snmpAgentIpAddress
          The Agent Address.
protected  java.lang.Integer snmpAgentOperStatus
          The Agent Operation status.
protected  java.lang.Integer snmpAgentPortNumer
          The Agent Running Port.
protected  java.lang.Long snmpAgentUpTime
          The Agent Uptime.
protected  java.lang.String snmpAgentVersion
          The Agents Snmp Version.
 
Constructor Summary
SnmpAgentInfoInstrument(SnmpAgent agent)
          Constructor With the SnmpAgent argument.
 
Method Summary
 java.lang.String getSnmpAgentIpAddress()
          Handles the SNMP Get Request for snmpAgentIpAddress
 java.lang.Integer getSnmpAgentOperStatus()
          Handles the SNMP Get Request for snmpAgentOperStatus
 java.lang.Integer getSnmpAgentPortNumer()
          Handles the SNMP Get Request for snmpAgentPortNumer
 java.lang.Long getSnmpAgentUpTime()
          Handles the SNMP Get Request for snmpAgentUpTime
 java.lang.String getSnmpAgentVersion()
          Handles the SNMP Get Request for snmpAgentVersion
 void setSnmpAgentIpAddress(java.lang.String value)
          Handles the SNMP Set Request for snmpAgentIpAddress
 void setSnmpAgentOperStatus(java.lang.Integer value)
          Handles the SNMP Set Request for snmpAgentOperStatus
 void setSnmpAgentPortNumer(java.lang.Integer value)
          Handles the SNMP Set Request for snmpAgentPortNumer
 void setSnmpAgentUpTime(java.lang.Long value)
          Handles the SNMP Set Request for snmpAgentUpTime
 void setSnmpAgentVersion(java.lang.String value)
          Handles the SNMP Set Request for snmpAgentVersion
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentRef

protected SnmpAgent agentRef
Agent Reference

snmpAgentVersion

protected java.lang.String snmpAgentVersion
The Agents Snmp Version.

snmpAgentIpAddress

protected java.lang.String snmpAgentIpAddress
The Agent Address.

snmpAgentPortNumer

protected java.lang.Integer snmpAgentPortNumer
The Agent Running Port.

snmpAgentUpTime

protected java.lang.Long snmpAgentUpTime
The Agent Uptime.

snmpAgentOperStatus

protected java.lang.Integer snmpAgentOperStatus
The Agent Operation status.
Constructor Detail

SnmpAgentInfoInstrument

public SnmpAgentInfoInstrument(SnmpAgent agent)
Constructor With the SnmpAgent argument.
Parameters:
agent - The SnmpAgent reference whose information has to be maintained.
Method Detail

getSnmpAgentVersion

public java.lang.String getSnmpAgentVersion()
                                     throws AgentException
Handles the SNMP Get Request for snmpAgentVersion
Returns:
The Agent's Snmp Version String.
Throws:
AgentException - this wraps all the exceptions while processing this event.

setSnmpAgentVersion

public void setSnmpAgentVersion(java.lang.String value)
Handles the SNMP Set Request for snmpAgentVersion
Parameters:
value - The Snmp Version String.

getSnmpAgentIpAddress

public java.lang.String getSnmpAgentIpAddress()
                                       throws AgentException
Handles the SNMP Get Request for snmpAgentIpAddress
Returns:
The Agent's host Address in IPAddress String.
Throws:
AgentException - this wraps all the exceptions while processing this event.

setSnmpAgentIpAddress

public void setSnmpAgentIpAddress(java.lang.String value)
Handles the SNMP Set Request for snmpAgentIpAddress
Parameters:
value - The IPAddress String of Agent Address.

getSnmpAgentPortNumer

public java.lang.Integer getSnmpAgentPortNumer()
                                        throws AgentException
Handles the SNMP Get Request for snmpAgentPortNumer
Returns:
The Agent's port.
Throws:
AgentException - this wraps all the exceptions while processing this event.

setSnmpAgentPortNumer

public void setSnmpAgentPortNumer(java.lang.Integer value)
Handles the SNMP Set Request for snmpAgentPortNumer
Parameters:
value - The port Number Integer.

getSnmpAgentUpTime

public java.lang.Long getSnmpAgentUpTime()
                                  throws AgentException
Handles the SNMP Get Request for snmpAgentUpTime
Returns:
The Agent Up time.
Throws:
AgentException - this wraps all the exceptions while processing this event.

setSnmpAgentUpTime

public void setSnmpAgentUpTime(java.lang.Long value)
Handles the SNMP Set Request for snmpAgentUpTime
Parameters:
value - The Long value of AgentUpTime.

getSnmpAgentOperStatus

public java.lang.Integer getSnmpAgentOperStatus()
                                         throws AgentException
Handles the SNMP Get Request for snmpAgentOperStatus
Returns:
The Agent's Operation Status.
Throws:
AgentException - this wraps all the exceptions while processing this event.

setSnmpAgentOperStatus

public void setSnmpAgentOperStatus(java.lang.Integer value)
Handles the SNMP Set Request for snmpAgentOperStatus
Parameters:
value - The Integer specifying the Agent's status.