|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.daemon.AbstractServiceDaemon
org.opennms.netmgt.capsd.Capsd
public class Capsd
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'.
| Field Summary |
|---|
| Fields inherited from interface org.opennms.core.fiber.PausableFiber |
|---|
PAUSE_PENDING, PAUSED, RESUME_PENDING |
| Fields inherited from interface org.opennms.core.fiber.Fiber |
|---|
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED |
| Constructor Summary | |
|---|---|
Capsd()
Constructs the Capsd objec |
|
| Method Summary | |
|---|---|
static String |
getLocalHostAddress()
Used to retrieve the local host name/address. |
protected void |
onInit()
|
protected void |
onPause()
|
protected void |
onResume()
|
protected void |
onStart()
|
protected void |
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)
|
void |
setCapsdDbSyncer(CapsdDbSyncer capsdDbSyncer)
|
void |
setEventListener(StoppableEventListener eventListener)
|
void |
setRescanRunner(RunnableConsumerThreadPool rescanRunner)
|
void |
setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
|
void |
setSuspectEventProcessorFactory(SuspectEventProcessorFactory eventProcessorFactory)
|
void |
setSuspectRunner(RunnableConsumerThreadPool suspectRunner)
|
| Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Capsd()
| Method Detail |
|---|
protected void onStop()
onStop in class AbstractServiceDaemonprotected void onInit()
onInit in class AbstractServiceDaemonprotected void onStart()
onStart in class AbstractServiceDaemonprotected void onPause()
onPause in class AbstractServiceDaemonprotected void onResume()
onResume in class AbstractServiceDaemonpublic static String getLocalHostAddress()
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)
public void setSuspectEventProcessorFactory(SuspectEventProcessorFactory eventProcessorFactory)
public void setCapsdConfig(CapsdConfig capsdConfig)
public void setSuspectRunner(RunnableConsumerThreadPool suspectRunner)
public void setRescanRunner(RunnableConsumerThreadPool rescanRunner)
public void setEventListener(StoppableEventListener eventListener)
public void setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||