|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.threshd.Threshd
Field Summary | |
private static java.lang.String |
LOG4J_CATEGORY
Log4j category |
private EventProxy |
m_proxy
Reference to the JMS event proxy for sending events. |
private BroadcastEventProcessor |
m_receiver
Reference to the event processor |
private Scheduler |
m_scheduler
Reference to the threshd scheduler |
private boolean |
m_schedulingCompleted
Indicates if all the existing interfaces have been scheduled |
private static java.util.Map |
m_serviceIds
Holds map of service names to service identifiers |
private static Threshd |
m_singleton
Singleton instance of the Threshd class |
private int |
m_status
Status of the Threshd instance. |
private static java.util.Map |
m_svcThresholders
Map of all available ServiceThresholder objects indexed by service name |
private java.util.List |
m_thresholdableServices
List of all ThresholdableService objects. |
private static java.lang.String |
SQL_RETRIEVE_INTERFACES
SQL used to retrieve all the interfaces which support a particular service. |
private static java.lang.String |
SQL_RETRIEVE_SERVICE_IDS
SQL used to retrieve all the service id's and names from the database. |
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 | |
private |
Threshd()
Constructor. |
Method Summary | |
private boolean |
alreadyScheduled(java.lang.String ipAddress,
java.lang.String pkgName)
Returns true if specified address/pkg pair is already represented in the thresholdable services list. |
EventProxy |
getEventProxy()
Returns reference to the event proxy |
static Threshd |
getInstance()
Returns singleton instance of the thresholding daemon. |
java.lang.String |
getName()
Returns the name of the thresholding daemon. |
Scheduler |
getScheduler()
Returns reference to the scheduler |
ServiceThresholder |
getServiceThresholder(java.lang.String svcName)
Returns the loaded ServiceThresholder for the specified service name. |
int |
getStatus()
Returns current status of the thresholding daemon. |
void |
init()
|
boolean |
isSchedulingCompleted()
|
void |
pause()
Responsible for pausing the thresholding daemon. |
void |
refreshServicePackages()
|
void |
resume()
Responsible for resuming the thresholding daemon. |
private void |
scheduleExistingInterfaces()
Schedule existing interfaces for thresholding. |
(package private) void |
scheduleInterface(int nodeId,
java.lang.String ipAddress,
java.lang.String svcName,
boolean existing)
This method is responsible for scheduling the specified node/address/svcname tuple for thresholding. |
void |
setSchedulingCompleted(boolean schedulingCompleted)
|
void |
start()
Responsible for starting the thresholding daemon. |
void |
stop()
Responsible for stopping the thresholding daemon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private static final java.lang.String SQL_RETRIEVE_INTERFACES
private static final java.lang.String SQL_RETRIEVE_SERVICE_IDS
private static final Threshd m_singleton
private static final java.util.Map m_serviceIds
private java.util.List m_thresholdableServices
private Scheduler m_scheduler
private boolean m_schedulingCompleted
private EventProxy m_proxy
private int m_status
private BroadcastEventProcessor m_receiver
private static java.util.Map m_svcThresholders
Constructor Detail |
private Threshd()
Method Detail |
public void init()
public void start()
start
in interface Fiber
public void stop()
stop
in interface Fiber
public void pause()
pause
in interface PausableFiber
public void resume()
resume
in interface PausableFiber
public int getStatus()
getStatus
in interface Fiber
Fiber
.public java.lang.String getName()
getName
in interface Fiber
Fiber
.public static Threshd getInstance()
public Scheduler getScheduler()
public EventProxy getEventProxy()
public ServiceThresholder getServiceThresholder(java.lang.String svcName)
svcName
- Service name to lookup.
private void scheduleExistingInterfaces() throws java.sql.SQLException
java.sql.SQLException
- if database errors encountered.void scheduleInterface(int nodeId, java.lang.String ipAddress, java.lang.String svcName, boolean existing)
nodeId
- Node idipAddress
- IP addresssvcName
- Service nameexisting
- True if called by scheduleExistingInterfaces(), false
otheriwseprivate boolean alreadyScheduled(java.lang.String ipAddress, java.lang.String pkgName)
public boolean isSchedulingCompleted()
public void setSchedulingCompleted(boolean schedulingCompleted)
schedulingCompleted
- The schedulingCompleted to set.public void refreshServicePackages()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |