|
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.rtc.DataUpdater
The DataUpdater is created for each event by the event receiver. Depending on the event UEI, relevant information is read from the event and the DataManager informed so that data maintained by the RTC is kept up-to-date
Field Summary | |
private Event |
m_event
The event from which data is to be read |
Constructor Summary | |
DataUpdater(Event event)
Constructs the DataUpdater object |
Method Summary | |
private void |
handleAssetInfoChangedEvent(long nodeid)
If it is a assetInfoChanged method, update RTC |
private void |
handleInterfaceDown(long nodeid,
java.lang.String ip,
long eventTime)
If it is an interfaceDown, update downtime on the appropriate rtcnodes |
private void |
handleInterfaceReparented(java.lang.String ip,
Parms eventParms)
Record the interfaceReparented info in the datastore |
private void |
handleInterfaceUp(long nodeid,
java.lang.String ip,
long eventTime)
If it is an interfaceUp, update regained time on the appropriate rtcnodes |
private void |
handleNodeDown(long nodeid,
long eventTime)
If it is an nodeDown, update downtime on the appropriate rtcnodes |
private void |
handleNodeGainedService(long nodeid,
java.lang.String ip,
java.lang.String svcName)
If it is a nodeGainedService, create a new entry in the map |
private void |
handleNodeLostService(long nodeid,
java.lang.String ip,
java.lang.String svcName,
long eventTime)
If it is a nodeLostService, update downtime on the rtcnode |
private void |
handleNodeRegainedService(long nodeid,
java.lang.String ip,
java.lang.String svcName,
long eventTime)
If it is a nodeRegainedService, update downtime on the rtcnode |
private void |
handleNodeUp(long nodeid,
long eventTime)
If it is a nodeUp, update regained time on the appropriate rtcnodes |
private void |
handleRtcSubscribe(Parms eventParms)
Inform the data sender of the new listener |
private void |
handleRtcUnsubscribe(Parms eventParms)
Inform the data sender of the listener unsubscribing |
private void |
handleServiceDeleted(long nodeid,
java.lang.String ip,
java.lang.String svcName)
If it is a serviceDeleted, remove corresponding rtcnodes from the map |
private void |
processEvent()
Read the event UEI, nodeid, interface and service - depending on the UEI, read event parms, if necessary, and call appropriate methods on the data manager to update data |
void |
run()
Process the event depending on the UEI and update date |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Event m_event
Constructor Detail |
public DataUpdater(Event event)
Method Detail |
private void handleNodeGainedService(long nodeid, java.lang.String ip, java.lang.String svcName)
private void handleNodeLostService(long nodeid, java.lang.String ip, java.lang.String svcName, long eventTime)
private void handleInterfaceDown(long nodeid, java.lang.String ip, long eventTime)
private void handleNodeDown(long nodeid, long eventTime)
private void handleNodeUp(long nodeid, long eventTime)
private void handleInterfaceUp(long nodeid, java.lang.String ip, long eventTime)
private void handleNodeRegainedService(long nodeid, java.lang.String ip, java.lang.String svcName, long eventTime)
private void handleServiceDeleted(long nodeid, java.lang.String ip, java.lang.String svcName)
private void handleInterfaceReparented(java.lang.String ip, Parms eventParms)
private void handleRtcSubscribe(Parms eventParms)
private void handleRtcUnsubscribe(Parms eventParms)
private void handleAssetInfoChangedEvent(long nodeid) throws java.sql.SQLException, FilterParseException, RTCException
java.sql.SQLException
FilterParseException
RTCException
private void processEvent() throws java.sql.SQLException, FilterParseException, RTCException
java.sql.SQLException
FilterParseException
RTCException
public void run()
run
in interface java.lang.Runnable
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |