@Validated
public interface AgentConnectionPersistenceService
| Modifier and Type | Method and Description |
|---|---|
long |
getNumAgentConnectionsOnServer(@NotBlank java.lang.String hostname)
Get the number of active agent connections on Genie server with the given
hostname. |
java.util.Optional<java.lang.String> |
lookupAgentConnectionServer(@NotBlank java.lang.String jobId)
Lookup the hostname/address of the server with an active connection to a given agent.
|
void |
removeAgentConnection(@NotBlank java.lang.String jobId,
@NotBlank java.lang.String hostname)
Remove an existing connection currently active from the given agent to the local node.
|
void |
saveAgentConnection(@NotBlank java.lang.String jobId,
@NotBlank java.lang.String hostname)
Store a new connection currently active from the given agent to the given node.
|
void saveAgentConnection(@NotBlank
@NotBlank java.lang.String jobId,
@NotBlank
@NotBlank java.lang.String hostname)
jobId - the id of a job the agent is runninghostname - the server owning the connectionvoid removeAgentConnection(@NotBlank
@NotBlank java.lang.String jobId,
@NotBlank
@NotBlank java.lang.String hostname)
jobId - the id of a job the agent is runninghostname - the hostname expected to be associated to the connectionjava.util.Optional<java.lang.String> lookupAgentConnectionServer(@NotBlank
@NotBlank java.lang.String jobId)
jobId - the id of a job the agent is runninglong getNumAgentConnectionsOnServer(@NotBlank
@NotBlank java.lang.String hostname)
hostname.hostname - The server hostname to get the count for