Oracle Containers for J2EE Job Scheduler Java API Reference
10g Release 3 (10.1.3)

B16026-01

oracle.ias.scheduler.event
Class JobExecutionFailedEvent

java.lang.Object
  extended byoracle.ias.scheduler.event.SchedulerEvent
      extended byoracle.ias.scheduler.event.RestartEvent
          extended byoracle.ias.scheduler.event.JobExecutionEvent
              extended byoracle.ias.scheduler.event.JobExecutionFailedEvent
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public final class JobExecutionFailedEvent
extends JobExecutionEvent
implements java.io.Externalizable

This event is raised every time a job execution fails.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.ias.scheduler.event.JobExecutionEvent
m_beginTime, m_endTime, m_id
 
Fields inherited from class oracle.ias.scheduler.event.RestartEvent
m_replay, m_retry
 
Fields inherited from class oracle.ias.scheduler.event.SchedulerEvent
m_source, m_timestamp
 
Constructor Summary
JobExecutionFailedEvent()
           
JobExecutionFailedEvent(JobHandle job, long begin, long end, boolean isReplay, boolean isRetry, java.lang.Exception cause)
          Initializes a newly created JobFailedEvent with the job handle, execution begin time, execution end time, and cause specified.
 
Method Summary
 boolean equals(java.lang.Object v)
           
 java.lang.Exception getCause()
          Returns the cause for the execution failure.
static int getVersion()
          Internal use only.
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
          Restores the contents of this object from the stream specified.
 void writeExternal(java.io.ObjectOutput out)
          Saves the contents of this object to the stream specified.
 
Methods inherited from class oracle.ias.scheduler.event.JobExecutionEvent
getBeginTime, getElapsedTime, getEndTime, getId
 
Methods inherited from class oracle.ias.scheduler.event.RestartEvent
isReplay, isRetry
 
Methods inherited from class oracle.ias.scheduler.event.SchedulerEvent
getHandle, getSource, getTimestamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobExecutionFailedEvent

public JobExecutionFailedEvent(JobHandle job,
                               long begin,
                               long end,
                               boolean isReplay,
                               boolean isRetry,
                               java.lang.Exception cause)
                        throws java.lang.IllegalArgumentException
Initializes a newly created JobFailedEvent with the job handle, execution begin time, execution end time, and cause specified.

Parameters:
job - the job whose execution failed
begin - start time in milliseconds since epoch UTC
end - end time in milliseconds since epoch UTC
isReplay - whether this execution is a result of a replay
isRetry - whether this execution is a result of a retry
cause - the cause of the failure
Throws:
java.lang.IllegalArgumentException - if isReplay and isRetry each evaluate to true for this event instance

JobExecutionFailedEvent

public JobExecutionFailedEvent()
Method Detail

getCause

public java.lang.Exception getCause()
Returns the cause for the execution failure.

Returns:
cause of exception

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Saves the contents of this object to the stream specified.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Restores the contents of this object from the stream specified.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

equals

public boolean equals(java.lang.Object v)
Overrides:
equals in class JobExecutionEvent

hashCode

public int hashCode()
Overrides:
hashCode in class JobExecutionEvent

getVersion

public static int getVersion()
Internal use only.


Oracle Containers for J2EE Job Scheduler Java API Reference
10g Release 3 (10.1.3)

B16026-01

Copyright © 2006, Oracle. All rights reserved.