Package org.platformlayer.metrics.model

Examples of org.platformlayer.metrics.model.MetricInfoCollection


  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = getContext().pathToItem(getProject(), path);

    MetricInfoCollection items = client.listMetrics(key);

    return items;
  }
View Full Code Here


  @Override
  public MetricInfoCollection listMetrics(PlatformLayerKey key) throws PlatformLayerClientException {
    String relativePath = buildRelativePath(key) + "/metrics";

    String retval = doRequest(HttpMethod.GET, relativePath, String.class, Format.XML, null, null);
    MetricInfoCollection items;
    try {
      items = JaxbHelper.deserializeXmlObject(retval, MetricInfoCollection.class);
    } catch (UnmarshalException e) {
      throw new PlatformLayerClientException("Error parsing returned data", e);
    }
View Full Code Here

      }
    }
  }

  public static MetricInfoCollection toMetricInfo(MetricConfig metricConfig) {
    MetricInfoCollection metricInfo = new MetricInfoCollection();

    populateMetricInfo(metricInfo, "", metricConfig);

    return metricInfo;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.metrics.model.MetricInfoCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.