Class AgentDetails
java.lang.Object
org.jolokia.server.core.service.api.AgentDetails
Agent details describing this agent. This information during
discovery of the agent. This object is mutable so that since
the information is possible collected peu-a-peu through various
channels.
- Since:
- 31.01.14
- Author:
- roland
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum holding the possible values for the discovery request/response. -
Constructor Summary
ConstructorsConstructorDescriptionAgentDetails(String pAgentId) AgentDetails(Map<AgentDetails.AgentDetailProperty, Object> pMsgData) Constructor used when the input has been parsedAgentDetails(Configuration pConfig, ServerHandle pServerHandle) -
Method Summary
Modifier and TypeMethodDescriptionGet the ID specific for these agentbooleanCheck if either url or security information is missing.booleanbooleanvoidseal()Seal this details so that no further updates are possiblevoidsetSecured(Boolean pSecured) voidorg.json.simple.JSONObjectGet the details as JSON ObjecttoString()voidupdateAgentParameters(String pUrl, Boolean pSecured) Update agent connection data
-
Constructor Details
-
AgentDetails
-
AgentDetails
-
AgentDetails
Constructor used when the input has been parsed- Parameters:
pMsgData- data send via multicast
-
-
Method Details
-
updateAgentParameters
Update agent connection data- Parameters:
pUrl- connection URLpSecured- whether the connection is secured or not
-
setUrl
-
setSecured
-
isInitRequired
public boolean isInitRequired()Check if either url or security information is missing.- Returns:
- true if url or security information is missing and the initialization has not already be done
-
isUrlMissing
public boolean isUrlMissing() -
isSecuredMissing
public boolean isSecuredMissing() -
seal
public void seal()Seal this details so that no further updates are possible -
getAgentId
Get the ID specific for these agent- Returns:
- unique id identifying this agent or null if no ID was given.
-
toJSONObject
public org.json.simple.JSONObject toJSONObject()Get the details as JSON Object- Returns:
- the details JSON object
-
toString
-