@Override public String getRequestEmrClusterName(Object stepRequest) { return ((EmrHadoopJarStepAddRequest) stepRequest).getEmrClusterName(); }
@Override public String getRequestEmrClusterName(Object stepRequest) { return ((EmrHadoopJarStepAddRequest) stepRequest).getEmrClusterName(); }
@Override public Object buildResponseFromRequest(Object stepRequest) { EmrHadoopJarStepAddRequest emrHadoopJarStepAddRequest = (EmrHadoopJarStepAddRequest) stepRequest; EmrHadoopJarStep step = new EmrHadoopJarStep(); step.setNamespace(emrHadoopJarStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrHadoopJarStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrHadoopJarStepAddRequest.getEmrClusterName()); step.setStepName(emrHadoopJarStepAddRequest.getStepName().trim()); step.setJarLocation(emrHadoopJarStepAddRequest.getJarLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); if (emrHadoopJarStepAddRequest.getMainClass() != null) { step.setMainClass(emrHadoopJarStepAddRequest.getMainClass().trim()); } // Add the script arguments if (!CollectionUtils.isEmpty(emrHadoopJarStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrHadoopJarStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrHadoopJarStepAddRequest.isContinueOnError()); return step; }
@Override public Object buildResponseFromRequest(Object stepRequest) { EmrHadoopJarStepAddRequest emrHadoopJarStepAddRequest = (EmrHadoopJarStepAddRequest) stepRequest; EmrHadoopJarStep step = new EmrHadoopJarStep(); step.setNamespace(emrHadoopJarStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrHadoopJarStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrHadoopJarStepAddRequest.getEmrClusterName()); step.setStepName(emrHadoopJarStepAddRequest.getStepName().trim()); step.setJarLocation(emrHadoopJarStepAddRequest.getJarLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); if (emrHadoopJarStepAddRequest.getMainClass() != null) { step.setMainClass(emrHadoopJarStepAddRequest.getMainClass().trim()); } // Add the script arguments if (!CollectionUtils.isEmpty(emrHadoopJarStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrHadoopJarStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrHadoopJarStepAddRequest.isContinueOnError()); return step; }
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);