@Component @Scope(value="prototype") public class SnmpDetector extends SyncAbstractDetector implements org.springframework.beans.factory.InitializingBean
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 |
---|---|
void |
afterPropertiesSet() |
protected void |
configureAgentPTR(SnmpAgentConfig agentConfig)
configureAgentPTR
|
protected void |
configureAgentVersion(SnmpAgentConfig agentConfig)
configureAgentVersion
|
void |
dispose()
dispose
|
SnmpAgentConfigFactory |
getAgentConfigFactory()
getAgentConfigFactory
|
String |
getForceVersion()
getForceVersion
|
String |
getOid()
getOid
|
protected String |
getValue(SnmpAgentConfig agentConfig,
String oid)
getValue
|
String |
getVbvalue()
getVbvalue
|
boolean |
isServiceDetected(InetAddress address)
isServiceDetected
|
protected void |
onInit()
onInit
|
void |
setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
setAgentConfigFactory
|
void |
setForceVersion(String forceVersion)
setForceVersion
|
void |
setOid(String oid)
setOid
|
void |
setVbvalue(String vbvalue)
setVbvalue
|
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 void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean isServiceDetected(InetAddress address)
isServiceDetected
isServiceDetected
in interface SyncServiceDetector
isServiceDetected
in class SyncAbstractDetector
address
- a InetAddress
object.protected void configureAgentVersion(SnmpAgentConfig agentConfig)
configureAgentVersion
agentConfig
- a SnmpAgentConfig
object.protected void configureAgentPTR(SnmpAgentConfig agentConfig)
configureAgentPTR
agentConfig
- a SnmpAgentConfig
object.protected String getValue(SnmpAgentConfig agentConfig, String oid)
getValue
agentConfig
- a SnmpAgentConfig
object.oid
- a String
object.String
object.public void setForceVersion(String forceVersion)
setForceVersion
forceVersion
- a String
object.@Autowired public void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
setAgentConfigFactory
agentConfigFactory
- a SnmpAgentConfigFactory
object.public SnmpAgentConfigFactory getAgentConfigFactory()
getAgentConfigFactory
SnmpAgentConfigFactory
object.protected void onInit()
onInit
onInit
in class AbstractDetector
public void dispose()
dispose
dispose
in interface ServiceDetector
dispose
in class AbstractDetector
Copyright © 2016. All rights reserved.