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

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


              break;
            }
          }

          if (!contains) {
            HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
            newEntity.setClusterId(desiredStateEntity.getClusterId());
            newEntity.setServiceName(desiredStateEntity.getServiceName());
            newEntity.setComponentName(desiredStateEntity.getComponentName());
            newEntity.setHostName(desiredStateEntity.getHostName());
            newEntity.setConfigType(entry.getKey());
            newEntity.setVersionTag(entry.getValue().getVersionTag());
            newEntity.setTimestamp(new Date().getTime());
            newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
            desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
            hostComponentDesiredConfigMappingDAO.create(newEntity);
          }

          this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
View Full Code Here


            break;
          }
        }

        if (!contains) {
          HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
          newEntity.setClusterId(desiredStateEntity.getClusterId());
          newEntity.setServiceName(desiredStateEntity.getServiceName());
          newEntity.setComponentName(desiredStateEntity.getComponentName());
          newEntity.setHostName(desiredStateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue().getVersionTag());
          newEntity.setTimestamp(new Date().getTime());
          newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
          desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
        }

        this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
      }
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
          newEntity.setClusterId(desiredStateEntity.getClusterId());
          newEntity.setServiceName(desiredStateEntity.getServiceName());
          newEntity.setComponentName(desiredStateEntity.getComponentName());
          newEntity.setHostName(desiredStateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue().getVersionTag());
          newEntity.setTimestamp(new Date().getTime());
          newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
          desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
        }

        this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
      }
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
          newEntity.setClusterId(desiredStateEntity.getClusterId());
          newEntity.setServiceName(desiredStateEntity.getServiceName());
          newEntity.setComponentName(desiredStateEntity.getComponentName());
          newEntity.setHostName(desiredStateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue().getVersionTag());
          newEntity.setTimestamp(new Date().getTime());
          newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
          desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
        }

        this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
      }
View Full Code Here

            break;
          }
        }

        if (!contains) {
          HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
          newEntity.setClusterId(desiredStateEntity.getClusterId());
          newEntity.setServiceName(desiredStateEntity.getServiceName());
          newEntity.setComponentName(desiredStateEntity.getComponentName());
          newEntity.setHostName(desiredStateEntity.getHostName());
          newEntity.setConfigType(entry.getKey());
          newEntity.setVersionTag(entry.getValue().getVersionTag());
          newEntity.setTimestamp(new Date().getTime());
          newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
          desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
        }

        this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
      }
View Full Code Here

              break;
            }
          }

          if (!contains) {
            HostComponentDesiredConfigMappingEntity newEntity = new HostComponentDesiredConfigMappingEntity();
            newEntity.setClusterId(desiredStateEntity.getClusterId());
            newEntity.setServiceName(desiredStateEntity.getServiceName());
            newEntity.setComponentName(desiredStateEntity.getComponentName());
            newEntity.setHostName(desiredStateEntity.getHostName());
            newEntity.setConfigType(entry.getKey());
            newEntity.setVersionTag(entry.getValue().getVersionTag());
            newEntity.setTimestamp(new Date().getTime());
            newEntity.setHostComponentDesiredStateEntity(desiredStateEntity);
            desiredStateEntity.getHostComponentDesiredConfigMappingEntities().add(newEntity);
            hostComponentDesiredConfigMappingDAO.create(newEntity);
          }

          this.desiredConfigs.put(entry.getKey(), entry.getValue().getVersionTag());
View Full Code Here

TOP

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

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.