public class DefaultMep extends java.lang.Object implements Mep
Mep.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultMep.DefaultMepBuilder
Builder for
Mep. |
Mep.FaultDefectType, Mep.FngAddress, Mep.FngAddressType, Mep.LowestFaultDefect, Mep.MepBuilder, Mep.MepDirection, Mep.Priority| Modifier and Type | Field and Description |
|---|---|
protected boolean |
administrativeState |
protected boolean |
cciEnabled |
protected Mep.Priority |
ccmLtmPriority |
protected java.time.Duration |
defectAbsentTime |
protected java.time.Duration |
defectPresentTime |
protected DeviceId |
deviceId |
protected Mep.MepDirection |
direction |
protected Mep.FngAddress |
fngAddress |
protected Mep.LowestFaultDefect |
lowestFaultPriorityDefect |
protected MaIdShort |
maId |
protected MdId |
mdId |
protected MepId |
mepId |
protected PortNumber |
port |
protected VlanId |
primaryVid |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMep(DefaultMep.DefaultMepBuilder mepBuilder) |
protected |
DefaultMep(DefaultMep mep,
org.onosproject.incubator.net.l2monitoring.cfm.DefaultMep.AttributeName attrName,
java.lang.Object attrValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
administrativeState()
Get the administrative state of the MEP.
|
static Mep.MepBuilder |
builder(MepId mepId,
DeviceId deviceId,
PortNumber port,
Mep.MepDirection direction,
MdId mdId,
MaIdShort maId) |
java.lang.Boolean |
cciEnabled()
Get whether the MEP is or is not to generate CCMs.
|
Mep.Priority |
ccmLtmPriority()
Get the priority parameter for CCMs and LTMs transmitted by the MEP.
|
java.time.Duration |
defectAbsentTime()
Get the time that the Fault must be absent before it is reset.
|
java.time.Duration |
defectPresentTime()
Get the time that the Fault must be present before it is issued.
|
DeviceId |
deviceId()
Get the Device ID which the MEP is realized on.
|
Mep.MepDirection |
direction()
Get the MEP direction.
|
boolean |
equals(java.lang.Object o) |
Mep.FngAddress |
fngAddress()
Get the network address to which Fault Alarms are to be transmitted.
|
int |
hashCode() |
Mep.LowestFaultDefect |
lowestFaultPriorityDefect()
Get the lowest priority defect that is allowed to generate a Fault Alarm.
|
MaIdShort |
maId()
Get the Maintenance Association reference.
|
MdId |
mdId()
Get the Maintenance Domain reference.
|
MepId |
mepId()
Get the ID of the MEP.
|
PortNumber |
port()
Get the port to which the MEP is attached.
|
VlanId |
primaryVid()
Get the Primary VID of the MEP.
|
java.lang.String |
toString() |
Mep |
withAdministrativeState(boolean adminState)
Set the administrative state of the MEP.
|
Mep |
withCciEnabled(boolean cciEnabled)
Enable or disable the generation of CCMs by the MEP.
|
Mep |
withCcmLtmPriority(Mep.Priority priority)
Set the priority parameter for CCMs and LTMs transmitted by the MEP.
|
Mep |
withDefectAbsentTime(java.time.Duration duration)
Set the time that the Fault must be absent before it is reset.
|
Mep |
withDefectPresentTime(java.time.Duration duration)
Set the time that the Fault must be present before it is issued.
|
Mep |
withFngAddress(Mep.FngAddress fngAddress)
Set the network address to which Fault Alarms are to be transmitted.
|
Mep |
withLowestFaultPriorityDefect(Mep.LowestFaultDefect lowestFdType)
Set the lowest priority defect that is allowed to generate a Fault Alarm.
|
Mep |
withPrimaryVid(VlanId primaryVid)
Set the Primary VID of the MEP.
|
protected final MepId mepId
protected final DeviceId deviceId
protected final PortNumber port
protected final Mep.MepDirection direction
protected final MdId mdId
protected final MaIdShort maId
protected final VlanId primaryVid
protected final boolean administrativeState
protected final boolean cciEnabled
protected final Mep.Priority ccmLtmPriority
protected final Mep.FngAddress fngAddress
protected final Mep.LowestFaultDefect lowestFaultPriorityDefect
protected final java.time.Duration defectPresentTime
protected final java.time.Duration defectAbsentTime
protected DefaultMep(DefaultMep.DefaultMepBuilder mepBuilder)
protected DefaultMep(DefaultMep mep, org.onosproject.incubator.net.l2monitoring.cfm.DefaultMep.AttributeName attrName, java.lang.Object attrValue)
public DeviceId deviceId()
Meppublic PortNumber port()
Meppublic Mep.MepDirection direction()
Meppublic MdId mdId()
Meppublic MaIdShort maId()
Meppublic VlanId primaryVid()
MepprimaryVid in interface Meppublic Mep withPrimaryVid(VlanId primaryVid)
MepwithPrimaryVid in interface MepprimaryVid - An integer between 0 and 4094public boolean administrativeState()
MepadministrativeState in interface Meppublic Mep withAdministrativeState(boolean adminState)
MepwithAdministrativeState in interface MepadminState - The administrative state of the MEPpublic java.lang.Boolean cciEnabled()
MepcciEnabled in interface Meppublic Mep withCciEnabled(boolean cciEnabled)
MepwithCciEnabled in interface MepcciEnabled - boolean value dictating whether CCMs are sent or notpublic Mep.Priority ccmLtmPriority()
MepccmLtmPriority in interface Meppublic Mep withCcmLtmPriority(Mep.Priority priority)
MepwithCcmLtmPriority in interface Meppriority - An integer value between 0 and 7 inclusivepublic Mep withFngAddress(Mep.FngAddress fngAddress)
MepwithFngAddress in interface MepfngAddress - Address type or indicator that address is not specified or alarms are not to be transmittedpublic Mep.FngAddress fngAddress()
MepfngAddress in interface Meppublic Mep.LowestFaultDefect lowestFaultPriorityDefect()
MeplowestFaultPriorityDefect in interface Meppublic Mep withLowestFaultPriorityDefect(Mep.LowestFaultDefect lowestFdType)
MepwithLowestFaultPriorityDefect in interface MeplowestFdType - The lowest priority defect that is allowed to generate a Fault Alarmpublic java.time.Duration defectPresentTime()
MepdefectPresentTime in interface Meppublic Mep withDefectPresentTime(java.time.Duration duration)
MepwithDefectPresentTime in interface Mepduration - The time that the Fault must be present before it is issuedpublic java.time.Duration defectAbsentTime()
MepdefectAbsentTime in interface Meppublic Mep withDefectAbsentTime(java.time.Duration duration)
MepwithDefectAbsentTime in interface Mepduration - The time that the Fault must be absent before it is resetpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static Mep.MepBuilder builder(MepId mepId, DeviceId deviceId, PortNumber port, Mep.MepDirection direction, MdId mdId, MaIdShort maId) throws CfmConfigException
CfmConfigException