org.jppf.job
Enum JobEventType

java.lang.Object
  extended by java.lang.Enum<JobEventType>
      extended by org.jppf.job.JobEventType
All Implemented Interfaces:
Serializable, Comparable<JobEventType>

public enum JobEventType
extends Enum<JobEventType>

This enum describes the types of events emitted by a JPPFJobManager.

Author:
Laurent Cohen

Enum Constant Summary
JOB_DISPATCHED
          A sub-job was dispatched to a node.
JOB_ENDED
          A job was completed and sent back to the client.
JOB_QUEUED
          A new job was submmitted to the JPPF driver queue.
JOB_RETURNED
          A sub-job returned from a node.
JOB_UPDATED
          The current number of tasks in a job was updated.
 
Method Summary
static JobEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JobEventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JOB_QUEUED

public static final JobEventType JOB_QUEUED
A new job was submmitted to the JPPF driver queue.


JOB_ENDED

public static final JobEventType JOB_ENDED
A job was completed and sent back to the client.


JOB_DISPATCHED

public static final JobEventType JOB_DISPATCHED
A sub-job was dispatched to a node.


JOB_RETURNED

public static final JobEventType JOB_RETURNED
A sub-job returned from a node.


JOB_UPDATED

public static final JobEventType JOB_UPDATED
The current number of tasks in a job was updated.

Method Detail

values

public static JobEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JobEventType c : JobEventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JobEventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2005-2010 JPPF Team.