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

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


    String msg = logException(throwable);

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


        pp.populateResources(resources, request, predicate);
      }

    } catch (Exception e) {
      e.printStackTrace();
      throw new SystemException("Error loading deferred resources", e);
    }
   
    return resources;
  }
View Full Code Here

    String msg = logException(throwable);

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

  @Override
  public RequestStatus createResources(Request request) throws SystemException,
      UnsupportedPropertyException, ResourceAlreadyExistsException,
      NoSuchParentResourceException {
    throw new SystemException(READ_ONLY_MSG, null);
  }
View Full Code Here

  @Override
  public Set<Resource> getResources(Request request, Predicate predicate)
      throws SystemException, UnsupportedPropertyException,
      NoSuchResourceException, NoSuchParentResourceException {
    throw new SystemException(READ_ONLY_MSG, null);
  }
View Full Code Here

  @Override
  public RequestStatus updateResources(Request request, Predicate predicate)
      throws SystemException, UnsupportedPropertyException,
      NoSuchResourceException, NoSuchParentResourceException {
     throw new SystemException(READ_ONLY_MSG, null);
  }
View Full Code Here

  @Override
  public RequestStatus deleteResources(Predicate predicate)
      throws SystemException, UnsupportedPropertyException,
      NoSuchResourceException, NoSuchParentResourceException {
    throw new SystemException(READ_ONLY_MSG, null);
  }
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);
    }

    for (String id : ids) {
      Map<String, PropertyInfo> propertyInfoMap = getPropertyInfoMap(componentName, id);
View Full Code Here

          results.add(new DataPoint(rs.getLong("RecordTimeStamp"), parsedNumber));
        }
      }
    } catch (SQLException e) {
      throw new SystemException("Error during getMetric call : caught exception - ", e);
    }
    return results;
  }
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.