Interface InitializationContext

    • Method Detail

      • state

        Hekate.State state()
        Returns the current state of Hekate instance that this service belongs to.
        Returns:
        State.
      • cluster

        ClusterContext cluster()
        Returns cluster context.
        Returns:
        Cluster context.
      • localNode

        ClusterNode localNode()
        Returns the cluster node.
        Returns:
        Cluster node.
      • hekate

        Hekate hekate()
        Returns the Hekate instance that this service belongs to.
        Returns:
        Hekate instance that this service belongs to.
      • rejoin

        void rejoin()
        Instructs local node to asynchronously terminate and rejoin to the cluster.
      • terminate

        void terminate()
        Triggers asynchronous termination of the local node.
      • terminate

        void terminate​(Throwable e)
        Triggers asynchronous termination of the local node with the specified error..
        Parameters:
        e - Cause of termination.
      • metrics

        io.micrometer.core.instrument.MeterRegistry metrics()
        Returns metrics registry.
        Returns:
        Metrics registry.