Package io.lighty.core.controller.impl
Class LightyControllerImpl
- java.lang.Object
-
- io.lighty.core.controller.api.AbstractLightyModule
-
- io.lighty.core.controller.impl.LightyControllerImpl
-
- All Implemented Interfaces:
LightyController,LightyModule,LightyModuleRegistryService,LightyServices
public class LightyControllerImpl extends AbstractLightyModule implements LightyController, LightyServices
-
-
Constructor Summary
Constructors Constructor Description LightyControllerImpl(ExecutorService executorService, com.typesafe.config.Config actorSystemConfig, ClassLoader actorSystemClassLoader, ControllerConfiguration.DOMNotificationRouterConfig domNotificationRouterConfig, String restoreDirectoryPath, int maxDataBrokerFutureCallbackQueueSize, int maxDataBrokerFutureCallbackPoolSize, boolean metricCaptureEnabled, int mailboxCapacity, Properties distributedEosProperties, String moduleShardsConfig, String modulesConfig, org.opendaylight.controller.cluster.datastore.DatastoreContext configDatastoreContext, org.opendaylight.controller.cluster.datastore.DatastoreContext operDatastoreContext, Map<String,Object> datastoreProperties, Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> modelSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.controller.cluster.ActorSystemProvidergetActorSystemProvider()org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactorygetBindingCodecTreeFactory()org.opendaylight.mdsal.binding.api.DataBrokergetBindingDataBroker()org.opendaylight.mdsal.binding.api.MountPointServicegetBindingMountPointService()org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializergetBindingNormalizedNodeSerializer()org.opendaylight.mdsal.binding.api.NotificationPublishServicegetBindingNotificationPublishService()io.netty.channel.EventLoopGroupgetBossGroup()org.opendaylight.infrautils.caches.CacheProvidergetCacheProvider()org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.ClusterAdminServicegetClusterAdminRPCService()org.opendaylight.mdsal.dom.api.DOMDataBrokergetClusteredDOMDataBroker()org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvidergetClusterSingletonServiceProvider()org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfacegetConfigDatastore()org.opendaylight.controller.md.sal.binding.api.DataBrokergetControllerBindingDataBroker()org.opendaylight.controller.md.sal.binding.api.MountPointServicegetControllerBindingMountPointService()org.opendaylight.controller.md.sal.binding.api.NotificationPublishServicegetControllerBindingNotificationPublishService()org.opendaylight.controller.md.sal.binding.api.NotificationServicegetControllerBindingNotificationService()org.opendaylight.controller.md.sal.binding.api.DataBrokergetControllerBindingPingPongDataBroker()org.opendaylight.controller.md.sal.dom.api.DOMDataBrokergetControllerClusteredDOMDataBroker()org.opendaylight.controller.md.sal.dom.api.DOMMountPointServicegetControllerDOMMountPointService()org.opendaylight.controller.md.sal.dom.api.DOMNotificationPublishServicegetControllerDOMNotificationPublishService()org.opendaylight.controller.md.sal.dom.api.DOMNotificationServicegetControllerDOMNotificationService()org.opendaylight.controller.md.sal.dom.spi.DOMNotificationSubscriptionListenerRegistrygetControllerDOMNotificationSubscriptionListenerRegistry()org.opendaylight.controller.md.sal.dom.api.DOMRpcProviderServicegetControllerDOMRpcProviderService()org.opendaylight.controller.md.sal.dom.api.DOMRpcServicegetControllerDOMRpcService()org.opendaylight.controller.sal.binding.api.NotificationProviderServicegetControllerNotificationProviderService()org.opendaylight.controller.md.sal.dom.api.DOMDataBrokergetControllerPingPongDataBroker()org.opendaylight.controller.sal.binding.api.RpcProviderRegistrygetControllerRpcProviderRegistry()org.opendaylight.infrautils.diagstatus.DiagStatusServicegetDiagStatusService()org.opendaylight.controller.cluster.sharding.DistributedShardFactorygetDistributedShardFactory()org.opendaylight.mdsal.dom.api.DOMActionProviderServicegetDOMActionProviderSerice()org.opendaylight.mdsal.dom.api.DOMActionServicegetDOMActionService()org.opendaylight.mdsal.dom.api.DOMDataTreeServicegetDOMDataTreeService()org.opendaylight.mdsal.dom.api.DOMDataTreeShardingServicegetDOMDataTreeShardingService()org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipServicegetDOMEntityOwnershipService()org.opendaylight.mdsal.dom.api.DOMMountPointServicegetDOMMountPointService()org.opendaylight.mdsal.dom.api.DOMNotificationPublishServicegetDOMNotificationPublishService()org.opendaylight.mdsal.dom.api.DOMNotificationServicegetDOMNotificationService()org.opendaylight.mdsal.dom.spi.DOMNotificationSubscriptionListenerRegistrygetDOMNotificationSubscriptionListenerRegistry()org.opendaylight.mdsal.dom.api.DOMRpcProviderServicegetDOMRpcProviderService()org.opendaylight.mdsal.dom.api.DOMRpcServicegetDOMRpcService()org.opendaylight.mdsal.dom.api.DOMSchemaServicegetDOMSchemaService()org.opendaylight.mdsal.dom.api.DOMYangTextSourceProvidergetDOMYangTextSourceProvider()org.opendaylight.mdsal.eos.binding.api.EntityOwnershipServicegetEntityOwnershipService()io.netty.util.concurrent.EventExecutorgetEventExecutor()org.opendaylight.infrautils.jobcoordinator.JobCoordinatorgetJobCoordinator()LightySystemReadyServicegetLightySystemReadyService()org.opendaylight.infrautils.metrics.MetricProvidergetMetricProvider()org.opendaylight.mdsal.binding.dom.adapter.BindingToNormalizedNodeCodecgetNormalizedNodeCodec()org.opendaylight.mdsal.binding.api.NotificationServicegetNotificationService()org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfacegetOperationalDatastore()org.opendaylight.mdsal.binding.api.RpcProviderServicegetRpcProviderService()org.opendaylight.controller.config.threadpool.ScheduledThreadPoolgetScheduledThreaPool()org.opendaylight.yangtools.yang.model.api.SchemaContextProvidergetSchemaContextProvider()LightyServicesgetServices()Get important controller services.org.opendaylight.infrautils.ready.SystemReadyMonitorgetSystemReadyMonitor()org.opendaylight.controller.config.threadpool.ThreadPoolgetThreadPool()io.netty.util.TimergetTimer()io.netty.channel.EventLoopGroupgetWorkerGroup()protected booleaninitProcedure()This method is called inAbstractLightyModule.start()method.org.opendaylight.yangtools.concepts.ObjectRegistration<org.opendaylight.yangtools.yang.binding.YangModuleInfo>registerModuleInfo(org.opendaylight.yangtools.yang.binding.YangModuleInfo yangModuleInfo)Register an instance of Yang module into global schema context.protected booleanstopProcedure()This method is called inAbstractLightyModule.shutdown()method.-
Methods inherited from class io.lighty.core.controller.api.AbstractLightyModule
shutdown, start, startBlocking, startBlocking
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.lighty.core.controller.api.LightyModule
shutdown, start, startBlocking
-
-
-
-
Constructor Detail
-
LightyControllerImpl
public LightyControllerImpl(ExecutorService executorService, com.typesafe.config.Config actorSystemConfig, ClassLoader actorSystemClassLoader, ControllerConfiguration.DOMNotificationRouterConfig domNotificationRouterConfig, String restoreDirectoryPath, int maxDataBrokerFutureCallbackQueueSize, int maxDataBrokerFutureCallbackPoolSize, boolean metricCaptureEnabled, int mailboxCapacity, Properties distributedEosProperties, String moduleShardsConfig, String modulesConfig, org.opendaylight.controller.cluster.datastore.DatastoreContext configDatastoreContext, org.opendaylight.controller.cluster.datastore.DatastoreContext operDatastoreContext, Map<String,Object> datastoreProperties, Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> modelSet)
-
-
Method Detail
-
initProcedure
protected boolean initProcedure()
Description copied from class:AbstractLightyModuleThis method is called inAbstractLightyModule.start()method. Implementation of this method should initialize everything necessary.- Specified by:
initProcedurein classAbstractLightyModule- Returns:
- success of initialization
-
stopProcedure
protected boolean stopProcedure() throws InterruptedExceptionDescription copied from class:AbstractLightyModuleThis method is called inAbstractLightyModule.shutdown()method. Implementation of this method should do everything necessary to shutdown correctly (e.g. stop initialized beans, release resources, ...).- Specified by:
stopProcedurein classAbstractLightyModule- Returns:
- success of stop.
- Throws:
InterruptedException
-
getServices
public LightyServices getServices()
Description copied from interface:LightyControllerGet important controller services.- Specified by:
getServicesin interfaceLightyController- Returns:
- running controller services.
-
getDiagStatusService
public org.opendaylight.infrautils.diagstatus.DiagStatusService getDiagStatusService()
- Specified by:
getDiagStatusServicein interfaceLightyServices
-
getSystemReadyMonitor
public org.opendaylight.infrautils.ready.SystemReadyMonitor getSystemReadyMonitor()
- Specified by:
getSystemReadyMonitorin interfaceLightyServices
-
getLightySystemReadyService
public LightySystemReadyService getLightySystemReadyService()
- Specified by:
getLightySystemReadyServicein interfaceLightyServices
-
getActorSystemProvider
public org.opendaylight.controller.cluster.ActorSystemProvider getActorSystemProvider()
- Specified by:
getActorSystemProviderin interfaceLightyServices
-
getSchemaContextProvider
public org.opendaylight.yangtools.yang.model.api.SchemaContextProvider getSchemaContextProvider()
- Specified by:
getSchemaContextProviderin interfaceLightyServices
-
getDOMSchemaService
public org.opendaylight.mdsal.dom.api.DOMSchemaService getDOMSchemaService()
- Specified by:
getDOMSchemaServicein interfaceLightyServices
-
getDOMYangTextSourceProvider
public org.opendaylight.mdsal.dom.api.DOMYangTextSourceProvider getDOMYangTextSourceProvider()
- Specified by:
getDOMYangTextSourceProviderin interfaceLightyServices
-
getDOMNotificationSubscriptionListenerRegistry
public org.opendaylight.mdsal.dom.spi.DOMNotificationSubscriptionListenerRegistry getDOMNotificationSubscriptionListenerRegistry()
- Specified by:
getDOMNotificationSubscriptionListenerRegistryin interfaceLightyServices
-
getControllerDOMNotificationSubscriptionListenerRegistry
public org.opendaylight.controller.md.sal.dom.spi.DOMNotificationSubscriptionListenerRegistry getControllerDOMNotificationSubscriptionListenerRegistry()
- Specified by:
getControllerDOMNotificationSubscriptionListenerRegistryin interfaceLightyServices
-
getConfigDatastore
public org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface getConfigDatastore()
- Specified by:
getConfigDatastorein interfaceLightyServices
-
getOperationalDatastore
public org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface getOperationalDatastore()
- Specified by:
getOperationalDatastorein interfaceLightyServices
-
getDOMDataTreeShardingService
public org.opendaylight.mdsal.dom.api.DOMDataTreeShardingService getDOMDataTreeShardingService()
- Specified by:
getDOMDataTreeShardingServicein interfaceLightyServices
-
getDOMDataTreeService
public org.opendaylight.mdsal.dom.api.DOMDataTreeService getDOMDataTreeService()
- Specified by:
getDOMDataTreeServicein interfaceLightyServices
-
getDistributedShardFactory
public org.opendaylight.controller.cluster.sharding.DistributedShardFactory getDistributedShardFactory()
- Specified by:
getDistributedShardFactoryin interfaceLightyServices
-
getBindingNormalizedNodeSerializer
public org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer getBindingNormalizedNodeSerializer()
- Specified by:
getBindingNormalizedNodeSerializerin interfaceLightyServices
-
getBindingCodecTreeFactory
public org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory getBindingCodecTreeFactory()
- Specified by:
getBindingCodecTreeFactoryin interfaceLightyServices
-
getDOMEntityOwnershipService
public org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService getDOMEntityOwnershipService()
- Specified by:
getDOMEntityOwnershipServicein interfaceLightyServices
-
getEntityOwnershipService
public org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService getEntityOwnershipService()
- Specified by:
getEntityOwnershipServicein interfaceLightyServices
-
getClusterAdminRPCService
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.ClusterAdminService getClusterAdminRPCService()
- Specified by:
getClusterAdminRPCServicein interfaceLightyServices
-
getClusterSingletonServiceProvider
public org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider getClusterSingletonServiceProvider()
- Specified by:
getClusterSingletonServiceProviderin interfaceLightyServices
-
getEventExecutor
public io.netty.util.concurrent.EventExecutor getEventExecutor()
- Specified by:
getEventExecutorin interfaceLightyServices
-
getBossGroup
public io.netty.channel.EventLoopGroup getBossGroup()
- Specified by:
getBossGroupin interfaceLightyServices
-
getWorkerGroup
public io.netty.channel.EventLoopGroup getWorkerGroup()
- Specified by:
getWorkerGroupin interfaceLightyServices
-
getThreadPool
public org.opendaylight.controller.config.threadpool.ThreadPool getThreadPool()
- Specified by:
getThreadPoolin interfaceLightyServices
-
getScheduledThreaPool
public org.opendaylight.controller.config.threadpool.ScheduledThreadPool getScheduledThreaPool()
- Specified by:
getScheduledThreaPoolin interfaceLightyServices
-
getTimer
public io.netty.util.Timer getTimer()
- Specified by:
getTimerin interfaceLightyServices
-
getDOMMountPointService
public org.opendaylight.mdsal.dom.api.DOMMountPointService getDOMMountPointService()
- Specified by:
getDOMMountPointServicein interfaceLightyServices
-
getControllerDOMMountPointService
public org.opendaylight.controller.md.sal.dom.api.DOMMountPointService getControllerDOMMountPointService()
- Specified by:
getControllerDOMMountPointServicein interfaceLightyServices
-
getDOMNotificationPublishService
public org.opendaylight.mdsal.dom.api.DOMNotificationPublishService getDOMNotificationPublishService()
- Specified by:
getDOMNotificationPublishServicein interfaceLightyServices
-
getControllerDOMNotificationPublishService
public org.opendaylight.controller.md.sal.dom.api.DOMNotificationPublishService getControllerDOMNotificationPublishService()
- Specified by:
getControllerDOMNotificationPublishServicein interfaceLightyServices
-
getDOMNotificationService
public org.opendaylight.mdsal.dom.api.DOMNotificationService getDOMNotificationService()
- Specified by:
getDOMNotificationServicein interfaceLightyServices
-
getControllerDOMNotificationService
public org.opendaylight.controller.md.sal.dom.api.DOMNotificationService getControllerDOMNotificationService()
- Specified by:
getControllerDOMNotificationServicein interfaceLightyServices
-
getClusteredDOMDataBroker
public org.opendaylight.mdsal.dom.api.DOMDataBroker getClusteredDOMDataBroker()
- Specified by:
getClusteredDOMDataBrokerin interfaceLightyServices
-
getControllerClusteredDOMDataBroker
public org.opendaylight.controller.md.sal.dom.api.DOMDataBroker getControllerClusteredDOMDataBroker()
- Specified by:
getControllerClusteredDOMDataBrokerin interfaceLightyServices
-
getControllerPingPongDataBroker
public org.opendaylight.controller.md.sal.dom.api.DOMDataBroker getControllerPingPongDataBroker()
- Specified by:
getControllerPingPongDataBrokerin interfaceLightyServices
-
getDOMRpcService
public org.opendaylight.mdsal.dom.api.DOMRpcService getDOMRpcService()
- Specified by:
getDOMRpcServicein interfaceLightyServices
-
getControllerDOMRpcService
public org.opendaylight.controller.md.sal.dom.api.DOMRpcService getControllerDOMRpcService()
- Specified by:
getControllerDOMRpcServicein interfaceLightyServices
-
getDOMRpcProviderService
public org.opendaylight.mdsal.dom.api.DOMRpcProviderService getDOMRpcProviderService()
- Specified by:
getDOMRpcProviderServicein interfaceLightyServices
-
getControllerDOMRpcProviderService
public org.opendaylight.controller.md.sal.dom.api.DOMRpcProviderService getControllerDOMRpcProviderService()
- Specified by:
getControllerDOMRpcProviderServicein interfaceLightyServices
-
getRpcProviderService
public org.opendaylight.mdsal.binding.api.RpcProviderService getRpcProviderService()
- Specified by:
getRpcProviderServicein interfaceLightyServices
-
getControllerRpcProviderRegistry
public org.opendaylight.controller.sal.binding.api.RpcProviderRegistry getControllerRpcProviderRegistry()
- Specified by:
getControllerRpcProviderRegistryin interfaceLightyServices
-
getBindingMountPointService
public org.opendaylight.mdsal.binding.api.MountPointService getBindingMountPointService()
- Specified by:
getBindingMountPointServicein interfaceLightyServices
-
getControllerBindingMountPointService
public org.opendaylight.controller.md.sal.binding.api.MountPointService getControllerBindingMountPointService()
- Specified by:
getControllerBindingMountPointServicein interfaceLightyServices
-
getNotificationService
public org.opendaylight.mdsal.binding.api.NotificationService getNotificationService()
- Specified by:
getNotificationServicein interfaceLightyServices
-
getControllerBindingNotificationService
public org.opendaylight.controller.md.sal.binding.api.NotificationService getControllerBindingNotificationService()
- Specified by:
getControllerBindingNotificationServicein interfaceLightyServices
-
getBindingNotificationPublishService
public org.opendaylight.mdsal.binding.api.NotificationPublishService getBindingNotificationPublishService()
- Specified by:
getBindingNotificationPublishServicein interfaceLightyServices
-
getControllerBindingNotificationPublishService
public org.opendaylight.controller.md.sal.binding.api.NotificationPublishService getControllerBindingNotificationPublishService()
- Specified by:
getControllerBindingNotificationPublishServicein interfaceLightyServices
-
getControllerNotificationProviderService
public org.opendaylight.controller.sal.binding.api.NotificationProviderService getControllerNotificationProviderService()
- Specified by:
getControllerNotificationProviderServicein interfaceLightyServices
-
getBindingDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getBindingDataBroker()
- Specified by:
getBindingDataBrokerin interfaceLightyServices
-
getNormalizedNodeCodec
public org.opendaylight.mdsal.binding.dom.adapter.BindingToNormalizedNodeCodec getNormalizedNodeCodec()
- Specified by:
getNormalizedNodeCodecin interfaceLightyServices
-
getControllerBindingDataBroker
public org.opendaylight.controller.md.sal.binding.api.DataBroker getControllerBindingDataBroker()
- Specified by:
getControllerBindingDataBrokerin interfaceLightyServices
-
registerModuleInfo
public org.opendaylight.yangtools.concepts.ObjectRegistration<org.opendaylight.yangtools.yang.binding.YangModuleInfo> registerModuleInfo(org.opendaylight.yangtools.yang.binding.YangModuleInfo yangModuleInfo)
Description copied from interface:LightyModuleRegistryServiceRegister an instance of Yang module into global schema context.- Specified by:
registerModuleInfoin interfaceLightyModuleRegistryService
-
getControllerBindingPingPongDataBroker
public org.opendaylight.controller.md.sal.binding.api.DataBroker getControllerBindingPingPongDataBroker()
- Specified by:
getControllerBindingPingPongDataBrokerin interfaceLightyServices
-
getDOMActionService
public org.opendaylight.mdsal.dom.api.DOMActionService getDOMActionService()
- Specified by:
getDOMActionServicein interfaceLightyServices
-
getDOMActionProviderSerice
public org.opendaylight.mdsal.dom.api.DOMActionProviderService getDOMActionProviderSerice()
- Specified by:
getDOMActionProviderSericein interfaceLightyServices
-
getJobCoordinator
public org.opendaylight.infrautils.jobcoordinator.JobCoordinator getJobCoordinator()
- Specified by:
getJobCoordinatorin interfaceLightyServices
-
getMetricProvider
public org.opendaylight.infrautils.metrics.MetricProvider getMetricProvider()
- Specified by:
getMetricProviderin interfaceLightyServices
-
getCacheProvider
public org.opendaylight.infrautils.caches.CacheProvider getCacheProvider()
- Specified by:
getCacheProviderin interfaceLightyServices
-
-