Examples of MetricUnreachableException


Examples of org.hyperic.hq.product.MetricUnreachableException

      if (result.iterator().hasNext()) {
        return result.iterator().next().getCanonicalName();
      }
    } catch (IOException e) {
      log.debug(MSG_ERR_CONNECT, e);
      throw new MetricUnreachableException(MSG_ERR_CONNECT, e);
    } catch (Exception e) {
      log.debug(MSG_ERR_UNEXPECTED, e);
      throw new PluginException(MSG_ERR_UNEXPECTED, e);
    } finally {
      // it's null-proof
View Full Code Here

Examples of org.hyperic.hq.product.MetricUnreachableException

      } else if (o instanceof Number) {
        Number n = (Number) o;
        return new MetricValue(n);
      }
    } catch (IOException e) {
      throw new MetricUnreachableException("Error during communication with remote MBean Server.", e);
    } catch (Exception e) {
      throw new PluginException(e);
    }
   
    throw new MetricInvalidException("Cannot parse value of metric " + metric.toString());
View Full Code Here

Examples of org.hyperic.hq.product.MetricUnreachableException

      MetricNotFoundException {
    try {
      return TabularData.class.cast(connection.getAttribute(objName,
          attributeName));
    } catch (IOException e) {
      throw new MetricUnreachableException("Unable to get attribute value for " + objName + ":" + attributeName, e);
    } catch (Exception e) {
      throw new MetricNotFoundException("Unable to get attribute value for " + objName + ":" + attributeName, e);
    }
  }
View Full Code Here

Examples of org.hyperic.hq.product.MetricUnreachableException

      MetricNotFoundException {
    try {
      return TabularData.class.cast(connection.invoke(objName,
          operationName, null, null));
    } catch (IOException e) {
      throw new MetricUnreachableException("Unable to get operation return value for " + objName + "->" + operationName, e);
    } catch (Exception e) {
      throw new MetricNotFoundException("Unable to get operation return value for " + objName + "->" + operationName, e);
    }
  }
View Full Code Here

Examples of org.hyperic.hq.product.MetricUnreachableException

      updateBundlesData(conn);
      updateFeaturesData(conn);
      updateServicesData(conn);
    } catch (IOException e) {
      throw new MetricUnreachableException("Error during communication with remote MBean Server.", e);
    } catch (Exception e) {
      throw new PluginException("", e);
    } finally {
      // it's null-proof
      MxUtil.close(jmxConnector);
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.