Package org.apache.ambari.server.controller.spi

Examples of org.apache.ambari.server.controller.spi.SystemException


        } catch (org.apache.ambari.view.NoSuchResourceException e) {
          throw new NoSuchParentResourceException(e.getMessage(), e);
        } catch (org.apache.ambari.view.UnsupportedPropertyException e) {
          throw new UnsupportedPropertyException(getResourceType(e), e.getPropertyIds());
        } catch (Exception e) {
          throw new SystemException(e.getMessage(), e);
        }
      }
    }
    return new RequestStatusImpl(null);
  }
View Full Code Here


      } catch (org.apache.ambari.view.NoSuchResourceException e) {
        throw new NoSuchParentResourceException(e.getMessage(), e);
      } catch (org.apache.ambari.view.UnsupportedPropertyException e) {
        throw new UnsupportedPropertyException(getResourceType(e), e.getPropertyIds());
      } catch (Exception e) {
        throw new SystemException(e.getMessage(), e);
      }
    }
    return new RequestStatusImpl(null);
  }
View Full Code Here

          }
        });
       
        return results;
      } catch (Exception e) {
        throw new SystemException("Error reading HTTP response for cluster " + clusterName +
            ", nagios=" + url + " (" + e.getMessage() + ")", e);
      } finally {
        if (in != null) {
          try {
            in.close();
View Full Code Here

      if (hostname.equalsIgnoreCase("localhost")) {
        return InetAddress.getLocalHost().getCanonicalHostName();
      }
      return InetAddress.getByName(hostname).getCanonicalHostName();
    } catch (Exception e) {
      throw new SystemException("Error getting hostname.", e);
    }
  }
View Full Code Here

      if (hostname.equalsIgnoreCase("localhost")) {
        return InetAddress.getLocalHost().getHostAddress();
      }
      return InetAddress.getByName(hostname).getHostAddress();
    } catch (Exception e) {
      throw new SystemException("Error getting ip address.", e);
    }
  }
View Full Code Here

      }
    } catch (SQLException e) {
      if (LOG.isErrorEnabled()) {
        LOG.error("Error during populateResources call : caught exception", e);
      }
      throw new SystemException("Error during populateResources call : caught exception", e);
    }
    return keepers;
  }
View Full Code Here

    String clusterName = (String) resource.getPropertyValue(clusterNamePropertyId);
    String hostName    = getHost(resource, clusterName, componentName);

    if (hostName == null) {
      throw new SystemException(
          "Unable to get metrics.  No host name for " + componentName, null);
    }

    Set<MetricDefinition> metricsDefinitionSet = new HashSet<MetricDefinition>();
    for (String id : ids) {
View Full Code Here

            results.put(metricDefinition, dataPoints);
          }
        }
      }
    } catch (SQLException e) {
      throw new SystemException("Error during getMetric call : caught exception - ", e);
    }
    return results;
  }
View Full Code Here

    String msg = logException(throwable);

    if (throwable instanceof SystemException) {
      throw (SystemException) throwable;
    }
    throw new SystemException (msg, throwable);
 
View Full Code Here

      if (hostname.equalsIgnoreCase("localhost")) {
        return InetAddress.getLocalHost().getCanonicalHostName();
      }
      return InetAddress.getByName(hostname).getCanonicalHostName();
    } catch (Exception e) {
      throw new SystemException("Error getting hostname.", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.spi.SystemException

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.