public interface BusinessServiceStateMachine
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(BusinessServiceStateChangeHandler handler,
Map<String,String> attributes)
Registers a state change handler.
|
List<GraphVertex> |
calculateImpact(Application application) |
List<GraphVertex> |
calculateImpact(BusinessService businessService) |
List<GraphVertex> |
calculateImpact(IpService ipService) |
List<GraphVertex> |
calculateImpact(String reductionKey) |
Set<GraphEdge> |
calculateImpacting(BusinessService businessService) |
List<GraphVertex> |
calculateRootCause(BusinessService businessService) |
BusinessServiceStateMachine |
clone(boolean preserveState) |
ThresholdResultExplanation |
explain(BusinessService businessService,
Threshold threshold) |
BusinessServiceGraph |
getGraph()
This returns the actual graph of the
BusinessServiceStateMachine. |
Status |
getOperationalStatus(BusinessService businessService)
Retrieves the current operational status of a Business Service.
|
Status |
getOperationalStatus(Edge edge)
Retrieves the current operational status of the element associated with a particular Edge.
|
Status |
getOperationalStatus(IpService ipService)
Retrieves the current operational status of a particular IP service.
|
Status |
getOperationalStatus(String reductionKey)
Retrieves the current operational status of a particular reduction key.
|
void |
handleAllAlarms(List<AlarmWrapper> alarms)
Updates the states of the Business Services using the given list of alarms.
|
void |
handleNewOrUpdatedAlarm(AlarmWrapper alarm)
Updates the states of the Business Services.
|
boolean |
removeHandler(BusinessServiceStateChangeHandler handler,
Map<String,String> attributes)
Unregisters a state change handler.
|
void |
renderGraphToPng(File target) |
void |
setBusinessServices(List<BusinessService> businessServices)
Sets the list of Business Services that need to managed by the state machine.
|
void setBusinessServices(List<BusinessService> businessServices)
businessServices - list of services to manageStatus getOperationalStatus(BusinessService businessService)
businessService - Business Service to queryStatus getOperationalStatus(IpService ipService)
ipService - IP Service to queryStatus getOperationalStatus(String reductionKey)
reductionKey - reduction key to query forStatus getOperationalStatus(Edge edge)
getOperationalStatus(String),
getOperationalStatus(IpService) or getOperationalStatus(BusinessService) depending
on the type of the edge.
This method DOES NOT return the mapped status of the edge.edge - edge to query forvoid handleNewOrUpdatedAlarm(AlarmWrapper alarm)
void handleAllAlarms(List<AlarmWrapper> alarms)
void addHandler(BusinessServiceStateChangeHandler handler, Map<String,String> attributes)
handler - handler to registerattributes - map of service attributes, required for compatibility with the ONMS-OSGi bridge.boolean removeHandler(BusinessServiceStateChangeHandler handler, Map<String,String> attributes)
handler - handler to unregisterattributes - map of service attributes, required for compatibility with the ONMS-OSGi bridge.void renderGraphToPng(File target)
BusinessServiceGraph getGraph()
BusinessServiceStateMachine.
Please DO NOT MODIFY any object in that graph.BusinessServiceStateMachine. DO NOT MODIFY!BusinessServiceStateMachine clone(boolean preserveState)
List<GraphVertex> calculateRootCause(BusinessService businessService)
Set<GraphEdge> calculateImpacting(BusinessService businessService)
List<GraphVertex> calculateImpact(BusinessService businessService)
List<GraphVertex> calculateImpact(IpService ipService)
List<GraphVertex> calculateImpact(String reductionKey)
List<GraphVertex> calculateImpact(Application application)
ThresholdResultExplanation explain(BusinessService businessService, Threshold threshold)
Copyright © 2022. All rights reserved.