@Service public class SoamManager extends java.lang.Object implements SoamService
| Modifier and Type | Field and Description |
|---|---|
protected CfmMepService |
cfmMepService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
| Constructor and Description |
|---|
SoamManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortDm(MdId mdName,
MaIdShort maName,
MepId mepId)
Stop all Delay Measurements on a particular MEP.
|
void |
abortDm(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId dmId)
Stop a particular named Delay Measurement on a particular MEP.
|
void |
abortLm(MdId mdName,
MaIdShort maName,
MepId mepId)
Stop all Loss Measurements on a particular MEP.
|
void |
abortLm(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId lmId)
Stop a particular named Loss Measurement on a particular MEP.
|
void |
abortTestSignal(MdId mdName,
MaIdShort maName,
MepId mepId)
Abort a Test Signal operation on a particular MEP.
|
protected void |
activate() |
void |
clearDelayHistoryStats(MdId mdName,
MaIdShort maName,
MepId mepId)
Clear the history stats on all Delay Measurements on a particular MEP.
|
void |
clearDelayHistoryStats(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId dmId)
Clear the history stats on a named Delay Measurement on a particular MEP.
|
void |
clearLossHistoryStats(MdId mdName,
MaIdShort maName,
MepId mepId)
Clear the history stats on all Loss Measurements on a particular MEP.
|
void |
clearLossHistoryStats(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId lmId)
Clear the history stats on a named Loss Measurement on a particular MEP.
|
java.util.Optional<SoamId> |
createDm(MdId mdName,
MaIdShort maName,
MepId mepId,
DelayMeasurementCreate dmNew)
Create a Delay Measurement on a particular MEP.
|
java.util.Optional<SoamId> |
createLm(MdId mdName,
MaIdShort maName,
MepId mepId,
LossMeasurementCreate lm)
Create a Loss Measurement on a particular MEP.
|
void |
createTestSignal(MdId mdName,
MaIdShort maName,
MepId mepId,
MepTsCreate tsCreate)
Create a Test Signal operation on a particular MEP.
|
protected void |
deactivate() |
java.util.Collection<DelayMeasurementEntry> |
getAllDms(MdId mdName,
MaIdShort maName,
MepId mepId)
Get all of the Delay Measurements on a particular MEP.
|
java.util.Collection<LossMeasurementEntry> |
getAllLms(MdId mdName,
MaIdShort maName,
MepId mepId)
Get all of the Loss Measurements on a particular MEP.
|
DelayMeasurementEntry |
getDm(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId dmId)
Get a named Delay Measurements on a particular MEP.
|
DelayMeasurementStatCurrent |
getDmCurrentStat(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId dmId)
Get only the current stats of a named Delay Measurements on a particular MEP.
|
java.util.Collection<DelayMeasurementStatHistory> |
getDmHistoricalStats(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId dmId)
Get only the history stats of a named Delay Measurements on a particular MEP.
|
LossMeasurementEntry |
getLm(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId lmId)
Get a named Loss Measurements on a particular MEP.
|
LossMeasurementStatCurrent |
getLmCurrentStat(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId lmId)
Get only the current stats of a named Loss Measurements on a particular MEP.
|
java.util.Collection<LossMeasurementStatCurrent> |
getLmHistoricalStats(MdId mdName,
MaIdShort maName,
MepId mepId,
SoamId lmId)
Get only the history stats of a named Loss Measurements on a particular MEP.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected CfmMepService cfmMepService
@Activate protected void activate()
@Deactivate protected void deactivate()
public java.util.Collection<DelayMeasurementEntry> getAllDms(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException, SoamConfigException
SoamServicegetAllDms in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - If there's a problem with Cfm attributesSoamConfigException - If there's a problem with Soam attributespublic DelayMeasurementEntry getDm(MdId mdName, MaIdShort maName, MepId mepId, SoamId dmId) throws CfmConfigException, SoamConfigException
SoamServicegetDm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmId - The id of the Delay MeasurementCfmConfigException - If there's a problem with Cfm attributesSoamConfigException - If there's a problem with Soam attributespublic DelayMeasurementStatCurrent getDmCurrentStat(MdId mdName, MaIdShort maName, MepId mepId, SoamId dmId) throws CfmConfigException, SoamConfigException
SoamServicegetDmCurrentStat in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmId - The id of the Delay MeasurementCfmConfigException - If there's a problem with Cfm attributesSoamConfigException - If there's a problem with Soam attributespublic java.util.Collection<DelayMeasurementStatHistory> getDmHistoricalStats(MdId mdName, MaIdShort maName, MepId mepId, SoamId dmId) throws SoamConfigException, CfmConfigException
SoamServicegetDmHistoricalStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmId - The id of the Delay MeasurementSoamConfigException - If there's a problem with Soam attributesCfmConfigException - If there's a problem with Cfm attributespublic java.util.Optional<SoamId> createDm(MdId mdName, MaIdShort maName, MepId mepId, DelayMeasurementCreate dmNew) throws CfmConfigException, SoamConfigException
SoamServicecreateDm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmNew - The parameters of the Delay MeasurementCfmConfigException - If there's a problem with Cfm attributesSoamConfigException - If there's a problem with Soam attributespublic void abortDm(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServiceabortDm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completedpublic void abortDm(MdId mdName, MaIdShort maName, MepId mepId, SoamId dmId) throws CfmConfigException
SoamServiceabortDm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmId - The id of the DMCfmConfigException - When the command cannot be completedpublic void clearDelayHistoryStats(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServiceclearDelayHistoryStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completedpublic void clearDelayHistoryStats(MdId mdName, MaIdShort maName, MepId mepId, SoamId dmId) throws CfmConfigException
SoamServiceclearDelayHistoryStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfdmId - The id of the DMCfmConfigException - When the command cannot be completedpublic java.util.Collection<LossMeasurementEntry> getAllLms(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServicegetAllLms in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completedpublic LossMeasurementEntry getLm(MdId mdName, MaIdShort maName, MepId mepId, SoamId lmId) throws CfmConfigException
SoamServicegetLm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflmId - The id of the Loss MeasurementCfmConfigException - When the command cannot be completedpublic LossMeasurementStatCurrent getLmCurrentStat(MdId mdName, MaIdShort maName, MepId mepId, SoamId lmId)
SoamServicegetLmCurrentStat in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflmId - The id of the Loss Measurementpublic java.util.Collection<LossMeasurementStatCurrent> getLmHistoricalStats(MdId mdName, MaIdShort maName, MepId mepId, SoamId lmId)
SoamServicegetLmHistoricalStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflmId - The id of the Loss Measurementpublic java.util.Optional<SoamId> createLm(MdId mdName, MaIdShort maName, MepId mepId, LossMeasurementCreate lm) throws CfmConfigException
SoamServicecreateLm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflm - The parameters of the Loss MeasurementCfmConfigException - When the command cannot be completedpublic void abortLm(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServiceabortLm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completedpublic void abortLm(MdId mdName, MaIdShort maName, MepId mepId, SoamId lmId) throws CfmConfigException
SoamServiceabortLm in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflmId - The id of the LMCfmConfigException - When the command cannot be completedpublic void clearLossHistoryStats(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServiceclearLossHistoryStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completedpublic void clearLossHistoryStats(MdId mdName, MaIdShort maName, MepId mepId, SoamId lmId) throws CfmConfigException
SoamServiceclearLossHistoryStats in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselflmId - The id of the LMCfmConfigException - When the command cannot be completedpublic void createTestSignal(MdId mdName, MaIdShort maName, MepId mepId, MepTsCreate tsCreate) throws CfmConfigException
SoamServicecreateTestSignal in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselftsCreate - The parameters the Test Signal is created withCfmConfigException - When the command cannot be completedpublic void abortTestSignal(MdId mdName, MaIdShort maName, MepId mepId) throws CfmConfigException
SoamServiceabortTestSignal in interface SoamServicemdName - The Maintenance Domain of the MEPmaName - The Maintenance Association of the MEPmepId - The id of the MEP itselfCfmConfigException - When the command cannot be completed