public class DefaultRemoteMepEntry extends java.lang.Object implements RemoteMepEntry
RemoteMepEntry
.RemoteMepEntry.InterfaceStatusTlvType, RemoteMepEntry.PortStatusTlvType, RemoteMepEntry.RemoteMepEntryBuilder, RemoteMepEntry.RemoteMepState
Modifier | Constructor and Description |
---|---|
protected |
DefaultRemoteMepEntry(org.onosproject.incubator.net.l2monitoring.cfm.DefaultRemoteMepEntry.DefaultRemoteMepEntryBuilder rmepBuilder) |
Modifier and Type | Method and Description |
---|---|
static RemoteMepEntry.RemoteMepEntryBuilder |
builder(MepId remoteMepId,
RemoteMepEntry.RemoteMepState state) |
java.time.Duration |
failedOrOkTime()
Get the time since Remote MEP last entered either RMEP_FAILED or RMEP_OK state.
|
RemoteMepEntry.InterfaceStatusTlvType |
interfaceStatusTlvType()
Get the Interface Status TLV from the last CCM received from the remote MEP.
|
MacAddress |
macAddress()
Get the MAC address of the remote MEP or 0 if no CCM has been received.
|
RemoteMepEntry.PortStatusTlvType |
portStatusTlvType()
Get the Port Status TLV from the last CCM received from the remote MEP.
|
boolean |
rdi()
A Boolean value indicating the state of the RDI bit in the last received CCM.
|
MepId |
remoteMepId() |
SenderIdTlv.SenderIdTlvType |
senderIdTlvType()
Get the Sender ID TLV type from the last CCM received from the remote MEP or default.
|
RemoteMepEntry.RemoteMepState |
state()
Get the operational state of a Remote MEP state machine for a remote MEP.
|
protected DefaultRemoteMepEntry(org.onosproject.incubator.net.l2monitoring.cfm.DefaultRemoteMepEntry.DefaultRemoteMepEntryBuilder rmepBuilder)
public MepId remoteMepId()
remoteMepId
in interface RemoteMepEntry
public RemoteMepEntry.RemoteMepState state()
RemoteMepEntry
state
in interface RemoteMepEntry
public java.time.Duration failedOrOkTime()
RemoteMepEntry
failedOrOkTime
in interface RemoteMepEntry
public MacAddress macAddress()
RemoteMepEntry
macAddress
in interface RemoteMepEntry
public boolean rdi()
RemoteMepEntry
rdi
in interface RemoteMepEntry
public RemoteMepEntry.PortStatusTlvType portStatusTlvType()
RemoteMepEntry
portStatusTlvType
in interface RemoteMepEntry
public RemoteMepEntry.InterfaceStatusTlvType interfaceStatusTlvType()
RemoteMepEntry
interfaceStatusTlvType
in interface RemoteMepEntry
public SenderIdTlv.SenderIdTlvType senderIdTlvType()
RemoteMepEntry
senderIdTlvType
in interface RemoteMepEntry
public static RemoteMepEntry.RemoteMepEntryBuilder builder(MepId remoteMepId, RemoteMepEntry.RemoteMepState state) throws CfmConfigException
CfmConfigException