Class LispSouthboundPlugin
java.lang.Object
org.opendaylight.lispflowmapping.southbound.LispSouthboundPlugin
- All Implemented Interfaces:
 AutoCloseable,IConfigLispSouthboundPlugin,org.opendaylight.mdsal.singleton.api.ClusterSingletonService,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
@Singleton
public class LispSouthboundPlugin
extends Object
implements IConfigLispSouthboundPlugin, AutoCloseable, org.opendaylight.mdsal.singleton.api.ClusterSingletonService
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final org.slf4j.Loggerstatic final org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier - 
Constructor Summary
ConstructorsConstructorDescriptionLispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider clusterSingletonService) LispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.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.api.ClusterSingletonServiceProvider clusterSingletonService, LispSouthboundPlugin.Configuration configuration)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.google.common.util.concurrent.ListenableFuture<Void> getAkdb()org.opendaylight.mdsal.binding.api.DataBrokerorg.opendaylight.mdsal.singleton.api.ServiceGroupIdentifierlonggetStats()voidhandleSerializedLispBuffer(InetAddress address, ByteBuffer outBuffer, MessageType packetType, int portNumber, io.netty.channel.Channel senderChannel) voidhandleSerializedLispBuffer(TransportAddress address, ByteBuffer outBuffer, MessageType packetType) voidinit()voidbooleanvoidRestore all keys from MDSAL datastore.voidsendNotificationIfPossible(org.opendaylight.yangtools.binding.Notification notification) voidsetLispAddress(String address) voidsetXtrPort(int port) voidshouldListenOnXtrPort(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.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.api.ClusterSingletonServiceProvider clusterSingletonService)  - 
LispSouthboundPlugin
public LispSouthboundPlugin(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, org.opendaylight.mdsal.singleton.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.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:
 setLispAddressin interfaceIConfigLispSouthboundPlugin
 - 
shouldListenOnXtrPort
public void shouldListenOnXtrPort(boolean shouldListenOnXtrPort) - Specified by:
 shouldListenOnXtrPortin interfaceIConfigLispSouthboundPlugin
 - 
setXtrPort
public void setXtrPort(int port) - Specified by:
 setXtrPortin interfaceIConfigLispSouthboundPlugin
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Throws:
 Exception
 - 
instantiateServiceInstance
public void instantiateServiceInstance()- Specified by:
 instantiateServiceInstancein interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
 - 
closeServiceInstance
- Specified by:
 closeServiceInstancein interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
 - 
getIdentifier
public org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier getIdentifier()- Specified by:
 getIdentifierin interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
 - 
sendNotificationIfPossible
public void sendNotificationIfPossible(org.opendaylight.yangtools.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() 
 -