org.opennms.netmgt.linkd
Class Linkd

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.linkd.Linkd
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public class Linkd
extends AbstractServiceDaemon

Linkd class.

Version:
$Id: $
Author:
ranger

Field Summary
 
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Constructor Summary
Linkd()
          Constructor for Linkd.
 
Method Summary
 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.
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Linkd

public Linkd()

Constructor for Linkd.

Method Detail

onInit

protected void onInit()

onInit

Specified by:
onInit in class AbstractServiceDaemon

getDiscoveryLink

public DiscoveryLink getDiscoveryLink(String pkgName)


getSnmpCollection

public SnmpCollection getSnmpCollection(int nodeid,
                                        InetAddress ipaddr,
                                        String sysoid,
                                        String pkgName)

Parameters:
nodeid -

getSnmpCollections

public List<SnmpCollection> getSnmpCollections(int nodeid,
                                               InetAddress ipaddr,
                                               String sysoid)

Parameters:
nodeid -

createCollection

public SnmpCollection createCollection(int nodeid,
                                       InetAddress ipaddr)

onStart

protected void onStart()

onStart

Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()

onStop

Overrides:
onStop in class AbstractServiceDaemon

onPause

protected void onPause()

onPause

Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()

onResume

Overrides:
onResume in class AbstractServiceDaemon

getLinkableNodes

public Collection<LinkableNode> getLinkableNodes()

getLinkableNodes

Returns:
a Collection object.

getLinkableNodesOnPackage

public Collection<LinkableNode> getLinkableNodesOnPackage(String pkg)

getLinkableNodesOnPackage

Parameters:
pkg - a String object.
Returns:
a Collection object.

isInterfaceInPackage

public boolean isInterfaceInPackage(InetAddress ipaddr,
                                    String pkg)

isInterfaceInPackage

Parameters:
ipaddr - a String object.
pkg - a String object.
Returns:
a boolean.

isInterfaceInPackageRange

public boolean isInterfaceInPackageRange(InetAddress ipaddr,
                                         String pkg)

isInterfaceInPackageRange

Parameters:
ipaddr - a String object.
pkg - a String object.
Returns:
a boolean.

scheduleNodeCollection

public boolean scheduleNodeCollection(int nodeid)

runSingleCollection

public boolean runSingleCollection(int nodeId)

updateNodeSnmpCollection

@Transactional
public void updateNodeSnmpCollection(SnmpCollection snmpcoll)
Method that updates info in List nodes and also save info into database. This method is called by SnmpCollection after all stuff is done

Parameters:
snmpcoll -

getQueryManager

public QueryManager getQueryManager()

setQueryManager

public void setQueryManager(QueryManager queryMgr)

setQueryManager

Parameters:
queryMgr - a QueryManager object.

getScheduler

public Scheduler getScheduler()

getScheduler

Returns:
a Scheduler object.

setScheduler

public void setScheduler(Scheduler scheduler)

setScheduler

Parameters:
scheduler - a Scheduler object.

getLinkdConfig

public LinkdConfig getLinkdConfig()

getLinkdConfig

Returns:
a LinkdConfig object.

setLinkdConfig

public void setLinkdConfig(LinkdConfig config)

setLinkdConfig

Parameters:
config - a LinkdConfig object.

getEventForwarder

public EventForwarder getEventForwarder()
Returns:
the eventForwarder

setEventForwarder

public void setEventForwarder(EventForwarder eventForwarder)
Parameters:
eventForwarder - the eventForwarder to set


Copyright © 2011. All Rights Reserved.