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, Optional<ControllerConfiguration.InitialConfigData> initialConfigData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.mdsal.binding.api.ActionProviderServicegetActionProviderService()org.opendaylight.mdsal.binding.api.ActionServicegetActionService()org.opendaylight.controller.cluster.ActorSystemProvidergetActorSystemProvider()org.opendaylight.mdsal.binding.dom.adapter.ConstantAdapterContextgetAdapterContext()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.infrautils.diagstatus.DiagStatusServicegetDiagStatusService()org.opendaylight.mdsal.dom.api.DOMActionProviderServicegetDOMActionProviderService()org.opendaylight.mdsal.dom.api.DOMActionServicegetDOMActionService()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.yangtools.yang.model.api.EffectiveModelContextProvidergetEffectiveModelContextProvider()org.opendaylight.mdsal.eos.binding.api.EntityOwnershipServicegetEntityOwnershipService()io.netty.util.concurrent.EventExecutorgetEventExecutor()LightySystemReadyServicegetLightySystemReadyService()org.opendaylight.infrautils.metrics.MetricProvidergetMetricProvider()org.opendaylight.mdsal.binding.api.NotificationServicegetNotificationService()org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfacegetOperationalDatastore()org.opendaylight.mdsal.binding.api.RpcProviderServicegetRpcProviderService()org.opendaylight.controller.config.threadpool.ScheduledThreadPoolgetScheduledThreadPool()LightyServicesgetServices()Get important controller services.org.opendaylight.infrautils.ready.SystemReadyMonitorgetSystemReadyMonitor()org.opendaylight.controller.config.threadpool.ThreadPoolgetThreadPool()io.netty.util.TimergetTimer()io.netty.channel.EventLoopGroupgetWorkerGroup()org.opendaylight.yangtools.yang.parser.api.YangParserFactorygetYangParserFactory()protected booleaninitProcedure()This method is called inAbstractLightyModule.start()method.List<org.opendaylight.yangtools.concepts.ObjectRegistration<org.opendaylight.yangtools.yang.binding.YangModuleInfo>>registerModuleInfos(Iterable<? extends org.opendaylight.yangtools.yang.binding.YangModuleInfo> yangModuleInfos)Register instances of Yang modules 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, Optional<ControllerConfiguration.InitialConfigData> initialConfigData)
-
-
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- if stopping was interrupted.
-
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
-
getEffectiveModelContextProvider
public org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider getEffectiveModelContextProvider()
- Specified by:
getEffectiveModelContextProviderin 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
-
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
-
getYangParserFactory
public org.opendaylight.yangtools.yang.parser.api.YangParserFactory getYangParserFactory()
- Specified by:
getYangParserFactoryin 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
-
getScheduledThreadPool
public org.opendaylight.controller.config.threadpool.ScheduledThreadPool getScheduledThreadPool()
- Specified by:
getScheduledThreadPoolin 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
-
getDOMNotificationPublishService
public org.opendaylight.mdsal.dom.api.DOMNotificationPublishService getDOMNotificationPublishService()
- Specified by:
getDOMNotificationPublishServicein interfaceLightyServices
-
getDOMNotificationService
public org.opendaylight.mdsal.dom.api.DOMNotificationService getDOMNotificationService()
- Specified by:
getDOMNotificationServicein interfaceLightyServices
-
getClusteredDOMDataBroker
public org.opendaylight.mdsal.dom.api.DOMDataBroker getClusteredDOMDataBroker()
- Specified by:
getClusteredDOMDataBrokerin interfaceLightyServices
-
getDOMRpcService
public org.opendaylight.mdsal.dom.api.DOMRpcService getDOMRpcService()
- Specified by:
getDOMRpcServicein interfaceLightyServices
-
getDOMRpcProviderService
public org.opendaylight.mdsal.dom.api.DOMRpcProviderService getDOMRpcProviderService()
- Specified by:
getDOMRpcProviderServicein interfaceLightyServices
-
getRpcProviderService
public org.opendaylight.mdsal.binding.api.RpcProviderService getRpcProviderService()
- Specified by:
getRpcProviderServicein interfaceLightyServices
-
getBindingMountPointService
public org.opendaylight.mdsal.binding.api.MountPointService getBindingMountPointService()
- Specified by:
getBindingMountPointServicein interfaceLightyServices
-
getNotificationService
public org.opendaylight.mdsal.binding.api.NotificationService getNotificationService()
- Specified by:
getNotificationServicein interfaceLightyServices
-
getBindingNotificationPublishService
public org.opendaylight.mdsal.binding.api.NotificationPublishService getBindingNotificationPublishService()
- Specified by:
getBindingNotificationPublishServicein interfaceLightyServices
-
getBindingDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getBindingDataBroker()
- Specified by:
getBindingDataBrokerin interfaceLightyServices
-
getAdapterContext
public org.opendaylight.mdsal.binding.dom.adapter.ConstantAdapterContext getAdapterContext()
- Specified by:
getAdapterContextin interfaceLightyServices
-
getActionProviderService
public org.opendaylight.mdsal.binding.api.ActionProviderService getActionProviderService()
- Specified by:
getActionProviderServicein interfaceLightyServices
-
getActionService
public org.opendaylight.mdsal.binding.api.ActionService getActionService()
- Specified by:
getActionServicein interfaceLightyServices
-
registerModuleInfos
public List<org.opendaylight.yangtools.concepts.ObjectRegistration<org.opendaylight.yangtools.yang.binding.YangModuleInfo>> registerModuleInfos(Iterable<? extends org.opendaylight.yangtools.yang.binding.YangModuleInfo> yangModuleInfos)
Description copied from interface:LightyModuleRegistryServiceRegister instances of Yang modules into global schema context.- Specified by:
registerModuleInfosin interfaceLightyModuleRegistryService- Parameters:
yangModuleInfos- modules to register- Returns:
- list of registrations
-
getDOMActionService
public org.opendaylight.mdsal.dom.api.DOMActionService getDOMActionService()
- Specified by:
getDOMActionServicein interfaceLightyServices
-
getDOMActionProviderService
public org.opendaylight.mdsal.dom.api.DOMActionProviderService getDOMActionProviderService()
- Specified by:
getDOMActionProviderServicein 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
-
-