Class EServiceHandler

  • All Implemented Interfaces:
    org.gcube.smartgears.handlers.application.ApplicationHandler<org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler>, org.gcube.smartgears.handlers.Handler<org.gcube.smartgears.handlers.application.ApplicationEvent<org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler>>

    public class EServiceHandler
    extends org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
    Manages the EService Resource of the application.

    The manager:

    • creates the EService Resource and the facets it ConsistsOf when the application starts for the first time;
    • update the StateFacet when the application becomes active, and at any lifecycle change thereafter;

    Author:
    Luca Frosini (ISTI-CNR)
    • Constructor Detail

      • EServiceHandler

        public EServiceHandler()
    • Method Detail

      • onStart

        public void onStart​(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start event)
        Overrides:
        onStart in class org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
      • removeResourceFromOldContexts

        protected void removeResourceFromOldContexts​(Set<UUID> startContexts,
                                                     Set<UUID> resourceContexts)
      • toString

        public String toString()
        Overrides:
        toString in class org.gcube.smartgears.handlers.AbstractHandler