Examples of DQPManagementView


Examples of org.teiid.rhq.admin.DQPManagementView

  }

  @Override
  public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> requests) throws Exception {

    DQPManagementView view = new DQPManagementView();

    Map<String, Object> valueMap = new HashMap<String, Object>();

    try {
      for (MeasurementScheduleRequest request : requests) {
        String name = request.getName();
        LOG.debug("Measurement name = " + name); //$NON-NLS-1$

        // Initialize any parameters to be used in the retrieval of
        // metric values

        Object metric = view.getMetric(getConnection(),
            getComponentType(), this.getComponentIdentifier(),
            name, valueMap);

        if (metric instanceof Double) {
          report.addData(new MeasurementDataNumeric(request, (Double) metric));
View Full Code Here

Examples of org.teiid.rhq.admin.DQPManagementView

  }

  protected void execute(final ProfileServiceConnection connection,
      final ExecutedResult result, final Map<String, Object> valueMap) {
    DQPManagementView dqp = new DQPManagementView();

    try {
      dqp.executeOperation(connection, result, valueMap);
    } catch (Exception e) {
      new RuntimeException(e);
    }

  }
View Full Code Here

Examples of org.teiid.rhq.admin.DQPManagementView

  @Override
  public void getValues(MeasurementReport report,
      Set<MeasurementScheduleRequest> requests) throws Exception {

    DQPManagementView view = new DQPManagementView();

    Map<String, Object> valueMap = new HashMap<String, Object>();
    setMetricArguments(VDB.NAME, null, valueMap);

    for (MeasurementScheduleRequest request : requests) {
      String name = request.getName();
      LOG.debug("Measurement name = " + name); //$NON-NLS-1$

      Object metricReturnObject = view.getMetric(getConnection(),
          getComponentType(), this.getComponentIdentifier(), name,
          valueMap);

      try {
        if (request.getName().equals(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.