Class AlivenessMonitorUtils
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.commons.AlivenessMonitorUtils
-
@Singleton public final class AlivenessMonitorUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AlivenessMonitorUtils(AlivenessMonitorService alivenessMonitor, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint32
allocateProfile(long failureThreshold, long monitoringInterval, long monitoringWindow, MonitorProtocolType protoType)
org.opendaylight.yangtools.yang.common.Uint32
createMonitorProfile(MonitorProfileCreateInput monitorProfileCreateInput)
static java.lang.String
getInterfaceFromMonitorId(TypedReadTransaction<Datastore.Operational> tx, org.opendaylight.yangtools.yang.common.Uint32 monitorId)
void
handleTunnelMonitorUpdates(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceOld, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceNew)
static boolean
lldpMonitoringEnabled(IfTunnel ifTunnel)
void
startLLDPMonitoring(IfTunnel ifTunnel, java.lang.String trunkInterfaceName)
void
stopLLDPMonitoring(IfTunnel ifTunnel, java.lang.String trunkInterface)
-
-
-
Constructor Detail
-
AlivenessMonitorUtils
@Inject public AlivenessMonitorUtils(AlivenessMonitorService alivenessMonitor, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
-
-
Method Detail
-
startLLDPMonitoring
public void startLLDPMonitoring(IfTunnel ifTunnel, java.lang.String trunkInterfaceName)
-
stopLLDPMonitoring
public void stopLLDPMonitoring(IfTunnel ifTunnel, java.lang.String trunkInterface)
-
getInterfaceFromMonitorId
public static java.lang.String getInterfaceFromMonitorId(TypedReadTransaction<Datastore.Operational> tx, org.opendaylight.yangtools.yang.common.Uint32 monitorId) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
handleTunnelMonitorUpdates
public void handleTunnelMonitorUpdates(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceOld, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceNew)
-
createMonitorProfile
public org.opendaylight.yangtools.yang.common.Uint32 createMonitorProfile(MonitorProfileCreateInput monitorProfileCreateInput)
-
allocateProfile
public org.opendaylight.yangtools.yang.common.Uint32 allocateProfile(long failureThreshold, long monitoringInterval, long monitoringWindow, MonitorProtocolType protoType)
-
lldpMonitoringEnabled
public static boolean lldpMonitoringEnabled(IfTunnel ifTunnel)
-
-