@Validated
public interface AgentRoutingService
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getHostnameForAgentConnection(@NotBlank java.lang.String jobId)
Look up the hostname of the Genie node currently handling the agent connection for a given job.
|
void |
handleClientConnected(@NotBlank java.lang.String jobId)
Handle a new agent connection.
|
void |
handleClientDisconnected(@NotBlank java.lang.String jobId)
Handle connected agent disconnection.
|
boolean |
isAgentConnectionLocal(@NotBlank java.lang.String jobId)
Tells wether the agent running a given job is connected to the local node.
|
java.util.Optional<java.lang.String> getHostnameForAgentConnection(@NotBlank @NotBlank java.lang.String jobId)
jobId
- the job idboolean isAgentConnectionLocal(@NotBlank @NotBlank java.lang.String jobId)
jobId
- the job idvoid handleClientConnected(@NotBlank @NotBlank java.lang.String jobId)
jobId
- the job id the connected agent is runningvoid handleClientDisconnected(@NotBlank @NotBlank java.lang.String jobId)
jobId
- the job id the disconnected agent is running