@Service public class CfmMdManager extends org.onosproject.event.AbstractListenerManager<MdEvent,MdListener> implements CfmMdService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected MdStoreDelegate |
delegate |
protected MdStore |
store |
| Constructor and Description |
|---|
CfmMdManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
boolean |
createMaintenanceAssociation(MdId mdName,
MaintenanceAssociation newMa)
Create or replace a Maintenance Domain of a specific Maintenance Domain.
|
boolean |
createMaintenanceDomain(MaintenanceDomain newMd)
Create or replace a Maintenance Domain.
|
void |
deactivate() |
boolean |
deleteMaintenanceAssociation(MdId mdName,
MaIdShort maName)
Delete a specific Maintenance Association of a specific Maintenance Domain.
|
boolean |
deleteMaintenanceDomain(MdId mdName)
Delete a specific Maintenance Domain by its identifier.
|
java.util.Collection<MaintenanceAssociation> |
getAllMaintenanceAssociation(MdId mdName)
Get all of the Maintenance Associations for a Maintenance Domain.
|
java.util.Collection<MaintenanceDomain> |
getAllMaintenanceDomain()
Get a list of all of the Maintenance Domains on the system.
|
java.util.Optional<MaintenanceAssociation> |
getMaintenanceAssociation(MdId mdName,
MaIdShort maName)
Get a specific Maintenance Association of a specific Maintenance Domain.
|
java.util.Optional<MaintenanceDomain> |
getMaintenanceDomain(MdId mdName)
Get a specific Maintenance Domain by its identifier.
|
protected org.onosproject.core.ApplicationId appId
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected MdStore store
protected final MdStoreDelegate delegate
@Activate public void activate()
@Deactivate public void deactivate()
public java.util.Collection<MaintenanceDomain> getAllMaintenanceDomain()
CfmMdServicegetAllMaintenanceDomain in interface CfmMdServicepublic java.util.Optional<MaintenanceDomain> getMaintenanceDomain(MdId mdName)
CfmMdServicegetMaintenanceDomain in interface CfmMdServicemdName - An identifier for the Maintenance Domainpublic boolean deleteMaintenanceDomain(MdId mdName) throws CfmConfigException
CfmMdServicedeleteMaintenanceDomain in interface CfmMdServicemdName - An identifier for the Maintenance Domain to be deletedCfmConfigException - If there were any Meps dependent on the MD or its MAspublic java.util.Collection<MaintenanceAssociation> getAllMaintenanceAssociation(MdId mdName)
CfmMdServicegetAllMaintenanceAssociation in interface CfmMdServicemdName - The identifier of the Maintenance Domainpublic java.util.Optional<MaintenanceAssociation> getMaintenanceAssociation(MdId mdName, MaIdShort maName)
CfmMdServicegetMaintenanceAssociation in interface CfmMdServicemdName - The identifier of the Maintenance DomainmaName - The identifier of the Maintenance Associationpublic boolean deleteMaintenanceAssociation(MdId mdName, MaIdShort maName) throws CfmConfigException
CfmMdServicedeleteMaintenanceAssociation in interface CfmMdServicemdName - The identifier of the Maintenance DomainmaName - The identifier of the Maintenance AssociationCfmConfigException - If there were any Meps dependent on the MD or its MAspublic boolean createMaintenanceDomain(MaintenanceDomain newMd) throws CfmConfigException
CfmMdServicecreateMaintenanceDomain in interface CfmMdServicenewMd - The Maintenance Domain to create or replaceCfmConfigException - If it is a replacement and there were any
Meps dependent on the MD or its MAspublic boolean createMaintenanceAssociation(MdId mdName, MaintenanceAssociation newMa) throws CfmConfigException
CfmMdServicecreateMaintenanceAssociation in interface CfmMdServicemdName - The identifier of the Maintenance DomainnewMa - A Maintenance AssociationCfmConfigException - If it is a replacement and there were any
Meps dependent on the MD or its MAs