|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hyperic.hq.autoinventory.ScanConfigurationCore
public class ScanConfigurationCore
This class just encapsulates the "raw data" part of the scan configuration, without any utility methods or other flim-flam. It exists to make it easy to move scan configurations across SOAP and other network transports.
| Constructor Summary | |
|---|---|
ScanConfigurationCore()
|
|
| Method Summary | |
|---|---|
void |
addScanMethodConfig(ScanMethod method,
org.hyperic.util.config.ConfigResponse configResponse)
|
static ScanConfigurationCore |
decode(String data)
|
static ScanConfigurationCore |
deserialize(byte[] data)
|
String |
encode()
|
boolean |
equals(Object o)
|
ScanMethodConfig |
findScanMethodConfig(ScanMethod method)
|
ScanMethodConfig |
findScanMethodConfig(String methodClass)
|
static ScanConfigurationCore |
fromAgentRemoteValue(String keyName,
org.hyperic.hq.agent.AgentRemoteValue arv)
Read the contents of an AgentRemoteValue object and create a scan configuration. |
org.hyperic.util.config.ConfigResponse |
getConfigResponse()
|
ScanMethodConfig[] |
getScanMethodConfigs()
Get the scan method configs to use in this scan. |
ServerSignature[] |
getServerSignatures()
Get the server signatures to scan for in this scan. |
byte[] |
serialize()
|
void |
setConfigResponse(org.hyperic.util.config.ConfigResponse configResponse)
|
void |
setScanMethodConfigs(ScanMethodConfig[] configs)
Set the scan method configs to use in this scan. |
void |
setServerSignatures(ScanMethodConfig[] configs)
Set the scan method configurations for this scan. |
void |
setServerSignatures(ServerSignature[] serverSigs)
Set the server signatures to scan for in this scan. |
void |
toAgentRemoteValue(String keyName,
org.hyperic.hq.agent.AgentRemoteValue arv)
Write the contents of this scan configuration to an AgentRemoteValue object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScanConfigurationCore()
| Method Detail |
|---|
public ScanMethodConfig[] getScanMethodConfigs()
public void setScanMethodConfigs(ScanMethodConfig[] configs)
configs - An array of ScanMethodConfig objects.
public void addScanMethodConfig(ScanMethod method,
org.hyperic.util.config.ConfigResponse configResponse)
public void setServerSignatures(ScanMethodConfig[] configs)
serverTypes - An array of ScanMethodConfig objects.public ServerSignature[] getServerSignatures()
public void setServerSignatures(ServerSignature[] serverSigs)
serverTypes - An array of ServerSignature objects indicating
which server types to scan for.public ScanMethodConfig findScanMethodConfig(ScanMethod method)
public ScanMethodConfig findScanMethodConfig(String methodClass)
public byte[] serialize()
throws AutoinventoryException
AutoinventoryException
public String encode()
throws AutoinventoryException
AutoinventoryException
public static ScanConfigurationCore deserialize(byte[] data)
throws AutoinventoryException
AutoinventoryException
public static ScanConfigurationCore decode(String data)
throws AutoinventoryException
AutoinventoryException
public void toAgentRemoteValue(String keyName,
org.hyperic.hq.agent.AgentRemoteValue arv)
throws AutoinventoryException
keyName - The key name to use when populating the
AgentRemoteValue with data.arv - The AgentRemoteValue to write.
AutoinventoryException - If a problem occurs populating
the AgentRemoteValue with data.
public static ScanConfigurationCore fromAgentRemoteValue(String keyName,
org.hyperic.hq.agent.AgentRemoteValue arv)
throws AutoinventoryException
keyName - The key name to use when reading data from the
AgentRemoteValue.arv - The AgentRemoteValue to read.
AutoinventoryException - If a problem occurs reading
data from the AgentRemoteValue.public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic org.hyperic.util.config.ConfigResponse getConfigResponse()
public void setConfigResponse(org.hyperic.util.config.ConfigResponse configResponse)
|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||