Class GreetingPreparation

java.lang.Object
org.gcube.service.helloworld.context.GreetingPreparation
All Implemented Interfaces:
org.gcube.common.health.api.ContextPreparation

public class GreetingPreparation extends Object implements org.gcube.common.health.api.ContextPreparation
How the service prepares itself in each of its Contexts: a real service reads or creates its configuration there; this one only notes when it was prepared. SmartGears calls it in each Context of the node, with the secret of that Context, and shows the state per Context in the health.
Author:
Luca Frosini (ISTI-CNR)
  • Constructor Details

    • GreetingPreparation

      public GreetingPreparation()
  • Method Details

    • prepare

      public org.gcube.common.health.api.ContextState prepare()
      Specified by:
      prepare in interface org.gcube.common.health.api.ContextPreparation
    • state

      public org.gcube.common.health.api.ContextState state()
      Specified by:
      state in interface org.gcube.common.health.api.ContextPreparation
    • removed

      public void removed(String context)
      Specified by:
      removed in interface org.gcube.common.health.api.ContextPreparation