Class AgentDetails

java.lang.Object
org.jolokia.server.core.service.api.AgentDetails

public class AgentDetails extends Object
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
  • Constructor Details

  • Method Details

    • updateAgentParameters

      public void updateAgentParameters(String pUrl, Boolean pSecured)
      Update agent connection data
      Parameters:
      pUrl - connection URL
      pSecured - whether the connection is secured or not
    • setUrl

      public void setUrl(String url)
    • setSecured

      public void setSecured(Boolean pSecured)
    • 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

      public String 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

      public String toString()
      Overrides:
      toString in class Object