com.adventnet.snmp.snmp2
Class TcpProtocolOptionsImpl
java.lang.Object
|
+--com.adventnet.snmp.snmp2.TcpProtocolOptionsImpl
- public class TcpProtocolOptionsImpl
- extends java.lang.Object
- implements ProtocolOptions
Implemention of the ProtocolOptions interface for TCP/IP protocol.
|
Constructor Summary |
|
TcpProtocolOptionsImpl(java.lang.String remoteHost,
int remotePort,
int localPort)
Constructor that creates the TcpProtocolOptionsImpl object. |
(package private) |
TcpProtocolOptionsImpl(java.lang.String remoteHost,
int remotePort,
int localPort,
java.lang.String localAddress)
Constructor that creates the TcpProtocolOptionsImpl object. |
|
Method Summary |
java.lang.String |
getLocalAddress()
Get the local address configured. |
(package private) java.lang.String[] |
getLocalAddresses()
|
int |
getLocalPort()
Get the local port configured. |
java.lang.String |
getRemoteHost()
Get the remote host with which this SNMP entity will communicate. |
int |
getRemotePort()
Get the remote port with which this SNMP entity will communicate. |
java.lang.String |
getSessionId()
Get a unique session id that is associated with each SNMP session
initiated from this SNMP entity. |
(package private) void |
setLocalAddresses(java.lang.String[] la)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
remoteHost
java.lang.String remoteHost
remotePort
int remotePort
localPort
int localPort
localAddress
java.lang.String localAddress
key
java.lang.String key
TcpProtocolOptionsImpl
public TcpProtocolOptionsImpl(java.lang.String remoteHost,
int remotePort,
int localPort)
- Constructor that creates the TcpProtocolOptionsImpl object.
TcpProtocolOptionsImpl
TcpProtocolOptionsImpl(java.lang.String remoteHost,
int remotePort,
int localPort,
java.lang.String localAddress)
- Constructor that creates the TcpProtocolOptionsImpl object.
getRemoteHost
public java.lang.String getRemoteHost()
- Get the remote host with which this SNMP entity will communicate.
getRemotePort
public int getRemotePort()
- Get the remote port with which this SNMP entity will communicate.
getLocalPort
public int getLocalPort()
- Get the local port configured.
getLocalAddress
public java.lang.String getLocalAddress()
- Get the local address configured.
getLocalAddresses
java.lang.String[] getLocalAddresses()
setLocalAddresses
void setLocalAddresses(java.lang.String[] la)
getSessionId
public java.lang.String getSessionId()
- Get a unique session id that is associated with each SNMP session
initiated from this SNMP entity. This is used by the SNMP v3 module.
For example, this can even be a combination of the host and port.
- Specified by:
- getSessionId in interface ProtocolOptions