Interface AgentHeartBeatService


public interface AgentHeartBeatService
Service that maintains an active connection with a Genie server node by sending heart beats. The agent messages are tagged with the job id this agent claimed and is executing.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the agent is currently connected to a Genie node server.
    void
    start(@NotBlank String claimedJobId)
    Starts the service.
    void
    Stop the service.
  • Method Details

    • start

      void start(@NotBlank @NotBlank String claimedJobId)
      Starts the service.
      Parameters:
      claimedJobId - the job id claimed by this agent
    • stop

      void stop()
      Stop the service.
    • isConnected

      boolean isConnected()
      Whether the agent is currently connected to a Genie node server.
      Returns:
      true if the agent has an active, working connection with a Genie server node.