Search in sources :

Example 6 with BusinessServiceEdgeEntity

use of org.opennms.netmgt.bsm.persistence.api.BusinessServiceEdgeEntity in project opennms by OpenNMS.

the class BusinessServiceManagerImpl method removeEdge.

@Override
public void removeEdge(final BusinessService businessService, final Edge edge) {
    final BusinessServiceEntity businessServiceEntity = getBusinessServiceEntity(businessService);
    final BusinessServiceEdgeEntity edgeEntity = getBusinessServiceEdgeEntity(edge);
    businessServiceEntity.removeEdge(edgeEntity);
}
Also used : BusinessServiceEdgeEntity(org.opennms.netmgt.bsm.persistence.api.BusinessServiceEdgeEntity) BusinessServiceEntity(org.opennms.netmgt.bsm.persistence.api.BusinessServiceEntity)

Aggregations

BusinessServiceEdgeEntity (org.opennms.netmgt.bsm.persistence.api.BusinessServiceEdgeEntity)6 BusinessServiceEntity (org.opennms.netmgt.bsm.persistence.api.BusinessServiceEntity)4 Test (org.junit.Test)2 NoSuchElementException (java.util.NoSuchElementException)1 BusinessServiceChildEdgeEntity (org.opennms.netmgt.bsm.persistence.api.BusinessServiceChildEdgeEntity)1 IPServiceEdgeEntity (org.opennms.netmgt.bsm.persistence.api.IPServiceEdgeEntity)1 AbstractMapFunctionEntity (org.opennms.netmgt.bsm.persistence.api.functions.map.AbstractMapFunctionEntity)1 IdentityEntity (org.opennms.netmgt.bsm.persistence.api.functions.map.IdentityEntity)1 HighestSeverityEntity (org.opennms.netmgt.bsm.persistence.api.functions.reduce.HighestSeverityEntity)1 BusinessServiceEntityBuilder (org.opennms.netmgt.bsm.test.BusinessServiceEntityBuilder)1 OnmsMonitoredService (org.opennms.netmgt.model.OnmsMonitoredService)1