blob: b5312a6ab06a2d6d65df94d41f6555254acaf014 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.falcon.rerun.event;
/**
* Event representing a retry.
*/
public class RetryEvent extends RerunEvent {
private int attempts;
private int failRetryCount;
//SUSPEND CHECKSTYLE CHECK ParameterNumberCheck
public RetryEvent(String clusterName, String wfId, long msgInsertTime,
long delay, String entityType, String entityName, String instance,
int runId, int attempts, int failRetryCount, String workflowUser) {
super(clusterName, wfId, msgInsertTime, delay, entityType, entityName,
instance, runId, workflowUser);
this.attempts = attempts;
this.failRetryCount = failRetryCount;
}
//RESUME CHECKSTYLE CHECK ParameterNumberCheck
public int getAttempts() {
return attempts;
}
public int getFailRetryCount() {
return failRetryCount;
}
public void setFailRetryCount(int failRetryCount) {
this.failRetryCount = failRetryCount;
}
@Override
public String toString() {
return "clusterName=" + clusterName + SEP + "wfId=" + wfId + SEP
+ "msgInsertTime=" + msgInsertTime + SEP + "delayInMilliSec="
+ delayInMilliSec + SEP + "entityType=" + entityType + SEP
+ "entityName=" + entityName + SEP + "instance=" + instance
+ SEP + "runId=" + runId + SEP + "attempts=" + attempts + SEP
+ "failRetryCount=" + failRetryCount + SEP + "workflowUser=" + workflowUser;
}
}