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.
|
ExecutorService |
getRescanRunner() |
org.opennms.netmgt.capsd.Scheduler |
getScheduler() |
ExecutorService |
getSuspectRunner() |
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 |
setEventListener(StoppableEventListener eventListener)
setEventListener
|
void |
setRescanRunner(ExecutorService rescanRunner)
setRescanRunner
|
void |
setSuspectRunner(ExecutorService suspectRunner)
setSuspectRunner
|
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
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 setSuspectRunner(ExecutorService suspectRunner)
setSuspectRunner
suspectRunner
- a ExecutorService
object.public void setRescanRunner(ExecutorService rescanRunner)
setRescanRunner
rescanRunner
- a ExecutorService
object.public void setEventListener(StoppableEventListener eventListener)
setEventListener
eventListener
- a StoppableEventListener
object.public ExecutorService getSuspectRunner()
public ExecutorService getRescanRunner()
public org.opennms.netmgt.capsd.Scheduler getScheduler()
Copyright © 2015. All rights reserved.