for (MeasurementScheduleRequest measurementScheduleRequest : measurementScheduleRequests)
{
if ("provider".equalsIgnoreCase(measurementScheduleRequest.getName()))
{
measurementReport.addData(new MeasurementDataTrait(measurementScheduleRequest, "HornetQ"));
}
else if ("started".equalsIgnoreCase(measurementScheduleRequest.getName()))
{
ManagementView managementView = getProfileService();
ManagedOperation operation = ManagementSupport.getOperation(managementView, "JMSServerMO", "isStarted", new ComponentType("JMSManage", "ServerManage"));
SimpleValueSupport support = (SimpleValueSupport) operation.invoke();
measurementReport.addData(new MeasurementDataTrait(measurementScheduleRequest, support.getValue().toString()));
}
}
}