Class HostingNodeHandler

  • All Implemented Interfaces:
    org.gcube.smartgears.handlers.Handler<org.gcube.smartgears.handlers.container.ContainerLifecycleEvent>

    public class HostingNodeHandler
    extends org.gcube.smartgears.handlers.container.ContainerHandler
    Manages the HostingNode Resource of the application.

    The manager:

    • creates the HostingNode Resource and the facets it ConsistsOf when the container starts for the first time;
    • update the StateFacet when the application becomes active, and at any lifecycle change thereafter;
    • schedule a periodic update of Facets containing variables information.

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

      • HostingNodeHandler

        public HostingNodeHandler()
    • Method Detail

      • onStart

        public void onStart​(org.gcube.smartgears.handlers.container.ContainerLifecycleEvent.Start event)
        Overrides:
        onStart in class org.gcube.smartgears.handlers.container.ContainerHandler
      • removeResourceFromOldContexts

        protected void removeResourceFromOldContexts​(Set<UUID> startContexts,
                                                     Set<UUID> resourceContexts)
                                              throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • toString

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