public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); strategy.appendField(locator, this, "creationTime", buffer, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); strategy.appendField(locator, this, "readyTime", buffer, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); strategy.appendField(locator, this, "endTime", buffer, theEndTime, (this.endTime!= null)); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); strategy.appendField(locator, this, "creationTime", buffer, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); strategy.appendField(locator, this, "readyTime", buffer, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); strategy.appendField(locator, this, "endTime", buffer, theEndTime, (this.endTime!= null)); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); strategy.appendField(locator, this, "creationTime", buffer, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); strategy.appendField(locator, this, "readyTime", buffer, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); strategy.appendField(locator, this, "endTime", buffer, theEndTime, (this.endTime!= null)); } return buffer; }
lhsEndTime = this.getEndTime(); XMLGregorianCalendar rhsEndTime; rhsEndTime = that.getEndTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "endTime", lhsEndTime), LocatorUtils.property(thatLocator, "endTime", rhsEndTime), lhsEndTime, rhsEndTime, (this.endTime!= null), (that.endTime!= null))) { return false;
lhsEndTime = this.getEndTime(); XMLGregorianCalendar rhsEndTime; rhsEndTime = that.getEndTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "endTime", lhsEndTime), LocatorUtils.property(thatLocator, "endTime", rhsEndTime), lhsEndTime, rhsEndTime, (this.endTime!= null), (that.endTime!= null))) { return false;
lhsEndTime = this.getEndTime(); XMLGregorianCalendar rhsEndTime; rhsEndTime = that.getEndTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "endTime", lhsEndTime), LocatorUtils.property(thatLocator, "endTime", rhsEndTime), lhsEndTime, rhsEndTime, (this.endTime!= null), (that.endTime!= null))) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationTime", theCreationTime), currentHashCode, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readyTime", theReadyTime), currentHashCode, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endTime", theEndTime), currentHashCode, theEndTime, (this.endTime!= null)); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationTime", theCreationTime), currentHashCode, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readyTime", theReadyTime), currentHashCode, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endTime", theEndTime), currentHashCode, theEndTime, (this.endTime!= null)); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { XMLGregorianCalendar theCreationTime; theCreationTime = this.getCreationTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationTime", theCreationTime), currentHashCode, theCreationTime, (this.creationTime!= null)); } { XMLGregorianCalendar theReadyTime; theReadyTime = this.getReadyTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readyTime", theReadyTime), currentHashCode, theReadyTime, (this.readyTime!= null)); } { XMLGregorianCalendar theEndTime; theEndTime = this.getEndTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endTime", theEndTime), currentHashCode, theEndTime, (this.endTime!= null)); } return currentHashCode; }
@Override public ListClustersResult listEmrClusters(AmazonElasticMapReduceClient emrClient, ListClustersRequest listClustersRequest) { List<ClusterSummary> clusterSummaryList = new ArrayList<>(); for (MockEmrJobFlow cluster : emrClusters.values()) { if (!listClustersRequest.getClusterStates().isEmpty() && listClustersRequest.getClusterStates().contains(cluster.getStatus())) { ClusterSummary clusterSummary = new ClusterSummary(); clusterSummary.withId(cluster.getJobFlowId()).withName(cluster.getJobFlowName()).withStatus(new ClusterStatus().withState(cluster.getStatus()) .withStateChangeReason(new ClusterStateChangeReason().withCode(cluster.getStatusChangeReason().getCode()) .withMessage(cluster.getStatusChangeReason().getMessage())).withTimeline(new ClusterTimeline().withCreationDateTime( cluster.getStatusTimeline().getCreationTime() != null ? cluster.getStatusTimeline().getCreationTime().toGregorianCalendar().getTime() : null).withEndDateTime( cluster.getStatusTimeline().getEndTime() != null ? cluster.getStatusTimeline().getEndTime().toGregorianCalendar().getTime() : null) .withReadyDateTime( cluster.getStatusTimeline().getReadyTime() != null ? cluster.getStatusTimeline().getReadyTime().toGregorianCalendar().getTime() : null))); clusterSummaryList.add(clusterSummary); } } if (StringUtils.isBlank(listClustersRequest.getMarker())) { return new ListClustersResult().withClusters(clusterSummaryList).withMarker(MOCK_EMR_MAKER); } else { return new ListClustersResult().withClusters(clusterSummaryList); } }
@Override public DescribeClusterResult describeClusterRequest(AmazonElasticMapReduceClient emrClient, DescribeClusterRequest describeClusterRequest) { if (describeClusterRequest.getClusterId().equalsIgnoreCase(MockAwsOperationsHelper.AMAZON_SERVICE_EXCEPTION)) { throw new AmazonServiceException(MockAwsOperationsHelper.AMAZON_SERVICE_EXCEPTION); } MockEmrJobFlow cluster = getClusterById(describeClusterRequest.getClusterId()); if (cluster != null) { return new DescribeClusterResult().withCluster(new Cluster().withId(cluster.getJobFlowId()).withName(cluster.getJobFlowName()).withStatus( new ClusterStatus().withState(cluster.getStatus()).withStateChangeReason( new ClusterStateChangeReason().withCode(cluster.getStatusChangeReason().getCode()) .withMessage(cluster.getStatusChangeReason().getMessage())).withTimeline(new ClusterTimeline().withCreationDateTime( cluster.getStatusTimeline().getCreationTime() != null ? cluster.getStatusTimeline().getCreationTime().toGregorianCalendar().getTime() : null).withEndDateTime( cluster.getStatusTimeline().getEndTime() != null ? cluster.getStatusTimeline().getEndTime().toGregorianCalendar().getTime() : null) .withReadyDateTime( cluster.getStatusTimeline().getReadyTime() != null ? cluster.getStatusTimeline().getReadyTime().toGregorianCalendar().getTime() : null)))); } else { return null; } }
if (endTimeShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceEndTime; sourceEndTime = this.getEndTime(); XMLGregorianCalendar copyEndTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "endTime", sourceEndTime), sourceEndTime, (this.endTime!= null))); copy.setEndTime(copyEndTime);
if (endTimeShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceEndTime; sourceEndTime = this.getEndTime(); XMLGregorianCalendar copyEndTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "endTime", sourceEndTime), sourceEndTime, (this.endTime!= null))); copy.setEndTime(copyEndTime);
if (endTimeShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceEndTime; sourceEndTime = this.getEndTime(); XMLGregorianCalendar copyEndTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "endTime", sourceEndTime), sourceEndTime, (this.endTime!= null))); copy.setEndTime(copyEndTime);
setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_CREATION_TIME, emrCluster.getStatusTimeline().getCreationTime()); setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_READY_TIME, emrCluster.getStatusTimeline().getReadyTime()); setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_END_TIME, emrCluster.getStatusTimeline().getEndTime());
setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_CREATION_TIME, emrCluster.getStatusTimeline().getCreationTime()); setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_READY_TIME, emrCluster.getStatusTimeline().getReadyTime()); setTaskWorkflowVariable(execution, VARIABLE_EMR_CLUSTER_END_TIME, emrCluster.getStatusTimeline().getEndTime());