@Override public String getRequestStepName(Object stepRequest) { return ((EmrHadoopJarStepAddRequest) stepRequest).getStepName(); }
@Override public String getRequestStepName(Object stepRequest) { return ((EmrHadoopJarStepAddRequest) stepRequest).getStepName(); }
@Override public void validateAddStepRequest(Object step) { EmrHadoopJarStepAddRequest hadoopJarStep = (EmrHadoopJarStepAddRequest) step; validateStepName(hadoopJarStep.getStepName()); validateJarLocation(hadoopJarStep.getJarLocation()); }
@Override public void validateAddStepRequest(Object step) { EmrHadoopJarStepAddRequest hadoopJarStep = (EmrHadoopJarStepAddRequest) step; validateStepName(hadoopJarStep.getStepName()); validateJarLocation(hadoopJarStep.getJarLocation()); }
@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; }
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);