public final class DiscoveryLink extends Object implements ReadyRunnable
| Constructor and Description |
|---|
DiscoveryLink()
Constructs a new DiscoveryLink object .
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
discoveryUsingBridge()
discoveryUsingBridge
|
boolean |
discoveryUsingCdp()
discoveryUsingCdp
|
boolean |
discoveryUsingRoutes()
discoveryUsingRoutes
|
boolean |
equals(ReadyRunnable r)
equals
|
long |
getDiscoveryInterval()
getDiscoveryInterval
|
String |
getInfo()
getInfo
|
long |
getInitialSleepTime()
getInitialSleepTime
|
Linkd |
getLinkd() |
NodeToNodeLink[] |
getLinks()
Getter for the field
links. |
MacToNodeLink[] |
getMacLinks()
getMacLinks
|
String |
getPackageName()
Getter for the field
packageName. |
Scheduler |
getScheduler()
Return the Scheduler
|
long |
getSnmpPollInterval()
getSnmpPollInterval
|
boolean |
isEnableDownloadDiscovery()
isEnableDownloadDiscovery
|
boolean |
isForceIpRouteDiscoveryOnEtherNet()
isForceIpRouteDiscoveryOnEtherNet
|
boolean |
isReady()
isReady
|
boolean |
isSuspended()
isSuspended
|
protected void |
populateMacToAtInterface() |
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)
setDiscoveryInterval
|
void |
setDiscoveryUsingBridge(boolean discoveryUsingBridge)
Setter for the field
discoveryUsingBridge. |
void |
setDiscoveryUsingCdp(boolean discoveryUsingCdp)
Setter for the field
discoveryUsingCdp. |
void |
setDiscoveryUsingRoutes(boolean discoveryUsingRoutes)
Setter for the field
discoveryUsingRoutes. |
void |
setEnableDownloadDiscovery(boolean enableDownloaddiscovery)
Setter for the field
enableDownloadDiscovery. |
void |
setForceIpRouteDiscoveryOnEtherNet(boolean forceIpRouteDiscoveryOnEtherNet)
Setter for the field
forceIpRouteDiscoveryOnEtherNet. |
void |
setInitialSleepTime(long initial_sleep_time)
setInitialSleepTime
|
void |
setLinkd(Linkd linkd) |
void |
setPackageName(String packageName)
setPackageName
|
void |
setScheduler(Scheduler scheduler)
Set the Scheduler
|
void |
setSnmpPollInterval(long interval)
setSnmpPollInterval
|
void |
suspend()
suspend
|
void |
unschedule()
unschedule
|
void |
wakeUp()
wakeUp
|
public DiscoveryLink()
run method is invoked.public void setLinkd(Linkd linkd)
linkd - the linkd to setpublic Linkd getLinkd()
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.
protected void populateMacToAtInterface()
public void setScheduler(Scheduler scheduler)
scheduler - a Scheduler object.public void schedule()
schedule in interface ReadyRunnablepublic long getInitialSleepTime()
getInitialSleepTime
public void setInitialSleepTime(long initial_sleep_time)
setInitialSleepTime
initial_sleep_time - The initial_sleep_timeto set.public boolean isReady()
isReady
isReady in interface ReadyRunnablepublic long getDiscoveryInterval()
getDiscoveryInterval
public void setSnmpPollInterval(long interval)
setSnmpPollInterval
interval - The discovery_link_interval to set.public long getSnmpPollInterval()
getSnmpPollInterval
public void setDiscoveryInterval(long interval)
setDiscoveryInterval
interval - The discovery_link_interval to set.public NodeToNodeLink[] getLinks()
Getter for the field links.
NodeToNodeLink objects.public MacToNodeLink[] getMacLinks()
getMacLinks
MacToNodeLink objects.public boolean isSuspended()
isSuspended
isSuspended in interface ReadyRunnablepublic void suspend()
suspend
suspend in interface ReadyRunnablepublic void wakeUp()
wakeUp
wakeUp in interface ReadyRunnablepublic void unschedule()
unschedule
unschedule in interface ReadyRunnablepublic boolean equals(ReadyRunnable r)
equals
equals in interface ReadyRunnabler - a ReadyRunnable object.public String getInfo()
getInfo
getInfo in interface ReadyRunnableString object.public boolean discoveryUsingBridge()
discoveryUsingBridge
public void setDiscoveryUsingBridge(boolean discoveryUsingBridge)
Setter for the field discoveryUsingBridge.
discoveryUsingBridge - a boolean.public boolean discoveryUsingCdp()
discoveryUsingCdp
public void setDiscoveryUsingCdp(boolean discoveryUsingCdp)
Setter for the field discoveryUsingCdp.
discoveryUsingCdp - a boolean.public boolean discoveryUsingRoutes()
discoveryUsingRoutes
public void setDiscoveryUsingRoutes(boolean discoveryUsingRoutes)
Setter for the field discoveryUsingRoutes.
discoveryUsingRoutes - a boolean.public String getPackageName()
Getter for the field packageName.
getPackageName in interface ReadyRunnableString object.public void setPackageName(String packageName)
setPackageName
setPackageName in interface ReadyRunnablepackageName - a String object.public boolean isEnableDownloadDiscovery()
isEnableDownloadDiscovery
public void setEnableDownloadDiscovery(boolean enableDownloaddiscovery)
Setter for the field enableDownloadDiscovery.
enableDownloaddiscovery - a boolean.public boolean isForceIpRouteDiscoveryOnEtherNet()
isForceIpRouteDiscoveryOnEtherNet
public void setForceIpRouteDiscoveryOnEtherNet(boolean forceIpRouteDiscoveryOnEtherNet)
Setter for the field forceIpRouteDiscoveryOnEtherNet.
forceIpRouteDiscoveryOnEtherNet - a boolean.Copyright © 2015. All Rights Reserved.