| 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ireasoning.protocol.Target
com.ireasoning.protocol.snmp.SnmpTarget
This class represents Snmp agent, containing properties of agent, such as host name, port number, community name.
| Field Summary | |
static String | 
PUBLIC
Default "public" community name  | 
| Fields inherited from class com.ireasoning.protocol.Target | 
_host, _inetAddress, _port | 
| Constructor Summary | |
SnmpTarget(String host,
           int port)
Constructs an SnmpTarget object for SNMPv1 or SNMPv3, using "public" as the community name  | 
|
SnmpTarget(String host,
           int port,
           String readCommunity,
           String writeCommunity)
Constructs an SnmpTarget object for SnmpV1 and SnmpV2c.  | 
|
SnmpTarget(String host,
           int port,
           String readCommunity,
           String writeCommunity,
           int version)
Constructs an SnmpTarget object for SnmpV1 and SnmpV2c  | 
|
| Method Summary | |
 String | 
getReadCommunity()
Returns the community name for SNMP "read" requests, such as GET, GET_NEXT, etc.  | 
 int | 
getVersion()
Returns the current SNMP version number  | 
 String | 
getWriteCommunity()
Returns the community name for snmp SET operation  | 
 void | 
setReadCommunity(String readCommunity)
Sets the community name for SNMP "read" requests, such as GET, GET_NEXT, etc.  | 
 void | 
setVersion(int ver)
Sets the SNMP protocol version number.  | 
 void | 
setWriteCommunity(String writeCommunity)
Sets the community name for snmp SET operation  | 
| Methods inherited from class com.ireasoning.protocol.Target | 
getHost, getInetAddress, getPort, setHost, setPort, toString | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final String PUBLIC
| Constructor Detail | 
public SnmpTarget(String host,
                  int port,
                  String readCommunity,
                  String writeCommunity,
                  int version)
host - host name or ip address of agentport - port number of agentreadCommunity - the community name for "read" operations such as GET,
 GET_NEXT, GET_BULK, WALK, etcwriteCommunity - the community name for SET opertion.version - the snmp version supported by agent, one of { SnmpConst.SNMPV1, SnmpConst.SNMPV2, SnmpConst.SNMPV3 }
public SnmpTarget(String host,
                  int port,
                  String readCommunity,
                  String writeCommunity)
host - host name or ip address of agentport - port number of agentreadCommunity - the community name for "read" operations such as GET,
 GET_NEXT, GET_BULK, WALK, etcwriteCommunity - the community name for SET opertion.
public SnmpTarget(String host,
                  int port)
host - host name or ip address of agentport - port number of agent| Method Detail | 
public String getReadCommunity()
public void setReadCommunity(String readCommunity)
readCommunity - the community name for "read" requestspublic String getWriteCommunity()
public void setWriteCommunity(String writeCommunity)
writeCommunity - the community name for SET opertionpublic int getVersion()
public void setVersion(int ver)
ver - SNMP version to use. Possible values are
 { SnmpConst.SNMPV1, SnmpConst.SNMPV2, SnmpConst.SNMPV3 }
  | 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||