Package org.opennms.netmgt.bsm.service
Interface BusinessServiceManager
-
- All Superinterfaces:
NodeManager
- All Known Implementing Classes:
BusinessServiceManagerImpl
public interface BusinessServiceManager extends NodeManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddApplicationEdge(BusinessService businessService, Application application, MapFunction mapFunction, int weight)booleanaddChildEdge(BusinessService parent, BusinessService child, MapFunction mapFunction, int weight)booleanaddIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight)booleanaddIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight, java.lang.String friendlyName)booleanaddReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight)booleanaddReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight, java.lang.String friendlyName)intcountMatching(Criteria criteria)BusinessServicecreateBusinessService()voiddeleteBusinessService(BusinessService service)booleandeleteEdge(BusinessService service, Edge edge)java.util.List<BusinessService>findMatching(Criteria criteria)java.util.List<Application>getAllApplications()java.util.List<BusinessService>getAllBusinessServices()java.util.List<IpService>getAllIpServices()ApplicationgetApplicationById(java.lang.Integer id)BusinessServicegetBusinessServiceById(java.lang.Long id)EdgegetEdgeById(java.lang.Long edgeId)java.util.Set<BusinessService>getFeasibleChildServices(BusinessService service)BusinessServiceGraphgetGraph()This returns the actual graph of the underlyingBusinessServiceStateMachine.BusinessServiceGraphgetGraph(java.util.List<BusinessService> businessServices)IpServicegetIpServiceById(java.lang.Integer id)StatusgetOperationalStatus(java.lang.String reductionKey)StatusgetOperationalStatus(BusinessService service)StatusgetOperationalStatus(Edge edge)StatusgetOperationalStatus(IpService ipService)java.util.Set<BusinessService>getParentServices(java.lang.Long id)BusinessServiceStateMachinegetStateMachine()voidremoveEdge(BusinessService businessService, Edge edge)voidsaveBusinessService(BusinessService newObject)java.util.List<BusinessService>search(BusinessServiceSearchCriteria businessServiceSearchCriteria)voidsetApplicationEdges(BusinessService businessService, java.util.Set<ApplicationEdge> applicationEdges)voidsetChildEdges(BusinessService parentService, java.util.Set<ChildEdge> childEdges)voidsetIpServiceEdges(BusinessService businessService, java.util.Set<IpServiceEdge> ipServiceEdges)voidsetMapFunction(Edge edge, MapFunction mapFunction)voidsetReduceFunction(BusinessService businessService, ReductionFunction reductionFunction)voidsetReductionKeyEdges(BusinessService businessService, java.util.Set<ReductionKeyEdge> reductionKeyEdges)voidtriggerDaemonReload()Triggers a reload of the Business Service Daemon.-
Methods inherited from interface org.opennms.netmgt.bsm.service.NodeManager
getNodeById
-
-
-
-
Method Detail
-
getAllBusinessServices
java.util.List<BusinessService> getAllBusinessServices()
-
search
java.util.List<BusinessService> search(BusinessServiceSearchCriteria businessServiceSearchCriteria)
-
findMatching
java.util.List<BusinessService> findMatching(Criteria criteria)
-
countMatching
int countMatching(Criteria criteria)
-
createBusinessService
BusinessService createBusinessService()
-
getEdgeById
Edge getEdgeById(java.lang.Long edgeId)
-
deleteEdge
boolean deleteEdge(BusinessService service, Edge edge)
-
saveBusinessService
void saveBusinessService(BusinessService newObject)
-
deleteBusinessService
void deleteBusinessService(BusinessService service)
-
getBusinessServiceById
BusinessService getBusinessServiceById(java.lang.Long id)
-
getFeasibleChildServices
java.util.Set<BusinessService> getFeasibleChildServices(BusinessService service)
-
getOperationalStatus
Status getOperationalStatus(BusinessService service)
-
getOperationalStatus
Status getOperationalStatus(java.lang.String reductionKey)
-
getAllIpServices
java.util.List<IpService> getAllIpServices()
-
getAllApplications
java.util.List<Application> getAllApplications()
-
getIpServiceById
IpService getIpServiceById(java.lang.Integer id)
-
getApplicationById
Application getApplicationById(java.lang.Integer id)
-
triggerDaemonReload
void triggerDaemonReload()
Triggers a reload of the Business Service Daemon.
-
getParentServices
java.util.Set<BusinessService> getParentServices(java.lang.Long id)
-
setChildEdges
void setChildEdges(BusinessService parentService, java.util.Set<ChildEdge> childEdges)
-
addChildEdge
boolean addChildEdge(BusinessService parent, BusinessService child, MapFunction mapFunction, int weight)
-
setIpServiceEdges
void setIpServiceEdges(BusinessService businessService, java.util.Set<IpServiceEdge> ipServiceEdges)
-
addIpServiceEdge
boolean addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight)
-
addIpServiceEdge
boolean addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight, java.lang.String friendlyName)
-
setApplicationEdges
void setApplicationEdges(BusinessService businessService, java.util.Set<ApplicationEdge> applicationEdges)
-
addApplicationEdge
boolean addApplicationEdge(BusinessService businessService, Application application, MapFunction mapFunction, int weight)
-
addReductionKeyEdge
boolean addReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight)
-
addReductionKeyEdge
boolean addReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight, java.lang.String friendlyName)
-
setReductionKeyEdges
void setReductionKeyEdges(BusinessService businessService, java.util.Set<ReductionKeyEdge> reductionKeyEdges)
-
removeEdge
void removeEdge(BusinessService businessService, Edge edge)
-
getGraph
BusinessServiceGraph getGraph(java.util.List<BusinessService> businessServices)
-
getGraph
BusinessServiceGraph getGraph()
This returns the actual graph of the underlyingBusinessServiceStateMachine. Please DO NOT MODIFY any object in that graph.- Returns:
- the actual graph of the underlying
BusinessServiceStateMachine. DO NOT MODIFY!
-
getStateMachine
BusinessServiceStateMachine getStateMachine()
-
setMapFunction
void setMapFunction(Edge edge, MapFunction mapFunction)
-
setReduceFunction
void setReduceFunction(BusinessService businessService, ReductionFunction reductionFunction)
-
-