@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; }
lhsMainClass = this.getMainClass(); String rhsMainClass; rhsMainClass = that.getMainClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mainClass", lhsMainClass), LocatorUtils.property(thatLocator, "mainClass", rhsMainClass), lhsMainClass, rhsMainClass, (this.mainClass!= null), (that.mainClass!= null))) { return false;
theMainClass = this.getMainClass(); strategy.appendField(locator, this, "mainClass", buffer, theMainClass, (this.mainClass!= null));
lhsMainClass = this.getMainClass(); String rhsMainClass; rhsMainClass = that.getMainClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mainClass", lhsMainClass), LocatorUtils.property(thatLocator, "mainClass", rhsMainClass), lhsMainClass, rhsMainClass, (this.mainClass!= null), (that.mainClass!= null))) { return false;
theMainClass = this.getMainClass(); strategy.appendField(locator, this, "mainClass", buffer, theMainClass, (this.mainClass!= null));
lhsMainClass = this.getMainClass(); String rhsMainClass; rhsMainClass = that.getMainClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mainClass", lhsMainClass), LocatorUtils.property(thatLocator, "mainClass", rhsMainClass), lhsMainClass, rhsMainClass, (this.mainClass!= null), (that.mainClass!= null))) { return false;
theMainClass = this.getMainClass(); strategy.appendField(locator, this, "mainClass", buffer, theMainClass, (this.mainClass!= null));
theMainClass = this.getMainClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mainClass", theMainClass), currentHashCode, theMainClass, (this.mainClass!= null));
theMainClass = this.getMainClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mainClass", theMainClass), currentHashCode, theMainClass, (this.mainClass!= null));
theMainClass = this.getMainClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mainClass", theMainClass), currentHashCode, theMainClass, (this.mainClass!= null));
if (mainClassShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMainClass; sourceMainClass = this.getMainClass(); String copyMainClass = ((String) strategy.copy(LocatorUtils.property(locator, "mainClass", sourceMainClass), sourceMainClass, (this.mainClass!= null))); copy.setMainClass(copyMainClass);
if (mainClassShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMainClass; sourceMainClass = this.getMainClass(); String copyMainClass = ((String) strategy.copy(LocatorUtils.property(locator, "mainClass", sourceMainClass), sourceMainClass, (this.mainClass!= null))); copy.setMainClass(copyMainClass);
if (mainClassShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMainClass; sourceMainClass = this.getMainClass(); String copyMainClass = ((String) strategy.copy(LocatorUtils.property(locator, "mainClass", sourceMainClass), sourceMainClass, (this.mainClass!= null))); copy.setMainClass(copyMainClass);