|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.capsd.RescanProcessor
public final class RescanProcessor
This class is designed to rescan all the managed interfaces for a specified node, update the database based on the information collected, and generate events necessary to notify the other OpenNMS services. The constructor takes an integer which is the node identifier of the node to be rescanned. .
| Constructor Summary | |
|---|---|
RescanProcessor(int nodeId,
boolean forceRescan,
CapsdDbSyncer capsdDbSyncer,
PluginManager pluginManager)
Constructor for RescanProcessor. |
|
| Method Summary | |
|---|---|
static boolean |
isRescanQueuedForNode(Integer nodeId)
Is a rescan already enqueued for a given node ID? |
void |
run()
This is where all the work of the class is done. |
protected static boolean |
scannableInterface(DbIpInterfaceEntry[] dbInterfaces,
InetAddress ifaddr)
scannableInterface |
static void |
setQueuedRescansTracker(Set<Integer> queuedRescanTracker)
Responsible for setting the Set used to track rescans that are already enqueued for processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RescanProcessor(int nodeId,
boolean forceRescan,
CapsdDbSyncer capsdDbSyncer,
PluginManager pluginManager)
Constructor for RescanProcessor.
nodeId - a int.forceRescan - a boolean.capsdDbSyncer - a CapsdDbSyncer object.pluginManager - a PluginManager object.| Method Detail |
|---|
public void run()
run in interface Runnable
protected static boolean scannableInterface(DbIpInterfaceEntry[] dbInterfaces,
InetAddress ifaddr)
scannableInterface
dbInterfaces - an array of DbIpInterfaceEntry objects.ifaddr - a InetAddress object.
public static void setQueuedRescansTracker(Set<Integer> queuedRescanTracker)
queuedRescanTracker - The synchronized Set to usepublic static boolean isRescanQueuedForNode(Integer nodeId)
nodeId - a Integer object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||