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

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


              break;
            }
          }

          if (!contains) {
            HostComponentConfigMappingEntity newEntity =
                new HostComponentConfigMappingEntity();
            newEntity.setClusterId(stateEntity.getClusterId());
            newEntity.setServiceName(stateEntity.getServiceName());
            newEntity.setComponentName(stateEntity.getComponentName());
            newEntity.setHostName(stateEntity.getHostName());
            newEntity.setConfigType(entry.getKey());
            newEntity.setVersionTag(entry.getValue());
            newEntity.setTimestamp(now);

            if (LOG.isDebugEnabled()) {
              LOG.debug("Adding new live config to ServiceComponentHost"
                  + ", clusterId=" + stateEntity.getClusterId()
                  + ", serviceName=" + stateEntity.getServiceName()
                  + ", componentName=" + stateEntity.getComponentName()
                  + ", hostname=" + stateEntity.getHostName()
                  + ", configType=" + entry.getKey()
                  + ", configVersionTag=" + entry.getValue());
            }
            stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
            newEntity.setHostComponentStateEntity(stateEntity);
            hostComponentConfigMappingDAO.create(newEntity);
          }
        }

        if (!deletedTypes.isEmpty()) {
View Full Code Here


            break;
          }
        }

        if (!contains) {
          HostComponentConfigMappingEntity newEntity =
              new HostComponentConfigMappingEntity();
          newEntity.setClusterId(stateEntity.getClusterId());
          newEntity.setServiceName(stateEntity.getServiceName());
          newEntity.setComponentName(stateEntity.getComponentName());
          newEntity.setHostName(stateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue());
          newEntity.setTimestamp(now);

          if (LOG.isDebugEnabled()) {
            LOG.debug("Adding new live config to ServiceComponentHost"
                + ", clusterId=" + stateEntity.getClusterId()
                + ", serviceName=" + stateEntity.getServiceName()
                + ", componentName=" + stateEntity.getComponentName()
                + ", hostname=" + stateEntity.getHostName()
                + ", configType=" + entry.getKey()
                + ", configVersionTag=" + entry.getValue());
          }
          stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
          newEntity.setHostComponentStateEntity(stateEntity);

        }
      }

      if (!deletedTypes.isEmpty()) {
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentConfigMappingEntity newEntity =
              new HostComponentConfigMappingEntity();
          newEntity.setClusterId(stateEntity.getClusterId());
          newEntity.setServiceName(stateEntity.getServiceName());
          newEntity.setComponentName(stateEntity.getComponentName());
          newEntity.setHostName(stateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue());
          newEntity.setTimestamp(now);

          if (LOG.isDebugEnabled()) {
            LOG.debug("Adding new live config to ServiceComponentHost"
                + ", clusterId=" + stateEntity.getClusterId()
                + ", serviceName=" + stateEntity.getServiceName()
                + ", componentName=" + stateEntity.getComponentName()
                + ", hostname=" + stateEntity.getHostName()
                + ", configType=" + entry.getKey()
                + ", configVersionTag=" + entry.getValue());
          }
          stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
          newEntity.setHostComponentStateEntity(stateEntity);

        }
      }

      if (!deletedTypes.isEmpty()) {
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentConfigMappingEntity newEntity =
              new HostComponentConfigMappingEntity();
          newEntity.setClusterId(stateEntity.getClusterId());
          newEntity.setServiceName(stateEntity.getServiceName());
          newEntity.setComponentName(stateEntity.getComponentName());
          newEntity.setHostName(stateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue());
          newEntity.setTimestamp(now);

          if (LOG.isDebugEnabled()) {
            LOG.debug("Adding new live config to ServiceComponentHost"
                + ", clusterId=" + stateEntity.getClusterId()
                + ", serviceName=" + stateEntity.getServiceName()
                + ", componentName=" + stateEntity.getComponentName()
                + ", hostname=" + stateEntity.getHostName()
                + ", configType=" + entry.getKey()
                + ", configVersionTag=" + entry.getValue());
          }
          stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
          newEntity.setHostComponentStateEntity(stateEntity);

        }
      }

      if (!deletedTypes.isEmpty()) {
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentConfigMappingEntity newEntity =
              new HostComponentConfigMappingEntity();
          newEntity.setClusterId(stateEntity.getClusterId());
          newEntity.setServiceName(stateEntity.getServiceName());
          newEntity.setComponentName(stateEntity.getComponentName());
          newEntity.setHostName(stateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue());
          newEntity.setTimestamp(now);

          if (LOG.isDebugEnabled()) {
            LOG.debug("Adding new live config to ServiceComponentHost"
                + ", clusterId=" + stateEntity.getClusterId()
                + ", serviceName=" + stateEntity.getServiceName()
                + ", componentName=" + stateEntity.getComponentName()
                + ", hostname=" + stateEntity.getHostName()
                + ", configType=" + entry.getKey()
                + ", configVersionTag=" + entry.getValue());
          }
          stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
          newEntity.setHostComponentStateEntity(stateEntity);

        }
      }

      if (!deletedTypes.isEmpty()) {
View Full Code Here

              break;
            }
          }

          if (!contains) {
            HostComponentConfigMappingEntity newEntity =
                new HostComponentConfigMappingEntity();
            newEntity.setClusterId(stateEntity.getClusterId());
            newEntity.setServiceName(stateEntity.getServiceName());
            newEntity.setComponentName(stateEntity.getComponentName());
            newEntity.setHostName(stateEntity.getHostName());
            newEntity.setConfigType(entry.getKey());
            newEntity.setVersionTag(entry.getValue());
            newEntity.setTimestamp(now);

            if (LOG.isDebugEnabled()) {
              LOG.debug("Adding new live config to ServiceComponentHost"
                  + ", clusterId=" + stateEntity.getClusterId()
                  + ", serviceName=" + stateEntity.getServiceName()
                  + ", componentName=" + stateEntity.getComponentName()
                  + ", hostname=" + stateEntity.getHostName()
                  + ", configType=" + entry.getKey()
                  + ", configVersionTag=" + entry.getValue());
            }
            stateEntity.getHostComponentConfigMappingEntities().add(newEntity);
            newEntity.setHostComponentStateEntity(stateEntity);
            hostComponentConfigMappingDAO.create(newEntity);
          }
        }

        if (!deletedTypes.isEmpty()) {
View Full Code Here

TOP

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

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.