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
ConstructorsConstructorDescriptionLightyControllerImpl(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.binding.meta.YangModuleInfo> modelSet, @Nullable ControllerConfiguration.InitialConfigData initialConfigData) -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.mdsal.binding.api.ActionProviderServiceorg.opendaylight.mdsal.binding.api.ActionServiceorg.opendaylight.controller.cluster.ActorSystemProviderorg.opendaylight.mdsal.binding.dom.adapter.ConstantAdapterContextorg.opendaylight.yangtools.binding.data.codec.impl.di.DefaultDynamicBindingDataCodecorg.opendaylight.mdsal.binding.api.DataBrokerorg.opendaylight.mdsal.binding.api.MountPointServiceorg.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializerorg.opendaylight.mdsal.binding.api.NotificationPublishServiceorg.opendaylight.controller.cluster.datastore.admin.ClusterAdminRpcServiceorg.opendaylight.mdsal.dom.api.DOMDataBrokerorg.opendaylight.mdsal.singleton.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.broker.DOMNotificationRouterorg.opendaylight.mdsal.dom.api.DOMNotificationServiceorg.opendaylight.mdsal.dom.api.DOMRpcProviderServiceorg.opendaylight.mdsal.dom.api.DOMRpcServiceorg.opendaylight.mdsal.dom.api.DOMSchemaServiceorg.opendaylight.mdsal.eos.binding.api.EntityOwnershipServiceorg.opendaylight.restconf.server.jaxrs.JaxRsEndpointorg.opendaylight.mdsal.binding.api.NotificationServiceorg.opendaylight.controller.cluster.datastore.DistributedDataStoreInterfaceorg.opendaylight.mdsal.binding.api.RpcServiceorg.opendaylight.mdsal.binding.api.RpcProviderServiceGet important controller services.org.opendaylight.infrautils.ready.SystemReadyMonitororg.opendaylight.yangtools.yang.parser.api.YangParserFactoryorg.opendaylight.mdsal.dom.api.DOMSchemaService.YangTextSourceExtensionprotected booleanThis method is called inAbstractLightyModule.start()method.List<org.opendaylight.yangtools.concepts.Registration> registerModuleInfos(Iterable<? extends org.opendaylight.yangtools.binding.meta.YangModuleInfo> yangModuleInfos) Register instances of Yang modules into global schema context.protected booleanThis method is called inAbstractLightyModule.shutdown()method.voidwithJaxRsEndpoint(org.opendaylight.restconf.server.jaxrs.JaxRsEndpoint endpoint) Methods inherited from class io.lighty.core.controller.api.AbstractLightyModule
shutdown, shutdown, start, startBlocking, startBlockingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lighty.core.controller.api.LightyModule
shutdown, shutdown, start, startBlocking
-
Constructor Details
-
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.binding.meta.YangModuleInfo> modelSet, @Nullable ControllerConfiguration.InitialConfigData initialConfigData)
-
-
Method Details
-
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
Description 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.ExecutionException
-
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
- Specified by:
getLightySystemReadyServicein interfaceLightyServices
-
getActorSystemProvider
public org.opendaylight.controller.cluster.ActorSystemProvider getActorSystemProvider()- Specified by:
getActorSystemProviderin interfaceLightyServices
-
getDOMSchemaService
public org.opendaylight.mdsal.dom.api.DOMSchemaService getDOMSchemaService()- Specified by:
getDOMSchemaServicein interfaceLightyServices
-
getYangTextSourceExtension
public org.opendaylight.mdsal.dom.api.DOMSchemaService.YangTextSourceExtension getYangTextSourceExtension()- Specified by:
getYangTextSourceExtensionin interfaceLightyServices
-
getDOMNotificationRouter
public org.opendaylight.mdsal.dom.broker.DOMNotificationRouter getDOMNotificationRouter()- Specified by:
getDOMNotificationRouterin 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.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer getBindingNormalizedNodeSerializer()- Specified by:
getBindingNormalizedNodeSerializerin interfaceLightyServices
-
getBindingCodecTreeFactory
public org.opendaylight.yangtools.binding.data.codec.impl.di.DefaultDynamicBindingDataCodec 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.controller.cluster.datastore.admin.ClusterAdminRpcService getClusterAdminRPCService()- Specified by:
getClusterAdminRPCServicein interfaceLightyServices
-
getClusterSingletonServiceProvider
public org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider getClusterSingletonServiceProvider()- Specified by:
getClusterSingletonServiceProviderin 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
-
getRpcConsumerRegistry
public org.opendaylight.mdsal.binding.api.RpcService getRpcConsumerRegistry()- Specified by:
getRpcConsumerRegistryin interfaceLightyServices
-
getJaxRsEndpoint
public org.opendaylight.restconf.server.jaxrs.JaxRsEndpoint getJaxRsEndpoint()- Specified by:
getJaxRsEndpointin interfaceLightyServices
-
withJaxRsEndpoint
public void withJaxRsEndpoint(org.opendaylight.restconf.server.jaxrs.JaxRsEndpoint endpoint) - Specified by:
withJaxRsEndpointin interfaceLightyServices
-
getActionService
public org.opendaylight.mdsal.binding.api.ActionService getActionService()- Specified by:
getActionServicein interfaceLightyServices
-
registerModuleInfos
public List<org.opendaylight.yangtools.concepts.Registration> registerModuleInfos(Iterable<? extends org.opendaylight.yangtools.binding.meta.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
-