net.sourceforge.basher.events
Class ThreadAddedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sourceforge.basher.events.BasherEvent
          extended by net.sourceforge.basher.events.ThreadAddedEvent
All Implemented Interfaces:
Serializable

public class ThreadAddedEvent
extends BasherEvent

Version:
$Revision$
Author:
Johan Lindquist
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ThreadAddedEvent(String name, int currentNumberThreads, BasherContext basherContext)
           
 
Method Summary
 boolean equals(Object o)
           
 BasherContext getBasherContext()
          Retrives the BasherContext currently running.
 int getCurrentNumberThreads()
          Retrieves the current number of threads running after the new thread was added
 String getName()
          Returns the name of the thread to stop
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.sourceforge.basher.events.BasherEvent
getCreationTime
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadAddedEvent

public ThreadAddedEvent(String name,
                        int currentNumberThreads,
                        BasherContext basherContext)
Parameters:
name -
currentNumberThreads -
basherContext -
Method Detail

getName

public String getName()
Returns the name of the thread to stop

Returns:
The name of the thread which should be stopped.

getCurrentNumberThreads

public int getCurrentNumberThreads()
Retrieves the current number of threads running after the new thread was added

Returns:
The number of threads now running

getBasherContext

public BasherContext getBasherContext()
Retrives the BasherContext currently running.

Returns:
The current Basher context

toString

public String toString()
Overrides:
toString in class BasherEvent

equals

public boolean equals(Object o)
Overrides:
equals in class BasherEvent

hashCode

public int hashCode()
Overrides:
hashCode in class BasherEvent


Copyright © 2006-2010 Basher Team. All Rights Reserved.