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.
|
AgentInformation |
getAgentInformation(HostRef agentRef)
Get information about a specific agent.
|
List<AgentInformation> |
getAliveAgents()
Get information about all alive agents.
|
List<AgentInformation> |
getAllAgentInformation()
Get information about all known agents.
|
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.AgentInformation getAgentInformation(HostRef agentRef)
AgentInformation
describing information about the agent
indicated by agentRef
. null
if no information about the
agent could be located.void addAgentInformation(AgentInformation agentInfo)
void updateAgentInformation(AgentInformation agentInfo)
void removeAgentInformation(AgentInformation agentInfo)
Copyright © 2016. All rights reserved.