@HandlerInput(name="PropertyName", type=String.class, required=true)},
output={
@HandlerOutput(name="InstancesList", type=java.util.List.class) })
public static void getInstancevalues(HandlerContext handlerCtx) {
String configName = (String) handlerCtx.getInputValue("ConfigName");
ConfigConfig config = AMXUtil.getDomainConfig().getConfigConfigMap().get(configName);
String propName = (String) handlerCtx.getInputValue("PropertyName");
Vector instances = getReferencedInstances(configName);
List data = new ArrayList();
for(int i=0; i<instances.size(); i++){
HashMap oneRow = new HashMap();
ServerConfig servConfig = (ServerConfig)instances.get(i);
String name = servConfig.getName();
String propValue = ""; //NOI18N
if(Arrays.asList(servConfig.getSystemPropertyNames()).contains(propName)){
propValue = servConfig.getSystemPropertyValue(propName);
}
if(servConfig instanceof ClusteredServerConfig){
ClusteredServerConfig conf = (ClusteredServerConfig)servConfig;
String clusterName = getClusterForServer(name);
oneRow.put("clusterName", clusterName);
oneRow.put("isCluster", true);
} else {
oneRow.put("clusterName", "");
oneRow.put("isCluster", false);
}
oneRow.put("name", name);
oneRow.put("value", propValue);
oneRow.put("defaultValue", config.getSystemPropertyValue(propName));
data.add(oneRow);
}
handlerCtx.setOutputValue("InstancesList", data);
}