Package org.apache.ambari.server.orm.entities

Examples of org.apache.ambari.server.orm.entities.ConfigGroupHostMappingEntityPK


    try {
      if (hosts.containsKey(hostname)) {
        LOG.info("Removing host from config group, hostname = " + hostname);
        hosts.remove(hostname);
        try {
          ConfigGroupHostMappingEntityPK hostMappingEntityPK = new
            ConfigGroupHostMappingEntityPK();
          hostMappingEntityPK.setHostname(hostname);
          hostMappingEntityPK.setConfigGroupId(configGroupEntity.getGroupId());
          configGroupHostMappingDAO.removeByPK(hostMappingEntityPK);
        } catch (Exception e) {
          LOG.error("Failed to delete config group host mapping"
            + ", clusterName = " + getClusterName()
            + ", id = " + getId()
View Full Code Here


    try {
      if (hosts.containsKey(hostname)) {
        LOG.info("Removing host from config group, hostname = " + hostname);
        hosts.remove(hostname);
        try {
          ConfigGroupHostMappingEntityPK hostMappingEntityPK = new
            ConfigGroupHostMappingEntityPK();
          hostMappingEntityPK.setHostname(hostname);
          hostMappingEntityPK.setConfigGroupId(configGroupEntity.getGroupId());
          configGroupHostMappingDAO.removeByPK(hostMappingEntityPK);
        } catch (Exception e) {
          LOG.error("Failed to delete config group host mapping"
            + ", clusterName = " + getClusterName()
            + ", id = " + getId()
View Full Code Here

    try {
      if (hosts.containsKey(hostname)) {
        LOG.info("Removing host from config group, hostname = " + hostname);
        hosts.remove(hostname);
        try {
          ConfigGroupHostMappingEntityPK hostMappingEntityPK = new
            ConfigGroupHostMappingEntityPK();
          hostMappingEntityPK.setHostname(hostname);
          hostMappingEntityPK.setConfigGroupId(configGroupEntity.getGroupId());
          configGroupHostMappingDAO.removeByPK(hostMappingEntityPK);
        } catch (Exception e) {
          LOG.error("Failed to delete config group host mapping"
            + ", clusterName = " + getClusterName()
            + ", id = " + getId()
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.orm.entities.ConfigGroupHostMappingEntityPK

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.