Package org.apache.ambari.view.pig.utils

Examples of org.apache.ambari.view.pig.utils.ServiceFormattedException


    try {
      final String property = "test.smoke.property";
      context.putInstanceData(property, "42");
      boolean status = context.getInstanceData(property).equals("42");
      context.removeInstanceData(property);
      if (!status) throw new ServiceFormattedException("Ambari Views instance data DB doesn't work properly", null);
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.ambari.view.pig.utils.ServiceFormattedException

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.