Interface AgentHeartBeatService
-
public interface AgentHeartBeatServiceService 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisConnected()Whether the agent is currently connected to a Genie node server.voidstart(@NotBlank java.lang.String claimedJobId)Starts the service.voidstop()Stop the service.
-
-
-
Method Detail
-
start
void start(@NotBlank @NotBlank java.lang.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.
-
-