Configuration pluginConfig = this.context.getPluginConfiguration();
pluginConfig.put(new PropertySimple("type", "service"));
for (MeasurementScheduleRequest request : requests) {
String metricName = request.getName();
if (metricName.equals(MEP)) {
EmsAttribute attribute = getEmsBean().getAttribute(MEP);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(LIFECYCLE_STATE)) {
EmsAttribute attribute = getEmsBean().getAttribute(LIFECYCLE_STATE);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(MAX_THREADS)) {
EmsAttribute attribute = getEmsBean().getAttribute(MAX_THREADS);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(START_DATE)) {
EmsAttribute attribute = getEmsBean().getAttribute(START_DATE);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(SERVICE_CATEGORY)) {
EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_CATEGORY);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(SERVICE_NAME)) {
EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_NAME);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
} else if (metricName.equals(SERVICE_DESCRIPTION)) {
EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_DESCRIPTION);
String processed = new String();
if (attribute != null) {
processed = (String) attribute.refresh();
}
report.addData(new MeasurementDataTrait(request, processed));
}
}
}