public class AgentDetails extends Object
Constructor and Description |
---|
AgentDetails(Configuration pConfig) |
AgentDetails(Map<AbstractDiscoveryMessage.Payload,Object> pMsgData)
Constructor used when the input has been parsed
|
AgentDetails(String pAgentId) |
Modifier and Type | Method and Description |
---|---|
String |
getAgentId()
Get the ID specific for these agent
|
boolean |
isInitRequired()
Check if either url or security information is missing.
|
boolean |
isSecuredMissing() |
boolean |
isUrlMissing() |
void |
seal()
Seal this details so that no further updates are possible
|
void |
setSecured(Boolean pSecured) |
void |
setServerInfo(String pVendor,
String pProduct,
String pVersion)
Single method for updating the server information when the server has been detected
|
void |
setUrl(String pUrl) |
JSONObject |
toJSONObject()
Get the details as JSON Object
|
String |
toString() |
public AgentDetails(String pAgentId)
public AgentDetails(Configuration pConfig)
public AgentDetails(Map<AbstractDiscoveryMessage.Payload,Object> pMsgData)
pMsgData
- data send via multicastpublic void setServerInfo(String pVendor, String pProduct, String pVersion)
pVendor
- vendor of the deteted containerpProduct
- name of the containedpVersion
- server version (not Jolokia's version!)public void setUrl(String pUrl)
public void setSecured(Boolean pSecured)
public boolean isInitRequired()
public boolean isUrlMissing()
public boolean isSecuredMissing()
public void seal()
public String getAgentId()
public JSONObject toJSONObject()
Copyright © 2017. All rights reserved.