Class LispSouthboundPlugin
java.lang.Object
org.opendaylight.lispflowmapping.southbound.LispSouthboundPlugin
- All Implemented Interfaces:
AutoCloseable
,IConfigLispSouthboundPlugin
,org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
@Singleton
public class LispSouthboundPlugin
extends Object
implements IConfigLispSouthboundPlugin, AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static final org.slf4j.Logger
static final org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier
-
Constructor Summary
ConstructorDescriptionLispSouthboundPlugin
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService) LispSouthboundPlugin
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService, String bindingAddress, boolean mapRegisterCacheEnabled, long mapRegisterCacheTimeout) LispSouthboundPlugin
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService, LispSouthboundPlugin.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<Void>
getAkdb()
org.opendaylight.mdsal.binding.api.DataBroker
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier
long
getStats()
void
handleSerializedLispBuffer
(InetAddress address, ByteBuffer outBuffer, MessageType packetType, int portNumber, io.netty.channel.Channel senderChannel) void
handleSerializedLispBuffer
(TransportAddress address, ByteBuffer outBuffer, MessageType packetType) void
init()
void
boolean
void
Restore all keys from MDSAL datastore.void
sendNotificationIfPossible
(org.opendaylight.yangtools.yang.binding.Notification notification) void
setLispAddress
(String address) void
setXtrPort
(int port) void
shouldListenOnXtrPort
(boolean shouldListenOnXtrPort)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
LISPFLOWMAPPING_ENTITY_NAME
- See Also:
-
SERVICE_GROUP_IDENTIFIER
public static final org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier SERVICE_GROUP_IDENTIFIER
-
-
Constructor Details
-
LispSouthboundPlugin
@Inject public LispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService) -
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, LispSouthboundPlugin.Configuration configuration) -
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, String bindingAddress, boolean mapRegisterCacheEnabled, long mapRegisterCacheTimeout)
-
-
Method Details
-
init
@PostConstruct public void init() -
restoreDaoFromDatastore
public void restoreDaoFromDatastore()Restore all keys from MDSAL datastore. -
handleSerializedLispBuffer
public void handleSerializedLispBuffer(TransportAddress address, ByteBuffer outBuffer, MessageType packetType) -
handleSerializedLispBuffer
public void handleSerializedLispBuffer(InetAddress address, ByteBuffer outBuffer, MessageType packetType, int portNumber, io.netty.channel.Channel senderChannel) -
setLispAddress
- 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
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
instantiateServiceInstance
public void instantiateServiceInstance()- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
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 InterruptedException - Throws:
InterruptedException
-
getAkdb
-
getStats
-
getDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker() -
getAuthenticationKeyDataListener
-
getMapRegisterCache
-
isMapRegisterCacheEnabled
public boolean isMapRegisterCacheEnabled() -
getMapRegisterCacheTimeout
public long getMapRegisterCacheTimeout()
-