public static ContainerSpecification createContainerSpec(Configuration configuration, Configuration dynamicProperties) throws Exception { // generate a container spec which conveys the artifacts/vars needed to launch a TM ContainerSpecification spec = new ContainerSpecification(); // propagate the AM dynamic configuration to the TM spec.getDynamicConfiguration().addAll(dynamicProperties); applyOverlays(configuration, spec); return spec; }
@Override protected Object clone() throws CloneNotSupportedException { ContainerSpecification clone = new ContainerSpecification(); clone.artifacts.addAll(this.artifacts); clone.environmentVariables.putAll(this.environmentVariables); clone.systemProperties.addAll(this.systemProperties); clone.dynamicConfiguration.addAll(this.dynamicConfiguration); return clone; }
@Override protected Object clone() throws CloneNotSupportedException { ContainerSpecification clone = new ContainerSpecification(); clone.artifacts.addAll(this.artifacts); clone.environmentVariables.putAll(this.environmentVariables); clone.systemProperties.addAll(this.systemProperties); clone.dynamicConfiguration.addAll(this.dynamicConfiguration); return clone; }
@Override protected Object clone() throws CloneNotSupportedException { ContainerSpecification clone = new ContainerSpecification(); clone.artifacts.addAll(this.artifacts); clone.environmentVariables.putAll(this.environmentVariables); clone.systemProperties.addAll(this.systemProperties); clone.dynamicConfiguration.addAll(this.dynamicConfiguration); return clone; }
@Override protected Object clone() throws CloneNotSupportedException { ContainerSpecification clone = new ContainerSpecification(); clone.artifacts.addAll(this.artifacts); clone.environmentVariables.putAll(this.environmentVariables); clone.systemProperties.addAll(this.systemProperties); clone.dynamicConfiguration.addAll(this.dynamicConfiguration); return clone; }