Class ProfileManager
- java.lang.Object
-
- org.gcube.smartgears.handlers.AbstractHandler
-
- org.gcube.smartgears.handlers.container.ContainerHandler
-
- org.gcube.smartgears.handlers.container.lifecycle.ProfileManager
-
- All Implemented Interfaces:
Handler<ContainerLifecycleEvent>
public class ProfileManager extends ContainerHandler
Manages the resource profile of the container.The manager:
- creates the profile when the container starts for the first time;
- loads the profile when the container restarts;
- publishes the profile when the container becomes active, and at any lifecycle change thereafter;
- stores the profile locally after each publication;
- Author:
- Fabio Simeoni
- See Also:
ProfileBuilder
-
-
Constructor Summary
Constructors Constructor Description ProfileManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStart(ContainerLifecycleEvent.Start e)Invoked when the container starts.StringtoString()-
Methods inherited from class org.gcube.smartgears.handlers.container.ContainerHandler
onEvent, onStop
-
Methods inherited from class org.gcube.smartgears.handlers.AbstractHandler
equals
-
-
-
-
Method Detail
-
onStart
public void onStart(ContainerLifecycleEvent.Start e)
Description copied from class:ContainerHandlerInvoked when the container starts.- Overrides:
onStartin classContainerHandler- Parameters:
e- the event
-
toString
public String toString()
- Overrides:
toStringin classAbstractHandler
-
-