org.jwarp.service.threadpool
Class ThreadPoolEvent

java.lang.Object
  |
  +--org.jwarp.service.threadpool.ThreadPoolEvent

public class ThreadPoolEvent
extends java.lang.Object

This class is the event class for all work manager events.


Field Summary
(package private)  java.lang.String message
          The event message
(package private)  java.lang.String pool
          The pools's name
(package private)  RunStats stats
          RunStats
(package private)  long time
          Time of the event
 int TYPE_THREAD_ADDED
          Event type: New thread added.
 int TYPE_THREAD_CANCELLED
          Event type: thread cancelled.
 int TYPE_WORK_ADDED
          Event type: New work added.
 int TYPE_WORK_CANCELLED
          Event type: Work cancelled.
 int TYPE_WORK_ERROR
          Event type: Work finished execute due to an exception.
 int TYPE_WORK_FINISHED
          Event type: work successfully finished executing.
 int TYPE_WORK_STATS_ERROR
          Event type: Work stats not delivered (not available any more).
 int TYPE_WORK_STATS_OK
          Event type: Work stats delivered.
(package private)  int user
          The user's id
 
Constructor Summary
ThreadPoolEvent(java.lang.String message, java.lang.String pool, RunStats stats, int user, short type)
          Creates a new event.
 
Method Summary
 java.lang.String getMessage()
          Gets the events message.
 java.lang.String getPool()
          Returns the tools name.
 RunStats getRunStats()
          Returns the activity.
 long getTime()
          Gets the event time stamp in ms.
 int getUser()
          Returns the user.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_THREAD_ADDED

public final int TYPE_THREAD_ADDED
Event type: New thread added.

TYPE_THREAD_CANCELLED

public final int TYPE_THREAD_CANCELLED
Event type: thread cancelled.

TYPE_WORK_ADDED

public final int TYPE_WORK_ADDED
Event type: New work added.

TYPE_WORK_CANCELLED

public final int TYPE_WORK_CANCELLED
Event type: Work cancelled.

TYPE_WORK_FINISHED

public final int TYPE_WORK_FINISHED
Event type: work successfully finished executing.

TYPE_WORK_ERROR

public final int TYPE_WORK_ERROR
Event type: Work finished execute due to an exception.

TYPE_WORK_STATS_OK

public final int TYPE_WORK_STATS_OK
Event type: Work stats delivered.

TYPE_WORK_STATS_ERROR

public final int TYPE_WORK_STATS_ERROR
Event type: Work stats not delivered (not available any more).

time

long time
Time of the event

message

java.lang.String message
The event message

pool

java.lang.String pool
The pools's name

stats

RunStats stats
RunStats

user

int user
The user's id
Constructor Detail

ThreadPoolEvent

public ThreadPoolEvent(java.lang.String message,
                       java.lang.String pool,
                       RunStats stats,
                       int user,
                       short type)
Creates a new event.
Parameters:
message - The event message string.
tool - The pools's name
stats - The run stats
user - The user's id
type - The event type
Method Detail

getTime

public long getTime()
Gets the event time stamp in ms.
Returns:
The event time.

getMessage

public java.lang.String getMessage()
Gets the events message.
Returns:
The message

getPool

public java.lang.String getPool()
Returns the tools name.
Returns:
The tool name.

getRunStats

public RunStats getRunStats()
Returns the activity.
Returns:
The activity.

getUser

public int getUser()
Returns the user.
Returns:
The suer.

©   O R C A   S y s t e m s