org.opennms.netmgt.provision.detector.endpoint
Class EndPointDetector

java.lang.Object
  extended by org.opennms.netmgt.provision.support.AbstractDetector
      extended by org.opennms.netmgt.provision.detector.endpoint.EndPointDetector
All Implemented Interfaces:
ServiceDetector, SyncServiceDetector

@Component
@Scope(value="prototype")
public class EndPointDetector
extends AbstractDetector


Field Summary
protected static String DEFAULT_SERVICE_NAME
          Constant DEFAULT_SERVICE_NAME="EndPoint"
 
Constructor Summary
EndPointDetector()
          Constructor for EndPointDetector.
EndPointDetector(String serviceName, int port)
          Constructor for creating a non-default service based on this protocol
 
Method Summary
protected  void configureAgentPTR(SnmpAgentConfig agentConfig)
          configureAgentPTR
protected  void configureAgentVersion(SnmpAgentConfig agentConfig)
          configureAgentVersion
 void dispose()
          dispose
 SnmpAgentConfigFactory getAgentConfigFactory()
          getAgentConfigFactory
 EndPointConfigurationDao getEndPointConfigurationDao()
          getEndPointConfigurationDao
 String getForceVersion()
          getForceVersion
protected  String getValue(SnmpAgentConfig agentConfig, String oid)
          getValue
 void init()
          init
 boolean isServiceDetected(InetAddress address, DetectorMonitor detectMonitor)
          isServiceDetected
protected  void onInit()
          onInit
 void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
          setAgentConfigFactory
 void setEndPointConfigurationDao(EndPointConfigurationDao dao)
          setEndPointConfigurationDao
 void setForceVersion(String forceVersion)
          setForceVersion
 
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getPort, getRetries, getServiceName, getTimeout, log, setPort, setRetries, setServiceName, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SERVICE_NAME

protected static final String DEFAULT_SERVICE_NAME
Constant DEFAULT_SERVICE_NAME="EndPoint"

See Also:
Constant Field Values
Constructor Detail

EndPointDetector

public EndPointDetector()

Constructor for EndPointDetector.


EndPointDetector

public EndPointDetector(String serviceName,
                        int port)
Constructor for creating a non-default service based on this protocol

Parameters:
serviceName - a String object.
port - a int.
Method Detail

init

public void init()

init

Specified by:
init in interface ServiceDetector
Overrides:
init in class AbstractDetector

isServiceDetected

public boolean isServiceDetected(InetAddress address,
                                 DetectorMonitor detectMonitor)

isServiceDetected

Specified by:
isServiceDetected in interface SyncServiceDetector
Specified by:
isServiceDetected in class AbstractDetector
Parameters:
address - a InetAddress object.
detectMonitor - a DetectorMonitor object.
Returns:
a boolean.

configureAgentVersion

protected void configureAgentVersion(SnmpAgentConfig agentConfig)

configureAgentVersion

Parameters:
agentConfig - a SnmpAgentConfig object.

configureAgentPTR

protected void configureAgentPTR(SnmpAgentConfig agentConfig)

configureAgentPTR

Parameters:
agentConfig - a SnmpAgentConfig object.

getValue

protected String getValue(SnmpAgentConfig agentConfig,
                          String oid)

getValue

Parameters:
agentConfig - a SnmpAgentConfig object.
oid - a String object.
Returns:
a String object.

setForceVersion

public void setForceVersion(String forceVersion)

setForceVersion

Parameters:
forceVersion - a String object.

getForceVersion

public String getForceVersion()

getForceVersion

Returns:
a String object.

setAgentConfigFactory

public void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)

setAgentConfigFactory

Parameters:
agentConfigFactory - a SnmpAgentConfigFactory object.

getAgentConfigFactory

public SnmpAgentConfigFactory getAgentConfigFactory()

getAgentConfigFactory

Returns:
a SnmpAgentConfigFactory object.

setEndPointConfigurationDao

public void setEndPointConfigurationDao(EndPointConfigurationDao dao)

setEndPointConfigurationDao

Parameters:
dao - a EndPointConfigurationDao object.

getEndPointConfigurationDao

public EndPointConfigurationDao getEndPointConfigurationDao()

getEndPointConfigurationDao

Returns:
a EndPointConfigurationDao object.

onInit

protected void onInit()

onInit

Specified by:
onInit in class AbstractDetector

dispose

public void dispose()

dispose

Specified by:
dispose in interface ServiceDetector
Specified by:
dispose in class AbstractDetector


Copyright © 2011. All Rights Reserved.