public class BroadcastEventProcessor extends Object implements org.springframework.beans.factory.InitializingBean
BroadcastEventProcessor class.
Constructor and Description |
---|
BroadcastEventProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
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)
setLocalServer
|
void |
setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
setScheduler
|
void |
setSuspectEventProcessorFactory(SuspectEventProcessorFactory suspectEventProcessorFactory)
setSuspectEventProcessorFactory
|
void |
setSuspectQueue(ExecutorService suspectQ)
setSuspectQueue
|
public static boolean isPropagationEnabled()
public static boolean isXmlRpcEnabled()
public void handleAddInterface(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event to process.InsufficientInformationException
- if the event is missing essential informationFailedOperationException
- 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 informationFailedOperationException
- if an error occurs during processingpublic void handleChangeService(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event to process.FailedOperationException
- if any.InsufficientInformationException
- if any.public void handleDeleteInterface(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event indicating what interface to deleteInsufficientInformationException
- if the required information is not part of the eventFailedOperationException
- if any.public void handleDeleteNode(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event indicating what node to deleteInsufficientInformationException
- if the required information is not part of the eventFailedOperationException
- if any.public void handleDeleteService(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event indicating what service to deleteInsufficientInformationException
- if the required information is not part of the eventFailedOperationException
- if any.public void handleDupNodeDeleted(Event event) throws InsufficientInformationException
event
- a Event
object.InsufficientInformationException
- if any.public void handleForceRescan(Event event) throws InsufficientInformationException
event
- a Event
object.InsufficientInformationException
- if any.public void handleNewSuspect(Event event) throws InsufficientInformationException
event
- a Event
object.InsufficientInformationException
- if any.public void handleNodeAdded(Event event) throws InsufficientInformationException
event
- a Event
object.InsufficientInformationException
- if any.public void handleNodeDeleted(Event event) throws InsufficientInformationException
event
- a Event
object.InsufficientInformationException
- if any.public void handleUpdateServer(Event event) throws InsufficientInformationException, FailedOperationException
event
- a Event
object.InsufficientInformationException
- if any.FailedOperationException
- if any.public void handleUpdateService(Event event) throws InsufficientInformationException, FailedOperationException
event
- The event to process.InsufficientInformationException
- if there is missing information in the eventFailedOperationException
- if the operation fails for some reasonpublic void setSuspectEventProcessorFactory(SuspectEventProcessorFactory suspectEventProcessorFactory)
setSuspectEventProcessorFactory
suspectEventProcessorFactory
- a SuspectEventProcessorFactory
object.public void setScheduler(org.opennms.netmgt.capsd.Scheduler scheduler)
setScheduler
scheduler
- a Scheduler
object.public void setSuspectQueue(ExecutorService suspectQ)
setSuspectQueue
suspectQ
- a ExecutorService
object.public void setLocalServer(String localServer)
setLocalServer
localServer
- a String
object.Copyright © 2017. All rights reserved.