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()
Mep
public PortNumber port()
Mep
public Mep.MepDirection direction()
Mep
public MdId mdId()
Mep
public MaIdShort maId()
Mep
public VlanId primaryVid()
Mep
primaryVid
in interface Mep
public Mep withPrimaryVid(VlanId primaryVid)
Mep
withPrimaryVid
in interface Mep
primaryVid
- An integer between 0 and 4094public boolean administrativeState()
Mep
administrativeState
in interface Mep
public Mep withAdministrativeState(boolean adminState)
Mep
withAdministrativeState
in interface Mep
adminState
- The administrative state of the MEPpublic java.lang.Boolean cciEnabled()
Mep
cciEnabled
in interface Mep
public Mep withCciEnabled(boolean cciEnabled)
Mep
withCciEnabled
in interface Mep
cciEnabled
- boolean value dictating whether CCMs are sent or notpublic Mep.Priority ccmLtmPriority()
Mep
ccmLtmPriority
in interface Mep
public Mep withCcmLtmPriority(Mep.Priority priority)
Mep
withCcmLtmPriority
in interface Mep
priority
- An integer value between 0 and 7 inclusivepublic Mep withFngAddress(Mep.FngAddress fngAddress)
Mep
withFngAddress
in interface Mep
fngAddress
- Address type or indicator that address is not specified or alarms are not to be transmittedpublic Mep.FngAddress fngAddress()
Mep
fngAddress
in interface Mep
public Mep.LowestFaultDefect lowestFaultPriorityDefect()
Mep
lowestFaultPriorityDefect
in interface Mep
public Mep withLowestFaultPriorityDefect(Mep.LowestFaultDefect lowestFdType)
Mep
withLowestFaultPriorityDefect
in interface Mep
lowestFdType
- The lowest priority defect that is allowed to generate a Fault Alarmpublic java.time.Duration defectPresentTime()
Mep
defectPresentTime
in interface Mep
public Mep withDefectPresentTime(java.time.Duration duration)
Mep
withDefectPresentTime
in interface Mep
duration
- The time that the Fault must be present before it is issuedpublic java.time.Duration defectAbsentTime()
Mep
defectAbsentTime
in interface Mep
public Mep withDefectAbsentTime(java.time.Duration duration)
Mep
withDefectAbsentTime
in interface Mep
duration
- The time that the Fault must be absent before it is resetpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static Mep.MepBuilder builder(MepId mepId, DeviceId deviceId, PortNumber port, Mep.MepDirection direction, MdId mdId, MaIdShort maId) throws CfmConfigException
CfmConfigException