@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; }
theJarLocation = this.getJarLocation(); strategy.appendField(locator, this, "jarLocation", buffer, theJarLocation, (this.jarLocation!= null));
lhsJarLocation = this.getJarLocation(); String rhsJarLocation; rhsJarLocation = that.getJarLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "jarLocation", lhsJarLocation), LocatorUtils.property(thatLocator, "jarLocation", rhsJarLocation), lhsJarLocation, rhsJarLocation, (this.jarLocation!= null), (that.jarLocation!= null))) { return false;
lhsJarLocation = this.getJarLocation(); String rhsJarLocation; rhsJarLocation = that.getJarLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "jarLocation", lhsJarLocation), LocatorUtils.property(thatLocator, "jarLocation", rhsJarLocation), lhsJarLocation, rhsJarLocation, (this.jarLocation!= null), (that.jarLocation!= null))) { return false;
lhsJarLocation = this.getJarLocation(); String rhsJarLocation; rhsJarLocation = that.getJarLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "jarLocation", lhsJarLocation), LocatorUtils.property(thatLocator, "jarLocation", rhsJarLocation), lhsJarLocation, rhsJarLocation, (this.jarLocation!= null), (that.jarLocation!= null))) { return false;
theJarLocation = this.getJarLocation(); strategy.appendField(locator, this, "jarLocation", buffer, theJarLocation, (this.jarLocation!= null));
theJarLocation = this.getJarLocation(); strategy.appendField(locator, this, "jarLocation", buffer, theJarLocation, (this.jarLocation!= null));
theJarLocation = this.getJarLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jarLocation", theJarLocation), currentHashCode, theJarLocation, (this.jarLocation!= null));
theJarLocation = this.getJarLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jarLocation", theJarLocation), currentHashCode, theJarLocation, (this.jarLocation!= null));
theJarLocation = this.getJarLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jarLocation", theJarLocation), currentHashCode, theJarLocation, (this.jarLocation!= null));
if (jarLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceJarLocation; sourceJarLocation = this.getJarLocation(); String copyJarLocation = ((String) strategy.copy(LocatorUtils.property(locator, "jarLocation", sourceJarLocation), sourceJarLocation, (this.jarLocation!= null))); copy.setJarLocation(copyJarLocation);
if (jarLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceJarLocation; sourceJarLocation = this.getJarLocation(); String copyJarLocation = ((String) strategy.copy(LocatorUtils.property(locator, "jarLocation", sourceJarLocation), sourceJarLocation, (this.jarLocation!= null))); copy.setJarLocation(copyJarLocation);
if (jarLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceJarLocation; sourceJarLocation = this.getJarLocation(); String copyJarLocation = ((String) strategy.copy(LocatorUtils.property(locator, "jarLocation", sourceJarLocation), sourceJarLocation, (this.jarLocation!= null))); copy.setJarLocation(copyJarLocation);