public final class DefaultMaintenanceAssociation extends java.lang.Object implements MaintenanceAssociation
MaintenanceAssociation
.MaintenanceAssociation.CcmInterval, MaintenanceAssociation.MaBuilder
Modifier and Type | Method and Description |
---|---|
static MaintenanceAssociation.MaBuilder |
builder(MaIdShort maId,
int mdNameAndTypeLen) |
static MaintenanceAssociation.MaBuilder |
builder(MaintenanceAssociation ma) |
MaintenanceAssociation.CcmInterval |
ccmInterval()
Get the CCM interval for the Maintenance Association.
|
java.util.Collection<Component> |
componentList()
A list of components each of which can be managed in a manner essentially equivalent to an 802.1Q bridge.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
MaIdShort |
maId()
Get the ID of the Maintenance Association.
|
short |
maNumericId()
Numeric identifier.
|
java.util.Collection<MepId> |
remoteMepIdList()
Get the list of the Remote Mep Ids.
|
java.lang.String |
toString() |
MaintenanceAssociation |
withComponentList(java.util.Collection<Component> componentList)
Create a new component collection.
|
MaintenanceAssociation |
withRemoteMepIdList(java.util.Collection<MepId> remoteMepIdList)
Create a new Maintenance Association from the current with the specified RemoteMepId list.
|
public MaIdShort maId()
MaintenanceAssociation
maId
in interface MaintenanceAssociation
public MaintenanceAssociation.CcmInterval ccmInterval()
MaintenanceAssociation
ccmInterval
in interface MaintenanceAssociation
public java.util.Collection<Component> componentList()
MaintenanceAssociation
componentList
in interface MaintenanceAssociation
public MaintenanceAssociation withComponentList(java.util.Collection<Component> componentList)
MaintenanceAssociation
withComponentList
in interface MaintenanceAssociation
componentList
- A collection of component objectspublic java.util.Collection<MepId> remoteMepIdList()
MaintenanceAssociation
remoteMepIdList
in interface MaintenanceAssociation
public MaintenanceAssociation withRemoteMepIdList(java.util.Collection<MepId> remoteMepIdList)
MaintenanceAssociation
withRemoteMepIdList
in interface MaintenanceAssociation
remoteMepIdList
- A list of RemoteMepIdspublic short maNumericId()
MaintenanceAssociation
maNumericId
in interface MaintenanceAssociation
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static MaintenanceAssociation.MaBuilder builder(MaIdShort maId, int mdNameAndTypeLen) throws CfmConfigException
CfmConfigException
public static MaintenanceAssociation.MaBuilder builder(MaintenanceAssociation ma) throws CfmConfigException
CfmConfigException