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 boolean
addApplicationEdge(BusinessService businessService, Application application, MapFunction mapFunction, int weight)
boolean
addChildEdge(BusinessService parent, BusinessService child, MapFunction mapFunction, int weight)
boolean
addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight)
boolean
addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight, java.lang.String friendlyName)
boolean
addReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight)
boolean
addReductionKeyEdge(BusinessService businessService, java.lang.String reductionKey, MapFunction mapFunction, int weight, java.lang.String friendlyName)
int
countMatching(Criteria criteria)
BusinessService
createBusinessService()
void
deleteBusinessService(BusinessService service)
boolean
deleteEdge(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()
Application
getApplicationById(java.lang.Integer id)
BusinessService
getBusinessServiceById(java.lang.Long id)
Edge
getEdgeById(java.lang.Long edgeId)
java.util.Set<BusinessService>
getFeasibleChildServices(BusinessService service)
BusinessServiceGraph
getGraph()
This returns the actual graph of the underlyingBusinessServiceStateMachine
.BusinessServiceGraph
getGraph(java.util.List<BusinessService> businessServices)
IpService
getIpServiceById(java.lang.Integer id)
Status
getOperationalStatus(java.lang.String reductionKey)
Status
getOperationalStatus(BusinessService service)
Status
getOperationalStatus(Edge edge)
Status
getOperationalStatus(IpService ipService)
java.util.Set<BusinessService>
getParentServices(java.lang.Long id)
BusinessServiceStateMachine
getStateMachine()
void
removeEdge(BusinessService businessService, Edge edge)
void
saveBusinessService(BusinessService newObject)
java.util.List<BusinessService>
search(BusinessServiceSearchCriteria businessServiceSearchCriteria)
void
setApplicationEdges(BusinessService businessService, java.util.Set<ApplicationEdge> applicationEdges)
void
setChildEdges(BusinessService parentService, java.util.Set<ChildEdge> childEdges)
void
setIpServiceEdges(BusinessService businessService, java.util.Set<IpServiceEdge> ipServiceEdges)
void
setMapFunction(Edge edge, MapFunction mapFunction)
void
setReduceFunction(BusinessService businessService, ReductionFunction reductionFunction)
void
setReductionKeyEdges(BusinessService businessService, java.util.Set<ReductionKeyEdge> reductionKeyEdges)
void
triggerDaemonReload()
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)
-
-