org.apache.falcon.rerun.event
Class RerunEvent

java.lang.Object
  extended by org.apache.falcon.rerun.event.RerunEvent
All Implemented Interfaces:
Comparable<Delayed>, Delayed
Direct Known Subclasses:
LaterunEvent, RetryEvent

public class RerunEvent
extends Object
implements Delayed

Event representing a rerun.


Nested Class Summary
static class RerunEvent.RerunType
          Rerun Event type.
 
Field Summary
protected  String clusterName
           
protected  long delayInMilliSec
           
protected  String entityName
           
protected  String entityType
           
protected  String instance
           
protected  long msgInsertTime
           
protected  int runId
           
protected static String SEP
           
protected  String wfId
           
 
Constructor Summary
RerunEvent(String clusterName, String wfId, long msgInsertTime, long delay, String entityType, String entityName, String instance, int runId)
           
 
Method Summary
 int compareTo(Delayed o)
           
 String getClusterName()
           
 long getDelay(TimeUnit unit)
           
 long getDelayInMilliSec()
           
 String getEntityName()
           
 String getEntityType()
           
 String getInstance()
           
 long getMsgInsertTime()
           
 int getRunId()
           
 RerunEvent.RerunType getType()
           
 String getWfId()
           
 void setMsgInsertTime(long msgInsertTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEP

protected static final String SEP
See Also:
Constant Field Values

clusterName

protected String clusterName

wfId

protected String wfId

msgInsertTime

protected long msgInsertTime

delayInMilliSec

protected long delayInMilliSec

entityType

protected String entityType

entityName

protected String entityName

instance

protected String instance

runId

protected int runId
Constructor Detail

RerunEvent

public RerunEvent(String clusterName,
                  String wfId,
                  long msgInsertTime,
                  long delay,
                  String entityType,
                  String entityName,
                  String instance,
                  int runId)
Method Detail

getClusterName

public String getClusterName()

getWfId

public String getWfId()

getDelayInMilliSec

public long getDelayInMilliSec()

getEntityName

public String getEntityName()

getInstance

public String getInstance()

getRunId

public int getRunId()

getEntityType

public String getEntityType()

compareTo

public int compareTo(Delayed o)
Specified by:
compareTo in interface Comparable<Delayed>

getDelay

public long getDelay(TimeUnit unit)
Specified by:
getDelay in interface Delayed

getMsgInsertTime

public long getMsgInsertTime()

setMsgInsertTime

public void setMsgInsertTime(long msgInsertTime)

getType

public RerunEvent.RerunType getType()


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.