public class Capsd extends AbstractServiceDaemon
The Capability daemon - it is notified by the discovery process when a new node is discovered - it then polls for all the capabilities for this node and is responsible for loading the data collecte1d into the database.
Once a node is added to the database, its sends an indication back to the discovery which then flags this node as 'known'.
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Constructor and Description |
---|
Capsd()
Constructs the Capsd objec
|
Modifier and Type | Method and Description |
---|---|
static String |
getLocalHostAddress()
Used to retrieve the local host name/address.
|
protected void |
onInit()
onInit
|
protected void |
onPause()
onPause
|
protected void |
onResume()
onResume
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
void |
rescanInterfaceParent(Integer nodeId)
This method is used to force an existing node to be capability rescanned.
|
void |
scanSuspectInterface(String ifAddr)
This method is used by other managed beans to forward an IP Address for
capability scanning.
|
void |
setCapsdConfig(CapsdConfig capsdConfig)
setCapsdConfig
|
void |
setCapsdDbSyncer(CapsdDbSyncer capsdDbSyncer)
setCapsdDbSyncer
|
void |
setEventListener(StoppableEventListener eventListener)
setEventListener
|
void |
setRescanRunner(RunnableConsumerThreadPool rescanRunner)
setRescanRunner
|
void |
setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
setScheduler
|
void |
setSuspectEventProcessorFactory(SuspectEventProcessorFactory eventProcessorFactory)
setSuspectEventProcessorFactory
|
void |
setSuspectRunner(RunnableConsumerThreadPool suspectRunner)
setSuspectRunner
|
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
protected void onInit()
onInit
onInit
in class AbstractServiceDaemon
protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onPause()
onPause
onPause
in class AbstractServiceDaemon
protected void onResume()
onResume
onResume
in class AbstractServiceDaemon
public static String getLocalHostAddress()
String
object.public void scanSuspectInterface(String ifAddr) throws UnknownHostException
ifAddr
- The address of the suspect interface.UnknownHostException
- Thrown if the address cannot be converted to aa proper
internet address.public void rescanInterfaceParent(Integer nodeId)
nodeId
- The node identifier from the database.public void setCapsdDbSyncer(CapsdDbSyncer capsdDbSyncer)
setCapsdDbSyncer
capsdDbSyncer
- a CapsdDbSyncer
object.public void setSuspectEventProcessorFactory(SuspectEventProcessorFactory eventProcessorFactory)
setSuspectEventProcessorFactory
eventProcessorFactory
- a SuspectEventProcessorFactory
object.public void setCapsdConfig(CapsdConfig capsdConfig)
setCapsdConfig
capsdConfig
- a CapsdConfig
object.public void setSuspectRunner(RunnableConsumerThreadPool suspectRunner)
setSuspectRunner
suspectRunner
- a RunnableConsumerThreadPool
object.public void setRescanRunner(RunnableConsumerThreadPool rescanRunner)
setRescanRunner
rescanRunner
- a RunnableConsumerThreadPool
object.public void setEventListener(StoppableEventListener eventListener)
setEventListener
eventListener
- a StoppableEventListener
object.public void setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
setScheduler
scheduler
- a Scheduler
object.Copyright © 2015. All Rights Reserved.