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 SummaryConstructorsConstructorDescriptionLightyControllerImpl(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 SummaryModifier and TypeMethodDescriptionorg.opendaylight.mdsal.binding.api.ActionProviderServiceorg.opendaylight.mdsal.binding.api.ActionServiceorg.opendaylight.controller.cluster.ActorSystemProviderorg.opendaylight.mdsal.binding.dom.adapter.ConstantAdapterContextorg.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactoryorg.opendaylight.mdsal.binding.api.DataBrokerorg.opendaylight.mdsal.binding.api.MountPointServiceorg.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializerorg.opendaylight.mdsal.binding.api.NotificationPublishServiceio.netty.channel.EventLoopGrouporg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.ClusterAdminServiceorg.opendaylight.mdsal.dom.api.DOMDataBrokerorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProviderorg.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfaceorg.opendaylight.infrautils.diagstatus.DiagStatusServiceorg.opendaylight.mdsal.dom.api.DOMActionProviderServiceorg.opendaylight.mdsal.dom.api.DOMActionServiceorg.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipServiceorg.opendaylight.mdsal.dom.api.DOMMountPointServiceorg.opendaylight.mdsal.dom.api.DOMNotificationPublishServiceorg.opendaylight.mdsal.dom.api.DOMNotificationServiceorg.opendaylight.mdsal.dom.spi.DOMNotificationSubscriptionListenerRegistryorg.opendaylight.mdsal.dom.api.DOMRpcProviderServiceorg.opendaylight.mdsal.dom.api.DOMRpcServiceorg.opendaylight.mdsal.dom.api.DOMSchemaServiceorg.opendaylight.mdsal.dom.api.DOMYangTextSourceProviderorg.opendaylight.yangtools.yang.model.api.EffectiveModelContextProviderorg.opendaylight.mdsal.eos.binding.api.EntityOwnershipServiceio.netty.util.concurrent.EventExecutororg.opendaylight.mdsal.binding.api.NotificationServiceorg.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfaceorg.opendaylight.mdsal.binding.api.RpcProviderServiceorg.opendaylight.controller.config.threadpool.ScheduledThreadPoolGet important controller services.org.opendaylight.infrautils.ready.SystemReadyMonitororg.opendaylight.controller.config.threadpool.ThreadPoolio.netty.util.TimergetTimer()io.netty.channel.EventLoopGrouporg.opendaylight.yangtools.yang.parser.api.YangParserFactoryprotected booleanThis 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 booleanThis method is called inAbstractLightyModule.shutdown()method.Methods inherited from class io.lighty.core.controller.api.AbstractLightyModuleshutdown, shutdown, start, startBlocking, startBlockingMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lighty.core.controller.api.LightyModuleshutdown, shutdown, start, startBlocking
- 
Constructor Details- 
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 Details- 
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
 
- 
stopProcedureDescription 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.
 
- 
getServicesDescription 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
 
- 
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
 
 
-