public class Linkd extends AbstractServiceDaemon
Linkd class.
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Constructor and Description |
---|
Linkd()
Constructor for Linkd.
|
Modifier and Type | Method and Description |
---|---|
SnmpCollection |
createCollection(int nodeid,
InetAddress ipaddr) |
DiscoveryLink |
getDiscoveryLink(String pkgName) |
EventForwarder |
getEventForwarder() |
Collection<LinkableNode> |
getLinkableNodes()
getLinkableNodes
|
Collection<LinkableNode> |
getLinkableNodesOnPackage(String pkg)
getLinkableNodesOnPackage
|
LinkdConfig |
getLinkdConfig()
getLinkdConfig
|
QueryManager |
getQueryManager() |
Scheduler |
getScheduler()
getScheduler
|
SnmpCollection |
getSnmpCollection(int nodeid,
InetAddress ipaddr,
String sysoid,
String pkgName) |
List<SnmpCollection> |
getSnmpCollections(int nodeid,
InetAddress ipaddr,
String sysoid) |
boolean |
isInterfaceInPackage(InetAddress ipaddr,
String pkg)
isInterfaceInPackage
|
boolean |
isInterfaceInPackageRange(InetAddress ipaddr,
String pkg)
isInterfaceInPackageRange
|
protected void |
onInit()
onInit
|
protected void |
onPause()
onPause
|
protected void |
onResume()
onResume
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
boolean |
runSingleCollection(int nodeId) |
boolean |
scheduleNodeCollection(int nodeid) |
void |
setEventForwarder(EventForwarder eventForwarder) |
void |
setLinkdConfig(LinkdConfig config)
setLinkdConfig
|
void |
setQueryManager(QueryManager queryMgr)
setQueryManager
|
void |
setScheduler(Scheduler scheduler)
setScheduler
|
void |
updateNodeSnmpCollection(SnmpCollection snmpcoll)
Method that updates info in List nodes and also save info
into database.
|
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
protected void onInit()
onInit
onInit
in class AbstractServiceDaemon
public DiscoveryLink getDiscoveryLink(String pkgName)
public SnmpCollection getSnmpCollection(int nodeid, InetAddress ipaddr, String sysoid, String pkgName)
nodeid
- public List<SnmpCollection> getSnmpCollections(int nodeid, InetAddress ipaddr, String sysoid)
nodeid
- public SnmpCollection createCollection(int nodeid, InetAddress ipaddr)
protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
protected void onPause()
onPause
onPause
in class AbstractServiceDaemon
protected void onResume()
onResume
onResume
in class AbstractServiceDaemon
public Collection<LinkableNode> getLinkableNodes()
getLinkableNodes
Collection
object.public Collection<LinkableNode> getLinkableNodesOnPackage(String pkg)
getLinkableNodesOnPackage
pkg
- a String
object.Collection
object.public boolean isInterfaceInPackage(InetAddress ipaddr, String pkg)
isInterfaceInPackage
public boolean isInterfaceInPackageRange(InetAddress ipaddr, String pkg)
isInterfaceInPackageRange
public boolean scheduleNodeCollection(int nodeid)
public boolean runSingleCollection(int nodeId)
@Transactional public void updateNodeSnmpCollection(SnmpCollection snmpcoll)
snmpcoll
- public QueryManager getQueryManager()
public void setQueryManager(QueryManager queryMgr)
setQueryManager
queryMgr
- a QueryManager
object.public void setScheduler(Scheduler scheduler)
setScheduler
scheduler
- a Scheduler
object.public LinkdConfig getLinkdConfig()
getLinkdConfig
LinkdConfig
object.public void setLinkdConfig(LinkdConfig config)
setLinkdConfig
config
- a LinkdConfig
object.public EventForwarder getEventForwarder()
public void setEventForwarder(EventForwarder eventForwarder)
eventForwarder
- the eventForwarder to setCopyright © 2015. All Rights Reserved.