net.sf.snmpadaptor4j
Class SnmpManagerConfiguration

java.lang.Object
  extended by net.sf.snmpadaptor4j.SnmpManagerConfiguration
All Implemented Interfaces:
Serializable

public final class SnmpManagerConfiguration
extends Object
implements Serializable

Object containing all parameters to connect to a SNMP manager for trap sending.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
SnmpManagerConfiguration(String address, int port, int version, String community)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getAddress()
          Returns the IP address of SNMP manager responsible of traps handling.
 String getCommunity()
          Returns the community of SNMP manager.
 int getPort()
          Returns the UDP port of SNMP manager responsible of traps handling.
 int getVersion()
          Returns the protocol version of SNMP manager.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpManagerConfiguration

public SnmpManagerConfiguration(String address,
                                int port,
                                int version,
                                String community)
Constructor.

Parameters:
address - IP address of SNMP manager responsible of traps handling.
port - UDP port of SNMP manager responsible of traps handling.
version - Protocol version of SNMP manager.
community - Community of SNMP manager.
Method Detail

getAddress

public String getAddress()
Returns the IP address of SNMP manager responsible of traps handling.

Returns:
IP address of SNMP manager.

getPort

public int getPort()
Returns the UDP port of SNMP manager responsible of traps handling.

Returns:
UDP port of SNMP manager.

getVersion

public int getVersion()
Returns the protocol version of SNMP manager.

Returns:
Protocol version of SNMP manager.

getCommunity

public String getCommunity()
Returns the community of SNMP manager.

Returns:
Community of SNMP manager.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.