Package org.apache.ambari.view

Examples of org.apache.ambari.view.SystemException


    String units = properties.get("units");

    try {
      return getResource(resourceId, units, propertyIds);
    } catch (IOException e) {
      throw new SystemException("Can't get city resource " + resourceId + ".", e);
    }
  }
View Full Code Here


    for (String city : cities) {
      try {
        resources.add(getResource(city, units, request.getPropertyIds()));
      } catch (IOException e) {
        throw new SystemException("Can't get city resource " + city + ".", e);
      }
    }
    return resources;
  }
View Full Code Here

          removeUndeployedViews();
        }
      }
      return allInstanceDefinitions;
    } catch (Exception e) {
      throw new SystemException("Caught exception reading view archives.", e);
    }
  }
View Full Code Here

      WebAppContext context = new WebAppContext(viewDefinition.getArchive(), viewInstanceDefinition.getContextPath());
      context.setClassLoader(viewDefinition.getClassLoader());
      context.setAttribute(ViewContext.CONTEXT_ATTRIBUTE, new ViewContextImpl(viewInstanceDefinition, this));
      return context;
    } catch (Exception e) {
      throw new SystemException("Can't get application context for view " +
          viewInstanceDefinition.getViewEntity().getCommonName() + ".", e);
    }
  }
View Full Code Here

    try {
      sliderController.deleteSliderApp(resourceId);
      return true;
    } catch (YarnException e) {
      logger.warn("Unable to delete Slider app with id " + resourceId, e);
      throw new SystemException(e.getMessage(), e);
    } catch (IOException e) {
      logger.warn("Unable to delete Slider app with id " + resourceId, e);
      throw new SystemException(e.getMessage(), e);
    }
  }
View Full Code Here

      if (sliderApp == null)
        throw new NoSuchResourceException(resourceId);
      return sliderApp;
    } catch (YarnException e) {
      logger.warn("Unable to determine Slider app with id " + resourceId, e);
      throw new SystemException(e.getMessage(), e);
    } catch (IOException e) {
      logger.warn("Unable to determine Slider app with id " + resourceId, e);
      throw new SystemException(e.getMessage(), e);
    }
  }
View Full Code Here

          .getPropertyIds());
      for (SliderApp app : sliderApps)
        appSet.add(app);
    } catch (YarnException e) {
      logger.warn("Unable to determine Slider apps", e);
      throw new SystemException(e.getMessage(), e);
    } catch (IOException e) {
      logger.warn("Unable to determine Slider apps", e);
      throw new SystemException(e.getMessage(), e);
    }
    return appSet;
  }
View Full Code Here

          instanceDefinitions.addAll(persistViews());
        }
      }
      return instanceDefinitions;
    } catch (Exception e) {
      throw new SystemException("Caught exception reading view archives.", e);
    }
  }
View Full Code Here

      WebAppContext context = new WebAppContext(viewDefinition.getArchive(), viewInstanceDefinition.getContextPath());
      context.setClassLoader(viewDefinition.getClassLoader());
      context.setAttribute(ViewContext.CONTEXT_ATTRIBUTE, new ViewContextImpl(viewInstanceDefinition, this));
      return context;
    } catch (Exception e) {
      throw new SystemException("Can't get application context for view " +
          viewInstanceDefinition.getViewEntity().getCommonName() + ".", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.ambari.view.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.