|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.linkd.DiscoveryLink
public final class DiscoveryLink
This class is designed to discover link among nodes using the collected and the necessary SNMP information. When the class is initially constructed no information is used.
| Constructor Summary | |
|---|---|
DiscoveryLink()
Constructs a new DiscoveryLink object . |
|
| Method Summary | |
|---|---|
boolean |
discoveryUsingBridge()
|
boolean |
discoveryUsingCdp()
|
boolean |
discoveryUsingRoutes()
|
boolean |
equals(ReadyRunnable r)
|
long |
getDiscoveryInterval()
|
String |
getInfo()
|
long |
getInitialSleepTime()
|
NodeToNodeLink[] |
getLinks()
|
MacToNodeLink[] |
getMacLinks()
|
String |
getPackageName()
|
Scheduler |
getScheduler()
Return the Scheduler |
long |
getSnmpPollInterval()
|
boolean |
isEnableDownloadDiscovery()
|
boolean |
isForceIpRouteDiscoveryOnEtherNet()
|
boolean |
isReady()
Returns true if the runnable is ready to start. |
boolean |
isSuspended()
|
void |
run()
Performs link discovery for the Nodes and save info in DatalinkInterface table on DataBase |
void |
schedule()
This Method is called when DiscoveryLink is initialized |
void |
setDiscoveryInterval(long interval)
|
void |
setDiscoveryUsingBridge(boolean discoveryUsingBridge)
|
void |
setDiscoveryUsingCdp(boolean discoveryUsingCdp)
|
void |
setDiscoveryUsingRoutes(boolean discoveryUsingRoutes)
|
void |
setEnableDownloadDiscovery(boolean enableDownloaddiscovery)
|
void |
setForceIpRouteDiscoveryOnEtherNet(boolean forceIpRouteDiscoveryOnEtherNet)
|
void |
setInitialSleepTime(long initial_sleep_time)
|
void |
setPackageName(String packageName)
|
void |
setScheduler(Scheduler scheduler)
Set the Scheduler |
void |
setSnmpPollInterval(long interval)
|
void |
suspend()
|
void |
unschedule()
|
void |
wakeUp()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscoveryLink()
run method is invoked.
| Method Detail |
|---|
public void run()
Performs link discovery for the Nodes and save info in DatalinkInterface table on DataBase
No synchronization is performed, so if this is used in a separate thread context synchronization must be added.
run in interface Runnablepublic Scheduler getScheduler()
public void setScheduler(Scheduler scheduler)
scheduler - public void schedule()
schedule in interface ReadyRunnablepublic long getInitialSleepTime()
public void setInitialSleepTime(long initial_sleep_time)
initial_sleep_time - The initial_sleep_timeto set.public boolean isReady()
ReadyRunnable
isReady in interface ReadyRunnablepublic long getDiscoveryInterval()
public void setSnmpPollInterval(long interval)
interval - The discovery_link_interval to set.public long getSnmpPollInterval()
public void setDiscoveryInterval(long interval)
interval - The discovery_link_interval to set.public NodeToNodeLink[] getLinks()
public MacToNodeLink[] getMacLinks()
public boolean isSuspended()
isSuspended in interface ReadyRunnablepublic void suspend()
suspend in interface ReadyRunnablesuspendCollection - The suspendCollection to set.public void wakeUp()
wakeUp in interface ReadyRunnablesuspendCollection - The suspendCollection to set.public void unschedule()
unschedule in interface ReadyRunnablepublic boolean equals(ReadyRunnable r)
equals in interface ReadyRunnablepublic String getInfo()
getInfo in interface ReadyRunnablepublic boolean discoveryUsingBridge()
public void setDiscoveryUsingBridge(boolean discoveryUsingBridge)
public boolean discoveryUsingCdp()
public void setDiscoveryUsingCdp(boolean discoveryUsingCdp)
public boolean discoveryUsingRoutes()
public void setDiscoveryUsingRoutes(boolean discoveryUsingRoutes)
public String getPackageName()
getPackageName in interface ReadyRunnablepublic void setPackageName(String packageName)
setPackageName in interface ReadyRunnablepublic boolean isEnableDownloadDiscovery()
public void setEnableDownloadDiscovery(boolean enableDownloaddiscovery)
public boolean isForceIpRouteDiscoveryOnEtherNet()
public void setForceIpRouteDiscoveryOnEtherNet(boolean forceIpRouteDiscoveryOnEtherNet)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||