6.1

Table Of Contents
Parameters: key The name of the option to set.
value The value to set the option to.
Exceptions:
InvalidOptionException
Returned when the
ConfigResponse does not support
the specified option.
nvalidOptionValueException
Returned when the supplied value is
not valid for the specified option.
Example: Usage
private static final String PTQL_QUERY = "State.Name.ct=firefox";
public List getServerResources(ConfigResponse config) throws PluginException {
List servers = new ArrayList();
String installPath = "";
ConfigResponse productConfig = new ConfigResponse();
productConfig.setValue("process.query", PTQL_QUERY);
ServerResource server = createServerResource(installPath);
setProductConfig(server, productConfig);
server.setMeasurementConfig();
servers.add(server);
return servers;
}
Chapter 4 Plug-In Support Classes
VMware, Inc. 73