Class LispSouthboundPlugin
- java.lang.Object
-
- org.opendaylight.lispflowmapping.southbound.LispSouthboundPlugin
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IConfigLispSouthboundPlugin
,org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
public class LispSouthboundPlugin extends java.lang.Object implements IConfigLispSouthboundPlugin, java.lang.AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LISPFLOWMAPPING_ENTITY_NAME
protected static org.slf4j.Logger
LOG
static org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier
SERVICE_GROUP_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description LispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
closeServiceInstance()
AuthKeyDb
getAkdb()
AuthenticationKeyDataListener
getAuthenticationKeyDataListener()
org.opendaylight.mdsal.binding.api.DataBroker
getDataBroker()
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier
getIdentifier()
MapRegisterCache
getMapRegisterCache()
long
getMapRegisterCacheTimeout()
ConcurrentLispSouthboundStats
getStats()
void
handleSerializedLispBuffer(java.net.InetAddress address, java.nio.ByteBuffer outBuffer, MessageType packetType, int portNumber, io.netty.channel.Channel senderChannel)
void
handleSerializedLispBuffer(TransportAddress address, java.nio.ByteBuffer outBuffer, MessageType packetType)
void
init()
void
instantiateServiceInstance()
boolean
isMapRegisterCacheEnabled()
void
restoreDaoFromDatastore()
Restore all keys from MDSAL datastore.void
sendNotificationIfPossible(org.opendaylight.yangtools.yang.binding.Notification notification)
void
setBindingAddress(java.lang.String bindingAddress)
void
setLispAddress(java.lang.String address)
void
setMapRegisterCacheEnabled(boolean mapRegisterCacheEnabled)
void
setMapRegisterCacheTimeout(long mapRegisterCacheTimeout)
void
setXtrPort(int port)
void
shouldListenOnXtrPort(boolean shouldListenOnXtrPort)
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
LISPFLOWMAPPING_ENTITY_NAME
public static final java.lang.String LISPFLOWMAPPING_ENTITY_NAME
- See Also:
- Constant Field Values
-
SERVICE_GROUP_IDENTIFIER
public static final org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier SERVICE_GROUP_IDENTIFIER
-
-
Constructor Detail
-
LispSouthboundPlugin
public LispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService)
-
-
Method Detail
-
init
public void init()
-
restoreDaoFromDatastore
public void restoreDaoFromDatastore()
Restore all keys from MDSAL datastore.
-
handleSerializedLispBuffer
public void handleSerializedLispBuffer(TransportAddress address, java.nio.ByteBuffer outBuffer, MessageType packetType)
-
handleSerializedLispBuffer
public void handleSerializedLispBuffer(java.net.InetAddress address, java.nio.ByteBuffer outBuffer, MessageType packetType, int portNumber, io.netty.channel.Channel senderChannel)
-
setLispAddress
public void setLispAddress(java.lang.String address)
- Specified by:
setLispAddress
in interfaceIConfigLispSouthboundPlugin
-
shouldListenOnXtrPort
public void shouldListenOnXtrPort(boolean shouldListenOnXtrPort)
- Specified by:
shouldListenOnXtrPort
in interfaceIConfigLispSouthboundPlugin
-
setXtrPort
public void setXtrPort(int port)
- Specified by:
setXtrPort
in interfaceIConfigLispSouthboundPlugin
-
setMapRegisterCacheEnabled
public void setMapRegisterCacheEnabled(boolean mapRegisterCacheEnabled)
-
setMapRegisterCacheTimeout
public void setMapRegisterCacheTimeout(long mapRegisterCacheTimeout)
-
setBindingAddress
public void setBindingAddress(java.lang.String bindingAddress)
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
instantiateServiceInstance
public void instantiateServiceInstance()
- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
closeServiceInstance
public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeServiceInstance()
- Specified by:
closeServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
getIdentifier
public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
- Specified by:
getIdentifier
in interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
-
sendNotificationIfPossible
public void sendNotificationIfPossible(org.opendaylight.yangtools.yang.binding.Notification notification) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getAkdb
public AuthKeyDb getAkdb()
-
getStats
public ConcurrentLispSouthboundStats getStats()
-
getDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
-
getAuthenticationKeyDataListener
public AuthenticationKeyDataListener getAuthenticationKeyDataListener()
-
getMapRegisterCache
public MapRegisterCache getMapRegisterCache()
-
isMapRegisterCacheEnabled
public boolean isMapRegisterCacheEnabled()
-
getMapRegisterCacheTimeout
public long getMapRegisterCacheTimeout()
-
-