Class HostingNodeHandler
- java.lang.Object
-
- org.gcube.smartgears.handlers.AbstractHandler
-
- org.gcube.smartgears.handlers.container.ContainerHandler
-
- org.gcube.smartgears.handler.resourceregistry.HostingNodeHandler
-
- All Implemented Interfaces:
org.gcube.smartgears.handlers.Handler<org.gcube.smartgears.handlers.container.ContainerLifecycleEvent>
public class HostingNodeHandler extends org.gcube.smartgears.handlers.container.ContainerHandlerManages theHostingNodeResourceof the application.The manager:
- creates the
HostingNodeResourceand the facets itConsistsOfwhen the container starts for the first time; - update the
StateFacetwhen the application becomes active, and at any lifecycle change thereafter; - schedule a periodic update of
Facets containing variables information.
- Author:
- Luca Frosini (ISTI-CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected HostingNodeManagerhostingNodeManager
-
Constructor Summary
Constructors Constructor Description HostingNodeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStart(org.gcube.smartgears.handlers.container.ContainerLifecycleEvent.Start event)protected voidremoveResourceFromOldContexts(Set<UUID> startContexts, Set<UUID> resourceContexts)StringtoString()
-
-
-
Field Detail
-
hostingNodeManager
protected HostingNodeManager hostingNodeManager
-
-
Method Detail
-
onStart
public void onStart(org.gcube.smartgears.handlers.container.ContainerLifecycleEvent.Start event)
- Overrides:
onStartin classorg.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:
toStringin classorg.gcube.smartgears.handlers.AbstractHandler
-
-