public class SnmpDetector extends AgentBasedSyncAbstractDetector<SnmpAgentConfig>
SnmpDetector class.
Modifier and Type | Class and Description |
---|---|
static class |
SnmpDetector.MatchType |
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_SERVICE_NAME
Constant
DEFAULT_SERVICE_NAME="SNMP" |
Constructor and Description |
---|
SnmpDetector()
Constructor for SnmpDetector.
|
SnmpDetector(String serviceName,
int port)
Constructor for creating a non-default service based on this protocol
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureAgentPTR(SnmpAgentConfig agentConfig)
configureAgentPTR
|
protected void |
configureAgentVersion(SnmpAgentConfig agentConfig)
configureAgentVersion
|
void |
dispose()
dispose
|
SnmpAgentConfig |
getAgentConfig(DetectRequest request) |
String |
getForceVersion()
getForceVersion
|
String |
getHex() |
String |
getIsTable() |
String |
getMatchType() |
String |
getOid()
getOid
|
protected static String |
getValue(SnmpAgentConfig agentConfig,
String oid,
boolean hex)
getValue
|
String |
getVbvalue()
getVbvalue
|
protected boolean |
isHex() |
boolean |
isServiceDetected(InetAddress address,
SnmpAgentConfig agentConfig) |
protected void |
onInit()
onInit
|
void |
setForceVersion(String forceVersion)
setForceVersion
|
void |
setHex(String hex) |
void |
setIsTable(String table) |
void |
setMatchType(String matchType) |
void |
setOid(String oid)
setOid
|
void |
setVbvalue(String vbvalue)
setVbvalue
|
detect
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
protected static final String DEFAULT_SERVICE_NAME
DEFAULT_SERVICE_NAME="SNMP"
public String getIsTable()
public void setIsTable(String table)
public void setHex(String hex)
public String getHex()
protected boolean isHex()
public SnmpAgentConfig getAgentConfig(DetectRequest request)
getAgentConfig
in class AgentBasedSyncAbstractDetector<SnmpAgentConfig>
public boolean isServiceDetected(InetAddress address, SnmpAgentConfig agentConfig)
isServiceDetected
in class AgentBasedSyncAbstractDetector<SnmpAgentConfig>
protected void configureAgentVersion(SnmpAgentConfig agentConfig)
configureAgentVersion
agentConfig
- a SnmpAgentConfig
object.protected void configureAgentPTR(SnmpAgentConfig agentConfig)
configureAgentPTR
agentConfig
- a SnmpAgentConfig
object.protected static String getValue(SnmpAgentConfig agentConfig, String oid, boolean hex)
getValue
agentConfig
- a SnmpAgentConfig
object.oid
- a String
object.String
object.public void setForceVersion(String forceVersion)
setForceVersion
forceVersion
- a String
object.protected void onInit()
onInit
onInit
in class AbstractDetector
public void dispose()
dispose
dispose
in interface ServiceDetector
dispose
in class AbstractDetector
public void setMatchType(String matchType)
public String getMatchType()
Copyright © 2017. All rights reserved.