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 |
discoveryUsingIsis()
discoveryUsingIsIs
|
boolean |
discoveryUsingLldp()
discoveryUsingLldp
|
boolean |
discoveryUsingOspf()
discoveryUsingLldp
|
boolean |
discoveryUsingRoutes()
discoveryUsingRoutes
|
boolean |
discoveryUsingWifi()
discoveryUsingWifi
|
boolean |
equals(Object r) |
long |
getDiscoveryDelay()
getDiscoveryInterval
|
String |
getInfo()
getInfo
|
long |
getInitialSleepTime()
getInitialSleepTime
|
long |
getInterval()
getSnmpPollInterval
|
Linkd |
getLinkd() |
NodeToNodeLink[] |
getLinks()
Getter for the field
links . |
String |
getPackageName()
Getter for the field
packageName . |
Scheduler |
getScheduler()
Return the Scheduler
|
protected InetAddress |
getSubnetAddress(OspfNbrInterface ospfinterface) |
boolean |
isReady()
isReady
|
boolean |
isSuspended()
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)
setDiscoveryInterval
|
void |
setDiscoveryUsingBridge(boolean discoveryUsingBridge)
Setter for the field
discoveryUsingBridge . |
void |
setDiscoveryUsingCdp(boolean discoveryUsingCdp)
Setter for the field
discoveryUsingCdp . |
void |
setDiscoveryUsingIsIs(boolean discoveryUsingIsIs)
Setter for the field
discoveryUsingIsIs . |
void |
setDiscoveryUsingLldp(boolean discoveryUsingLldp)
Setter for the field
discoveryUsingLldp . |
void |
setDiscoveryUsingOspf(boolean discoveryUsingOspf)
Setter for the field
discoveryUsingOspf . |
void |
setDiscoveryUsingRoutes(boolean discoveryUsingRoutes)
Setter for the field
discoveryUsingRoutes . |
void |
setDiscoveryUsingWifi(boolean discoveryUsingWifi)
Setter for the field
discoveryUsingWifi . |
void |
setInitialSleepTime(long initial_sleep_time)
setInitialSleepTime
|
void |
setInterval(long interval)
setSnmpPollInterval
|
void |
setLinkd(Linkd linkd) |
void |
setPackageName(String packageName)
setPackageName
|
void |
setScheduler(Scheduler scheduler)
Set the Scheduler
|
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 InetAddress getSubnetAddress(OspfNbrInterface ospfinterface)
public void setScheduler(Scheduler scheduler)
scheduler
- a Scheduler
object.public void schedule()
schedule
in interface ReadyRunnable
public 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 ReadyRunnable
public long getDiscoveryDelay()
getDiscoveryInterval
public void setInterval(long interval)
setSnmpPollInterval
interval
- The discovery_link_interval to set.public long getInterval()
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 boolean isSuspended()
isSuspended
isSuspended
in interface ReadyRunnable
public void suspend()
suspend
suspend
in interface ReadyRunnable
public void wakeUp()
wakeUp
wakeUp
in interface ReadyRunnable
public void unschedule()
unschedule
unschedule
in interface ReadyRunnable
public String getInfo()
getInfo
getInfo
in interface ReadyRunnable
String
object.public boolean discoveryUsingBridge()
discoveryUsingBridge
public void setDiscoveryUsingBridge(boolean discoveryUsingBridge)
Setter for the field discoveryUsingBridge
.
discoveryUsingBridge
- a boolean.public boolean discoveryUsingOspf()
discoveryUsingLldp
public void setDiscoveryUsingOspf(boolean discoveryUsingOspf)
Setter for the field discoveryUsingOspf
.
discoveryUsingOspf
- a boolean.public boolean discoveryUsingIsis()
discoveryUsingIsIs
public void setDiscoveryUsingIsIs(boolean discoveryUsingIsIs)
Setter for the field discoveryUsingIsIs
.
discoveryUsingIsIs
- a boolean.public boolean discoveryUsingLldp()
discoveryUsingLldp
public void setDiscoveryUsingLldp(boolean discoveryUsingLldp)
Setter for the field discoveryUsingLldp
.
discoveryUsingLldp
- a boolean.public boolean discoveryUsingCdp()
discoveryUsingCdp
public void setDiscoveryUsingCdp(boolean discoveryUsingCdp)
Setter for the field discoveryUsingCdp
.
discoveryUsingCdp
- a boolean.public boolean discoveryUsingWifi()
discoveryUsingWifi
public void setDiscoveryUsingWifi(boolean discoveryUsingWifi)
Setter for the field discoveryUsingWifi
.
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 ReadyRunnable
String
object.public void setPackageName(String packageName)
setPackageName
setPackageName
in interface ReadyRunnable
packageName
- a String
object.Copyright © 2015. All rights reserved.