public final class RescanProcessor extends Object implements Runnable
Constructor and Description |
---|
RescanProcessor(int nodeId,
boolean forceRescan,
CapsdDbSyncer capsdDbSyncer,
PluginManager pluginManager)
Constructor for RescanProcessor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public void run()
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 useCopyright © 2015. All rights reserved.