Class BusinessServiceImpl
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.internal.BusinessServiceImpl
-
- All Implemented Interfaces:
BusinessService
public class BusinessServiceImpl extends java.lang.Object implements BusinessService
-
-
Constructor Summary
Constructors Constructor Description BusinessServiceImpl(BusinessServiceManager manager, BusinessServiceEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addApplicationEdge(Application application, MapFunction mapFunction, int weight)
void
addChildEdge(BusinessService child, MapFunction mapFunction, int weight)
void
addIpServiceEdge(IpService ipService, MapFunction mapFunction, int weight, java.lang.String friendlyName)
void
addReductionKeyEdge(java.lang.String reductionKey, MapFunction mapFunction, int weight, java.lang.String friendlyName)
void
delete()
boolean
equals(java.lang.Object obj)
java.util.Set<ApplicationEdge>
getApplicationEdges()
java.util.Map<java.lang.String,java.lang.String>
getAttributes()
java.util.Set<ChildEdge>
getChildEdges()
java.util.Set<BusinessService>
getChildServices()
java.util.Set<Edge>
getEdges()
BusinessServiceEntity
getEntity()
java.lang.Long
getId()
java.util.Set<IpServiceEdge>
getIpServiceEdges()
java.lang.String
getName()
Status
getOperationalStatus()
java.util.Set<BusinessService>
getParentServices()
ReductionFunction
getReduceFunction()
java.util.Set<ReductionKeyEdge>
getReductionKeyEdges()
int
hashCode()
void
removeEdge(Edge edge)
void
save()
void
setApplicationEdges(java.util.Set<ApplicationEdge> applicationEdges)
void
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
void
setChildEdges(java.util.Set<ChildEdge> childEdges)
void
setIpServiceEdges(java.util.Set<IpServiceEdge> ipServiceEdges)
void
setName(java.lang.String name)
void
setReduceFunction(ReductionFunction reductionFunction)
void
setReductionKeyEdges(java.util.Set<ReductionKeyEdge> reductionKeyEdges)
java.lang.String
toString()
-
-
-
Constructor Detail
-
BusinessServiceImpl
public BusinessServiceImpl(BusinessServiceManager manager, BusinessServiceEntity entity)
-
-
Method Detail
-
getEntity
public BusinessServiceEntity getEntity()
-
getId
public java.lang.Long getId()
- Specified by:
getId
in interfaceBusinessService
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceBusinessService
-
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceBusinessService
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
- Specified by:
getAttributes
in interfaceBusinessService
-
setAttributes
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
- Specified by:
setAttributes
in interfaceBusinessService
-
getChildServices
public java.util.Set<BusinessService> getChildServices()
- Specified by:
getChildServices
in interfaceBusinessService
-
getParentServices
public java.util.Set<BusinessService> getParentServices()
- Specified by:
getParentServices
in interfaceBusinessService
-
save
public void save()
- Specified by:
save
in interfaceBusinessService
-
delete
public void delete()
- Specified by:
delete
in interfaceBusinessService
-
getOperationalStatus
public Status getOperationalStatus()
- Specified by:
getOperationalStatus
in interfaceBusinessService
-
getReduceFunction
public ReductionFunction getReduceFunction()
- Specified by:
getReduceFunction
in interfaceBusinessService
-
setReduceFunction
public void setReduceFunction(ReductionFunction reductionFunction)
- Specified by:
setReduceFunction
in interfaceBusinessService
-
getEdges
public java.util.Set<Edge> getEdges()
- Specified by:
getEdges
in interfaceBusinessService
-
getIpServiceEdges
public java.util.Set<IpServiceEdge> getIpServiceEdges()
- Specified by:
getIpServiceEdges
in interfaceBusinessService
-
setIpServiceEdges
public void setIpServiceEdges(java.util.Set<IpServiceEdge> ipServiceEdges)
- Specified by:
setIpServiceEdges
in interfaceBusinessService
-
addIpServiceEdge
public void addIpServiceEdge(IpService ipService, MapFunction mapFunction, int weight, java.lang.String friendlyName)
- Specified by:
addIpServiceEdge
in interfaceBusinessService
-
getApplicationEdges
public java.util.Set<ApplicationEdge> getApplicationEdges()
- Specified by:
getApplicationEdges
in interfaceBusinessService
-
setApplicationEdges
public void setApplicationEdges(java.util.Set<ApplicationEdge> applicationEdges)
- Specified by:
setApplicationEdges
in interfaceBusinessService
-
addApplicationEdge
public void addApplicationEdge(Application application, MapFunction mapFunction, int weight)
- Specified by:
addApplicationEdge
in interfaceBusinessService
-
getReductionKeyEdges
public java.util.Set<ReductionKeyEdge> getReductionKeyEdges()
- Specified by:
getReductionKeyEdges
in interfaceBusinessService
-
setReductionKeyEdges
public void setReductionKeyEdges(java.util.Set<ReductionKeyEdge> reductionKeyEdges)
- Specified by:
setReductionKeyEdges
in interfaceBusinessService
-
addReductionKeyEdge
public void addReductionKeyEdge(java.lang.String reductionKey, MapFunction mapFunction, int weight, java.lang.String friendlyName)
- Specified by:
addReductionKeyEdge
in interfaceBusinessService
-
getChildEdges
public java.util.Set<ChildEdge> getChildEdges()
- Specified by:
getChildEdges
in interfaceBusinessService
-
setChildEdges
public void setChildEdges(java.util.Set<ChildEdge> childEdges)
- Specified by:
setChildEdges
in interfaceBusinessService
-
addChildEdge
public void addChildEdge(BusinessService child, MapFunction mapFunction, int weight)
- Specified by:
addChildEdge
in interfaceBusinessService
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
removeEdge
public void removeEdge(Edge edge)
- Specified by:
removeEdge
in interfaceBusinessService
-
-