edu.sc.seis.sod
Class AbstractEventPair

java.lang.Object
  extended by edu.sc.seis.sod.WaveformWorkUnit
      extended by edu.sc.seis.sod.AbstractEventPair
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
CookieEventPair, EventNetworkPair

public abstract class AbstractEventPair
extends WaveformWorkUnit


Field Summary
 
Fields inherited from class edu.sc.seis.sod.WaveformWorkUnit
dbid, failLogger, lastQuery, numRetries
 
Constructor Summary
protected AbstractEventPair()
          for hibernate
  AbstractEventPair(StatefulEvent event)
           
  AbstractEventPair(StatefulEvent event, Status status)
           
 
Method Summary
 StatefulEvent getEvent()
           
 int getEventDbId()
           
 Status getStatus()
           
protected  void setEvent(StatefulEvent e)
          for use by hibernate
protected  void setStatus(Status status)
           
abstract  void update(Status status)
          sets the status on this event channel pair to be status and notifies its parent
 void update(java.lang.Throwable e, Status status)
           
 
Methods inherited from class edu.sc.seis.sod.WaveformWorkUnit
equals, getDbid, getLastQuery, getNumRetries, hashCode, setDbid, setLastQuery, setNumRetries, updateRetries
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

AbstractEventPair

protected AbstractEventPair()
for hibernate


AbstractEventPair

public AbstractEventPair(StatefulEvent event)

AbstractEventPair

public AbstractEventPair(StatefulEvent event,
                         Status status)
Method Detail

update

public void update(java.lang.Throwable e,
                   Status status)

update

public abstract void update(Status status)
sets the status on this event channel pair to be status and notifies its parent


getEventDbId

public int getEventDbId()

getStatus

public Status getStatus()

setStatus

protected void setStatus(Status status)

getEvent

public StatefulEvent getEvent()

setEvent

protected void setEvent(StatefulEvent e)
for use by hibernate