Examples of HostComponentDesiredConfigMappingEntity


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

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);
        }

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

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);
        }

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

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);
        }

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

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);
        }

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

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
TOP
Copyright © 2018 www.massapi.com. 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.