|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.capsd.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 | |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log messages. |
private static java.lang.String |
m_address
Contains dotted-decimal representation of the IP address where Capsd is running. |
private static java.lang.Object |
m_dbSyncLock
Database synchronization lock for synchronizing write access to the database between the SuspectEventProcessor and RescanProcessor thread pools |
private BroadcastEventProcessor |
m_receiver
Event receiver. |
private RunnableConsumerThreadPool |
m_rescanRunner
The pool of threads that are used to executed RescanProcessor instances queued by the rescan scheduler thread. |
private Scheduler |
m_scheduler
Rescan scheduler thread |
private static Capsd |
m_singleton
Singleton instance of the Capsd class |
private int |
m_status
Current status of this fiber |
private RunnableConsumerThreadPool |
m_suspectRunner
The pool of threads that are used to executed the SuspectEventProcessor instances queued by the event processor (BroadcastEventProcessor). |
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 | |
(package private) static java.lang.Object |
getDbSyncLock()
|
static Capsd |
getInstance()
|
static java.lang.String |
getLocalHostAddress()
Used to retrieve the local host name/address. |
java.lang.String |
getName()
Returns a name/id for this process |
int |
getStatus()
Returns the current status |
void |
init()
Start the Capsd threads. |
void |
pause()
This method is used to suspend a currently running Fiber |
void |
rescanInterfaceParent(java.lang.Integer nodeId)
This method is used to force an existing node to be capability rescaned. |
void |
resume()
This method is used to resume a suspeneded Fiber . |
void |
scanSuspectInterface(java.lang.String ifAddr)
This method is used by other managed beans to forward an IP Address for capability scanning. |
void |
start()
Start the Capsd threads. |
void |
stop()
Stop the Capsd threads. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private static final Capsd m_singleton
private int m_status
private static java.lang.Object m_dbSyncLock
private static java.lang.String m_address
Contains dotted-decimal representation of the IP address where Capsd is running. Used when capsd sends events out
private Scheduler m_scheduler
private BroadcastEventProcessor m_receiver
private RunnableConsumerThreadPool m_suspectRunner
private RunnableConsumerThreadPool m_rescanRunner
Constructor Detail |
public Capsd()
Method Detail |
public void stop()
stop
in interface Fiber
public void init()
public void start()
start
in interface Fiber
public void pause()
PausableFiber
Fiber.
When invoked the Fiber
will begin the transition to
a PAUSED
status after changing its internal state, if
applicable.
- Specified by:
pause
in interface PausableFiber
public void resume()
PausableFiber
Fiber
. If the
thread is already running then this method should have no effect on the
current Fiber
.
resume
in interface PausableFiber
public java.lang.String getName()
getName
in interface Fiber
Fiber
.public int getStatus()
getStatus
in interface Fiber
Fiber
.public static java.lang.String getLocalHostAddress()
public static Capsd getInstance()
static java.lang.Object getDbSyncLock()
public void scanSuspectInterface(java.lang.String ifAddr) throws java.net.UnknownHostException
ifAddr
- The address of the suspect interface.
java.net.UnknownHostException
- Thrown if the address cannot be converted to aa proper
internet address.public void rescanInterfaceParent(java.lang.Integer nodeId)
nodeId
- The node identifier from the database.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |