Class BusinessServiceManagerImpl
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.internal.BusinessServiceManagerImpl
-
- All Implemented Interfaces:
BusinessServiceManager
,NodeManager
public class BusinessServiceManagerImpl extends Object implements BusinessServiceManager
-
-
Constructor Summary
Constructors Constructor Description BusinessServiceManagerImpl()
-
Method Summary
-
-
-
Method Detail
-
getAllBusinessServices
public List<BusinessService> getAllBusinessServices()
- Specified by:
getAllBusinessServices
in interfaceBusinessServiceManager
-
search
public List<BusinessService> search(BusinessServiceSearchCriteria businessServiceSearchCriteria)
- Specified by:
search
in interfaceBusinessServiceManager
-
findMatching
public List<BusinessService> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceBusinessServiceManager
-
countMatching
public int countMatching(Criteria criteria)
- Specified by:
countMatching
in interfaceBusinessServiceManager
-
createBusinessService
public BusinessService createBusinessService()
- Specified by:
createBusinessService
in interfaceBusinessServiceManager
-
getEdgeById
public Edge getEdgeById(Long edgeId)
- Specified by:
getEdgeById
in interfaceBusinessServiceManager
-
deleteEdge
public boolean deleteEdge(BusinessService source, Edge edge)
- Specified by:
deleteEdge
in interfaceBusinessServiceManager
-
saveBusinessService
public void saveBusinessService(BusinessService service)
- Specified by:
saveBusinessService
in interfaceBusinessServiceManager
-
getParentServices
public Set<BusinessService> getParentServices(Long id)
- Specified by:
getParentServices
in interfaceBusinessServiceManager
-
getBusinessServiceById
public BusinessService getBusinessServiceById(Long id)
- Specified by:
getBusinessServiceById
in interfaceBusinessServiceManager
-
deleteBusinessService
public void deleteBusinessService(BusinessService businessService)
- Specified by:
deleteBusinessService
in interfaceBusinessServiceManager
-
setReductionKeyEdges
public void setReductionKeyEdges(BusinessService businessService, Set<ReductionKeyEdge> reductionKeyEdges)
- Specified by:
setReductionKeyEdges
in interfaceBusinessServiceManager
-
addReductionKeyEdge
public boolean addReductionKeyEdge(BusinessService businessService, String reductionKey, MapFunction mapFunction, int weight)
- Specified by:
addReductionKeyEdge
in interfaceBusinessServiceManager
-
addReductionKeyEdge
public boolean addReductionKeyEdge(BusinessService businessService, String reductionKey, MapFunction mapFunction, int weight, String friendlyName)
- Specified by:
addReductionKeyEdge
in interfaceBusinessServiceManager
-
setIpServiceEdges
public void setIpServiceEdges(BusinessService businessService, Set<IpServiceEdge> ipServiceEdges)
- Specified by:
setIpServiceEdges
in interfaceBusinessServiceManager
-
addIpServiceEdge
public boolean addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight)
- Specified by:
addIpServiceEdge
in interfaceBusinessServiceManager
-
addIpServiceEdge
public boolean addIpServiceEdge(BusinessService businessService, IpService ipService, MapFunction mapFunction, int weight, String friendlyName)
- Specified by:
addIpServiceEdge
in interfaceBusinessServiceManager
-
setApplicationEdges
public void setApplicationEdges(BusinessService businessService, Set<ApplicationEdge> applicationEdges)
- Specified by:
setApplicationEdges
in interfaceBusinessServiceManager
-
addApplicationEdge
public boolean addApplicationEdge(BusinessService businessService, Application application, MapFunction mapFunction, int weight)
- Specified by:
addApplicationEdge
in interfaceBusinessServiceManager
-
setChildEdges
public void setChildEdges(BusinessService parentService, Set<ChildEdge> childEdges)
- Specified by:
setChildEdges
in interfaceBusinessServiceManager
-
addChildEdge
public boolean addChildEdge(BusinessService parentService, BusinessService childService, MapFunction mapFunction, int weight)
- Specified by:
addChildEdge
in interfaceBusinessServiceManager
-
removeEdge
public void removeEdge(BusinessService businessService, Edge edge)
- Specified by:
removeEdge
in interfaceBusinessServiceManager
-
getFeasibleChildServices
public Set<BusinessService> getFeasibleChildServices(BusinessService service)
- Specified by:
getFeasibleChildServices
in interfaceBusinessServiceManager
-
getOperationalStatus
public Status getOperationalStatus(BusinessService service)
- Specified by:
getOperationalStatus
in interfaceBusinessServiceManager
-
getOperationalStatus
public Status getOperationalStatus(IpService ipService)
- Specified by:
getOperationalStatus
in interfaceBusinessServiceManager
-
getOperationalStatus
public Status getOperationalStatus(String reductionKey)
- Specified by:
getOperationalStatus
in interfaceBusinessServiceManager
-
getOperationalStatus
public Status getOperationalStatus(Edge edge)
- Specified by:
getOperationalStatus
in interfaceBusinessServiceManager
-
getAllIpServices
public List<IpService> getAllIpServices()
- Specified by:
getAllIpServices
in interfaceBusinessServiceManager
-
getAllApplications
public List<Application> getAllApplications()
- Specified by:
getAllApplications
in interfaceBusinessServiceManager
-
getIpServiceById
public IpService getIpServiceById(Integer id)
- Specified by:
getIpServiceById
in interfaceBusinessServiceManager
-
getApplicationById
public Application getApplicationById(Integer id)
- Specified by:
getApplicationById
in interfaceBusinessServiceManager
-
triggerDaemonReload
public void triggerDaemonReload()
Description copied from interface:BusinessServiceManager
Triggers a reload of the Business Service Daemon.- Specified by:
triggerDaemonReload
in interfaceBusinessServiceManager
-
getNodeById
public Node getNodeById(Integer nodeId)
- Specified by:
getNodeById
in interfaceNodeManager
-
getGraph
public BusinessServiceGraph getGraph(List<BusinessService> businessServices)
- Specified by:
getGraph
in interfaceBusinessServiceManager
-
getGraph
public BusinessServiceGraph getGraph()
Description copied from interface:BusinessServiceManager
This returns the actual graph of the underlyingBusinessServiceStateMachine
. Please DO NOT MODIFY any object in that graph.- Specified by:
getGraph
in interfaceBusinessServiceManager
- Returns:
- the actual graph of the underlying
BusinessServiceStateMachine
. DO NOT MODIFY!
-
getStateMachine
public BusinessServiceStateMachine getStateMachine()
- Specified by:
getStateMachine
in interfaceBusinessServiceManager
-
setMapFunction
public void setMapFunction(Edge edge, MapFunction mapFunction)
- Specified by:
setMapFunction
in interfaceBusinessServiceManager
-
setReduceFunction
public void setReduceFunction(BusinessService businessService, ReductionFunction reductionFunction)
- Specified by:
setReduceFunction
in interfaceBusinessServiceManager
-
getDao
protected BusinessServiceDao getDao()
-
-