Modifier and Type | Field and Description |
---|---|
static Key<Boolean> |
ALIVE_KEY |
static Category<AgentInformation> |
CATEGORY |
static Key<String> |
CONFIG_LISTEN_ADDRESS |
static Key<Long> |
START_TIME_KEY |
static Key<Long> |
STOP_TIME_KEY |
Modifier and Type | Method and Description |
---|---|
void |
addAgentInformation(AgentInformation agentInfo)
Publish information about agent into the storage.
|
Set<AgentId> |
getAgentIds() |
AgentInformation |
getAgentInformation(AgentId agentId)
Get information about a specific agent.
|
AgentInformation |
getAgentInformation(HostRef agentRef)
Deprecated.
|
Set<AgentId> |
getAliveAgentIds() |
List<AgentInformation> |
getAliveAgents()
Get information about all alive agents.
|
List<AgentInformation> |
getAllAgentInformation()
Get information about all known agents.
|
boolean |
isAlive(AgentId agentId) |
void |
removeAgentInformation(AgentInformation agentInfo)
Remove information about an agent that was published to storage.
|
void |
updateAgentInformation(AgentInformation agentInfo)
Update information about an existing agent.
|
static final Category<AgentInformation> CATEGORY
List<AgentInformation> getAllAgentInformation()
List
of AgentInformation
for all agents
who have published their information. Will be empty if there is no
information.List<AgentInformation> getAliveAgents()
List
of AgentInformation
for all alive
agents who have published their information. Will be empty if there
is no information or no alive agents.@Deprecated AgentInformation getAgentInformation(HostRef agentRef)
AgentInformation
describing information about the agent
indicated by agentRef
. null
if no information about the
agent could be located.AgentInformation getAgentInformation(AgentId agentId)
AgentInformation
describing information about the agent
indicated by agentId
. null
if no information about the
agent could be located.Set<AgentId> getAliveAgentIds()
void addAgentInformation(AgentInformation agentInfo)
void updateAgentInformation(AgentInformation agentInfo)
void removeAgentInformation(AgentInformation agentInfo)
boolean isAlive(AgentId agentId)
Copyright © 2017. All rights reserved.