|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.BroadcastEventProcessor
public class BroadcastEventProcessor
| Constructor Summary | |
|---|---|
BroadcastEventProcessor()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
String |
getName()
Return an id for this event listener |
void |
handleAddInterface(Event event)
Process the event, add the specified interface into database. |
void |
handleAddNode(Event event)
Process an addNode event. |
void |
handleChangeService(Event event)
Process the event, add or remove a specified service from an interface. |
void |
handleDeleteInterface(Event event)
Handle a deleteInterface Event. |
void |
handleDeleteNode(Event event)
Handle a deleteNode Event. |
void |
handleDeleteService(Event event)
Handle a deleteService Event. |
void |
handleDupNodeDeleted(Event event)
This helper method removes a deleted node from Capsd's re-scan schedule. |
void |
handleForceRescan(Event event)
Helper method that takes IP address from the force rescan event, retrieves the nodeid (JDBC) and adds it to the rescan schedule for immediate processing when the next thread is available. |
void |
handleNewSuspect(Event event)
Helper method to add a node from the new suspect event Event to the suspect scan schedule. |
void |
handleNodeAdded(Event event)
Adds the node from the event to the rescan schedule. |
void |
handleNodeDeleted(Event event)
Handles the process of removing a deleted node from the rescan schedule. |
void |
handleUpdateServer(Event event)
Handles the process of adding/updating a node. |
void |
handleUpdateService(Event event)
Process the event, add or remove a specified interface/service pair into the database. |
static boolean |
isPropagationEnabled()
Determines if deletePropagation is enabled in the Outage Manager. |
static boolean |
isXmlRpcEnabled()
Convenience method checking Capsd's config for status of XmlRpc API |
void |
setLocalServer(String localServer)
|
void |
setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
|
void |
setSuspectEventProcessorFactory(SuspectEventProcessorFactory suspectEventProcessorFactory)
|
void |
setSuspectQueue(FifoQueue<Runnable> suspectQ)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadcastEventProcessor()
| Method Detail |
|---|
public static boolean isPropagationEnabled()
public static boolean isXmlRpcEnabled()
public String getName()
public void handleAddInterface(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event to process.
InsufficientInformationException - if the event is missing essential information
FailedOperationException - if the operation fails (because of database error for
example)
public void handleAddNode(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event to process.
InsufficientInformationException - if the event is missing information
FailedOperationException - if an error occurs during processing
public void handleChangeService(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event to process.
FailedOperationException
InsufficientInformationException
public void handleDeleteInterface(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event indicating what interface to delete
InsufficientInformationException - if the required information is not part of the event
FailedOperationException
public void handleDeleteNode(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event indicating what node to delete
InsufficientInformationException - if the required information is not part of the event
FailedOperationException
public void handleDeleteService(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event indicating what service to delete
InsufficientInformationException - if the required information is not part of the event
FailedOperationException
public void handleDupNodeDeleted(Event event)
throws InsufficientInformationException
event -
InsufficientInformationException
public void handleForceRescan(Event event)
throws InsufficientInformationException
event -
InsufficientInformationException
public void handleNewSuspect(Event event)
throws InsufficientInformationException
event -
InsufficientInformationException
public void handleNodeAdded(Event event)
throws InsufficientInformationException
event -
InsufficientInformationException
public void handleNodeDeleted(Event event)
throws InsufficientInformationException
event -
InsufficientInformationException
public void handleUpdateServer(Event event)
throws InsufficientInformationException,
FailedOperationException
event -
InsufficientInformationException
FailedOperationException
public void handleUpdateService(Event event)
throws InsufficientInformationException,
FailedOperationException
event - The event to process.
InsufficientInformationException - if there is missing information in the event
FailedOperationException - if the operation fails for some reasonpublic void setSuspectEventProcessorFactory(SuspectEventProcessorFactory suspectEventProcessorFactory)
public void setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
public void setSuspectQueue(FifoQueue<Runnable> suspectQ)
public void setLocalServer(String localServer)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||