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 SummaryConstructors 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, @Nullable ControllerConfiguration.InitialConfigData initialConfigData)
 - 
Method SummaryAll 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.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.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.AbstractLightyModuleshutdown, start, startBlocking, startBlocking
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface io.lighty.core.controller.api.LightyModuleshutdown, start, startBlocking
 
- 
 
- 
- 
- 
Constructor Detail- 
LightyControllerImplpublic 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, @Nullable ControllerConfiguration.InitialConfigData initialConfigData) 
 
- 
 - 
Method Detail- 
initProcedureprotected boolean initProcedure() Description copied from class:AbstractLightyModuleThis method is called inAbstractLightyModule.start()method. Implementation of this method should initialize everything necessary.- Specified by:
- initProcedurein class- AbstractLightyModule
- Returns:
- success of initialization
 
 - 
stopProcedureprotected 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 class- AbstractLightyModule
- Returns:
- success of stop.
- Throws:
- InterruptedException- if stopping was interrupted.
 
 - 
getServicespublic LightyServices getServices() Description copied from interface:LightyControllerGet important controller services.- Specified by:
- getServicesin interface- LightyController
- Returns:
- running controller services.
 
 - 
getDiagStatusServicepublic org.opendaylight.infrautils.diagstatus.DiagStatusService getDiagStatusService() - Specified by:
- getDiagStatusServicein interface- LightyServices
 
 - 
getSystemReadyMonitorpublic org.opendaylight.infrautils.ready.SystemReadyMonitor getSystemReadyMonitor() - Specified by:
- getSystemReadyMonitorin interface- LightyServices
 
 - 
getLightySystemReadyServicepublic LightySystemReadyService getLightySystemReadyService() - Specified by:
- getLightySystemReadyServicein interface- LightyServices
 
 - 
getActorSystemProviderpublic org.opendaylight.controller.cluster.ActorSystemProvider getActorSystemProvider() - Specified by:
- getActorSystemProviderin interface- LightyServices
 
 - 
getEffectiveModelContextProviderpublic org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider getEffectiveModelContextProvider() - Specified by:
- getEffectiveModelContextProviderin interface- LightyServices
 
 - 
getDOMSchemaServicepublic org.opendaylight.mdsal.dom.api.DOMSchemaService getDOMSchemaService() - Specified by:
- getDOMSchemaServicein interface- LightyServices
 
 - 
getDOMYangTextSourceProviderpublic org.opendaylight.mdsal.dom.api.DOMYangTextSourceProvider getDOMYangTextSourceProvider() - Specified by:
- getDOMYangTextSourceProviderin interface- LightyServices
 
 - 
getDOMNotificationSubscriptionListenerRegistrypublic org.opendaylight.mdsal.dom.spi.DOMNotificationSubscriptionListenerRegistry getDOMNotificationSubscriptionListenerRegistry() - Specified by:
- getDOMNotificationSubscriptionListenerRegistryin interface- LightyServices
 
 - 
getConfigDatastorepublic org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface getConfigDatastore() - Specified by:
- getConfigDatastorein interface- LightyServices
 
 - 
getOperationalDatastorepublic org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface getOperationalDatastore() - Specified by:
- getOperationalDatastorein interface- LightyServices
 
 - 
getYangParserFactorypublic org.opendaylight.yangtools.yang.parser.api.YangParserFactory getYangParserFactory() - Specified by:
- getYangParserFactoryin interface- LightyServices
 
 - 
getBindingNormalizedNodeSerializerpublic org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer getBindingNormalizedNodeSerializer() - Specified by:
- getBindingNormalizedNodeSerializerin interface- LightyServices
 
 - 
getBindingCodecTreeFactorypublic org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory getBindingCodecTreeFactory() - Specified by:
- getBindingCodecTreeFactoryin interface- LightyServices
 
 - 
getDOMEntityOwnershipServicepublic org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService getDOMEntityOwnershipService() - Specified by:
- getDOMEntityOwnershipServicein interface- LightyServices
 
 - 
getEntityOwnershipServicepublic org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService getEntityOwnershipService() - Specified by:
- getEntityOwnershipServicein interface- LightyServices
 
 - 
getClusterAdminRPCServicepublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.ClusterAdminService getClusterAdminRPCService() - Specified by:
- getClusterAdminRPCServicein interface- LightyServices
 
 - 
getClusterSingletonServiceProviderpublic org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider getClusterSingletonServiceProvider() - Specified by:
- getClusterSingletonServiceProviderin interface- LightyServices
 
 - 
getEventExecutorpublic io.netty.util.concurrent.EventExecutor getEventExecutor() - Specified by:
- getEventExecutorin interface- LightyServices
 
 - 
getBossGrouppublic io.netty.channel.EventLoopGroup getBossGroup() - Specified by:
- getBossGroupin interface- LightyServices
 
 - 
getWorkerGrouppublic io.netty.channel.EventLoopGroup getWorkerGroup() - Specified by:
- getWorkerGroupin interface- LightyServices
 
 - 
getThreadPoolpublic org.opendaylight.controller.config.threadpool.ThreadPool getThreadPool() - Specified by:
- getThreadPoolin interface- LightyServices
 
 - 
getScheduledThreadPoolpublic org.opendaylight.controller.config.threadpool.ScheduledThreadPool getScheduledThreadPool() - Specified by:
- getScheduledThreadPoolin interface- LightyServices
 
 - 
getTimerpublic io.netty.util.Timer getTimer() - Specified by:
- getTimerin interface- LightyServices
 
 - 
getDOMMountPointServicepublic org.opendaylight.mdsal.dom.api.DOMMountPointService getDOMMountPointService() - Specified by:
- getDOMMountPointServicein interface- LightyServices
 
 - 
getDOMNotificationPublishServicepublic org.opendaylight.mdsal.dom.api.DOMNotificationPublishService getDOMNotificationPublishService() - Specified by:
- getDOMNotificationPublishServicein interface- LightyServices
 
 - 
getDOMNotificationServicepublic org.opendaylight.mdsal.dom.api.DOMNotificationService getDOMNotificationService() - Specified by:
- getDOMNotificationServicein interface- LightyServices
 
 - 
getClusteredDOMDataBrokerpublic org.opendaylight.mdsal.dom.api.DOMDataBroker getClusteredDOMDataBroker() - Specified by:
- getClusteredDOMDataBrokerin interface- LightyServices
 
 - 
getDOMRpcServicepublic org.opendaylight.mdsal.dom.api.DOMRpcService getDOMRpcService() - Specified by:
- getDOMRpcServicein interface- LightyServices
 
 - 
getDOMRpcProviderServicepublic org.opendaylight.mdsal.dom.api.DOMRpcProviderService getDOMRpcProviderService() - Specified by:
- getDOMRpcProviderServicein interface- LightyServices
 
 - 
getRpcProviderServicepublic org.opendaylight.mdsal.binding.api.RpcProviderService getRpcProviderService() - Specified by:
- getRpcProviderServicein interface- LightyServices
 
 - 
getBindingMountPointServicepublic org.opendaylight.mdsal.binding.api.MountPointService getBindingMountPointService() - Specified by:
- getBindingMountPointServicein interface- LightyServices
 
 - 
getNotificationServicepublic org.opendaylight.mdsal.binding.api.NotificationService getNotificationService() - Specified by:
- getNotificationServicein interface- LightyServices
 
 - 
getBindingNotificationPublishServicepublic org.opendaylight.mdsal.binding.api.NotificationPublishService getBindingNotificationPublishService() - Specified by:
- getBindingNotificationPublishServicein interface- LightyServices
 
 - 
getBindingDataBrokerpublic org.opendaylight.mdsal.binding.api.DataBroker getBindingDataBroker() - Specified by:
- getBindingDataBrokerin interface- LightyServices
 
 - 
getAdapterContextpublic org.opendaylight.mdsal.binding.dom.adapter.ConstantAdapterContext getAdapterContext() - Specified by:
- getAdapterContextin interface- LightyServices
 
 - 
getActionProviderServicepublic org.opendaylight.mdsal.binding.api.ActionProviderService getActionProviderService() - Specified by:
- getActionProviderServicein interface- LightyServices
 
 - 
getActionServicepublic org.opendaylight.mdsal.binding.api.ActionService getActionService() - Specified by:
- getActionServicein interface- LightyServices
 
 - 
registerModuleInfospublic 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 interface- LightyModuleRegistryService
- Parameters:
- yangModuleInfos- modules to register
- Returns:
- list of registrations
 
 - 
getDOMActionServicepublic org.opendaylight.mdsal.dom.api.DOMActionService getDOMActionService() - Specified by:
- getDOMActionServicein interface- LightyServices
 
 - 
getDOMActionProviderServicepublic org.opendaylight.mdsal.dom.api.DOMActionProviderService getDOMActionProviderService() - Specified by:
- getDOMActionProviderServicein interface- LightyServices
 
 
- 
 
-