HOME

com.ireasoning.protocol.snmp
Class SnmpEngine

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.SnmpEngine
All Implemented Interfaces:
Serializable

public class SnmpEngine
extends Object
implements Serializable

This class represents SNMP Engine concept as defined in SNMPv3.

See Also:
Serialized Form

Constructor Summary
SnmpEngine(byte[] engineID)
          Creates an SnmpEngine instance with the passed engineID, host and port number.
SnmpEngine(byte[] engineID, int boots, int time, String host, int port)
          Constructs a new SnmpEngine object
SnmpEngine(String host, int port)
          Creates an SnmpEngine with empty engine ID, and passed host and port number
SnmpEngine(String host, int port, byte[] engineID)
          Creates an SnmpEngine instance with the passed engineID
 
Method Summary
 int getEngineBoots()
          Returns the engine boots value
 byte[] getEngineID()
          Returns the engine id value
 int getEngineTime()
          Returns the engine time value
 String getHost()
          Returns the host name of snmp agent
 int getPort()
          Returns the port number of snmp agent
 void setEngineBoots(int i)
          Sets engine boots
 void setEngineID(byte[] engineID)
          Sets engine id value
 void setEngineTime(int time)
          Sets engine time
 void setHost(String host)
          Set a new host name of snmp agent
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpEngine

public SnmpEngine(String host,
                  int port)
Creates an SnmpEngine with empty engine ID, and passed host and port number

Parameters:
host - engine's host name or ip address
port - engine's port number

SnmpEngine

public SnmpEngine(byte[] engineID)
Creates an SnmpEngine instance with the passed engineID, host and port number.

Parameters:
engineID - the engineID of this object

SnmpEngine

public SnmpEngine(String host,
                  int port,
                  byte[] engineID)
Creates an SnmpEngine instance with the passed engineID

Parameters:
host - engine's host name or ip address
port - engine's port number
engineID - the engineID of this object

SnmpEngine

public SnmpEngine(byte[] engineID,
                  int boots,
                  int time,
                  String host,
                  int port)
Constructs a new SnmpEngine object

Parameters:
engineID - engine ID
boots - snmpEngineBoots, number of times an SnmpEngine has either been started or re-initialized since snmpEngineID was last configured.
host - the host name or ip address of snmp agent
time - snmpEngineTime, number of seconds since the value of snmpEngineBoots last changed.
port - the port number of snmp agent
Method Detail

getHost

public String getHost()
Returns the host name of snmp agent


setHost

public void setHost(String host)
Set a new host name of snmp agent

Parameters:
host - new host name or ip address

getEngineBoots

public int getEngineBoots()
Returns the engine boots value


getEngineID

public byte[] getEngineID()
Returns the engine id value


setEngineID

public void setEngineID(byte[] engineID)
Sets engine id value


getEngineTime

public int getEngineTime()
Returns the engine time value


getPort

public int getPort()
Returns the port number of snmp agent


setEngineBoots

public void setEngineBoots(int i)
Sets engine boots


setEngineTime

public void setEngineTime(int time)
Sets engine time


toString

public String toString()

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.