public interface CfmMdService
Modifier and Type | Method and Description |
---|---|
boolean |
createMaintenanceAssociation(MdId mdName,
MaintenanceAssociation ma)
Create or replace a Maintenance Domain of a specific Maintenance Domain.
|
boolean |
createMaintenanceDomain(MaintenanceDomain md)
Create or replace a Maintenance Domain.
|
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.
|
java.util.Collection<MaintenanceDomain> getAllMaintenanceDomain()
java.util.Optional<MaintenanceDomain> getMaintenanceDomain(MdId mdName)
mdName
- An identifier for the Maintenance Domainboolean deleteMaintenanceDomain(MdId mdName) throws CfmConfigException
mdName
- An identifier for the Maintenance Domain to be deletedCfmConfigException
- If there were any Meps dependent on the MD or its MAsboolean createMaintenanceDomain(MaintenanceDomain md) throws CfmConfigException
md
- The Maintenance Domain to create or replaceCfmConfigException
- If it is a replacement and there were any
Meps dependent on the MD or its MAsjava.util.Collection<MaintenanceAssociation> getAllMaintenanceAssociation(MdId mdName)
mdName
- The identifier of the Maintenance Domainjava.util.Optional<MaintenanceAssociation> getMaintenanceAssociation(MdId mdName, MaIdShort maName)
mdName
- The identifier of the Maintenance DomainmaName
- The identifier of the Maintenance Associationjava.lang.IllegalArgumentException
- if MD is not foundboolean deleteMaintenanceAssociation(MdId mdName, MaIdShort maName) throws CfmConfigException
mdName
- The identifier of the Maintenance DomainmaName
- The identifier of the Maintenance AssociationCfmConfigException
- If there were any Meps dependent on the MD or its MAsjava.lang.IllegalArgumentException
- if MD is not foundboolean createMaintenanceAssociation(MdId mdName, MaintenanceAssociation ma) throws CfmConfigException
mdName
- The identifier of the Maintenance Domainma
- A Maintenance AssociationCfmConfigException
- If it is a replacement and there were any
Meps dependent on the MD or its MAsjava.lang.IllegalArgumentException
- if MD is not found