public class SnmpConnection extends Connection<Target>
| Constructor and Description |
|---|
SnmpConnection() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommunity() |
Target |
getConnection() |
PDUFactory |
getPdufactory() |
OID |
getPing() |
Integer |
getPort() |
String |
getProto() |
Snmp |
getSnmp() |
Integer |
getVersion() |
long |
readUptime(Set<OID> upTimesOids) |
void |
setCommunity(String community) |
void |
setPing(OID ping) |
void |
setPort(Integer port) |
void |
setProto(String proto) |
long |
setUptime()
Return the uptime of the end point of the connexion
it's called once after the connexion start
It should be in seconds
|
void |
setVersion(Integer version) |
boolean |
startConnection() |
void |
stopConnection() |
String |
toString() |
getHostName, getKey, getName, getResolver, getTimeout, getUptime, setName, start, stoppublic Target getConnection()
getConnection in class Connection<Target>public boolean startConnection()
startConnection in class Connection<Target>public void stopConnection()
stopConnection in class Connection<Target>public long setUptime()
ConnectionsetUptime in class Connection<Target>public Snmp getSnmp()
public Integer getVersion()
public void setVersion(Integer version)
version - the version to setpublic String getProto()
public void setProto(String proto)
proto - the proto to setpublic Integer getPort()
public void setPort(Integer port)
port - the port to setpublic String getCommunity()
public void setCommunity(String community)
community - the community to setpublic PDUFactory getPdufactory()
public String toString()
toString in class Connection<Target>public OID getPing()
public void setPing(OID ping)
ping - the ping to set