Class ApplicationProfileManager
java.lang.Object
org.gcube.smartgears.handlers.AbstractHandler
org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
org.gcube.smartgears.handlers.application.lifecycle.ApplicationProfileManager
- All Implemented Interfaces:
ApplicationHandler<ApplicationLifecycleHandler>,Handler<ApplicationEvent<ApplicationLifecycleHandler>>
Manages the resource profile of the application.
The manager:
- creates the profile when the application starts for the first time;
- loads the profile when the application restarts;
- publishes the profile when the application becomes active, and at any lifecycle change thereafter;
- stores the profile locally after each publication;
- Author:
- Fabio Simeoni
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when the container starts a managed app.toString()Methods inherited from class org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
onEvent, onStopMethods inherited from class org.gcube.smartgears.handlers.AbstractHandler
equals
-
Constructor Details
-
ApplicationProfileManager
public ApplicationProfileManager()
-
-
Method Details
-
onStart
Description copied from class:ApplicationLifecycleHandlerInvoked when the container starts a managed app.- Overrides:
onStartin classApplicationLifecycleHandler- Parameters:
e- the start event
-
toString
- Overrides:
toStringin classAbstractHandler
-