Package csw.framework.javadsl
Class JComponentHandlers
- java.lang.Object
-
- csw.framework.scaladsl.ComponentHandlers
-
- csw.framework.javadsl.JComponentHandlers
-
public abstract class JComponentHandlers extends csw.framework.scaladsl.ComponentHandlersBase class for component handlers which will be used by the component actorparam: ctx the
ActorContextunder which the actor instance of the component, which use these handlers, is created param: cswCtx provides access to csw services e.g. location, event, alarm, etc
-
-
Constructor Summary
Constructors Constructor Description JComponentHandlers(akka.actor.typed.javadsl.ActorContext<TopLevelActorMessage> ctx, JCswContext cswCtx)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description scala.concurrent.ExecutionContextExecutorec()voidinitialize()Invokes the java helper (jInitialize) to initialize the componentabstract voidjInitialize()A Java helper that is invoked when the component is created.abstract voidjOnShutdown()The onShutdown handler can be used for carrying out the tasks which will allow the component to shutdown gracefullyvoidonShutdown()Invokes the java helper (jOnShutdown) to shutdown the component
-
-
-
Constructor Detail
-
JComponentHandlers
public JComponentHandlers(akka.actor.typed.javadsl.ActorContext<TopLevelActorMessage> ctx, JCswContext cswCtx)
-
-
Method Detail
-
ec
public scala.concurrent.ExecutionContextExecutor ec()
-
initialize
public void initialize()
Invokes the java helper (jInitialize) to initialize the componentNote: do not override this from java class
- Specified by:
initializein classcsw.framework.scaladsl.ComponentHandlers
-
jInitialize
public abstract void jInitialize()
A Java helper that is invoked when the component is created. The component can initialize state such as configuration to be fetched from configuration service, location of components or services to be fetched from location service etc. These vary from component to component.
-
jOnShutdown
public abstract void jOnShutdown()
The onShutdown handler can be used for carrying out the tasks which will allow the component to shutdown gracefully
-
onShutdown
public void onShutdown()
Invokes the java helper (jOnShutdown) to shutdown the componentNote: do not override this from java class
- Specified by:
onShutdownin classcsw.framework.scaladsl.ComponentHandlers
-
-