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

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


    @Override
    public void process(Request request, TreeNode<Resource> resultNode, String href) {
      if (resultNode.getObject().getType() == Resource.Type.ConfigGroup) {

        Resource r = resultNode.getObject();
        Schema schema = ClusterControllerHelper.getClusterController().getSchema(r.getType());
        Object clusterId = r.getPropertyValue(schema.getKeyPropertyId
          (Resource.Type.Cluster));

        Map<String, Object> configGroup = r.getPropertiesMap().get("ConfigGroup");
        String partialUrl = href.substring(0, href.indexOf("/clusters/")
          + "/clusters/".length()) + clusterId;
View Full Code Here

TOP

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

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.