net.sourceforge.basher.events
Class ThreadRemovedEvent

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

public class ThreadRemovedEvent
extends BasherEvent

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ThreadRemovedEvent(String name, int currentNumberThreads)
           
 
Method Summary
 boolean equals(Object o)
           
 int getCurrentNumberThreads()
          Retrieves the current number of threads running after the new thread was removed
 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

ThreadRemovedEvent

public ThreadRemovedEvent(String name,
                          int currentNumberThreads)
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 removed

Returns:
The number of threads now running

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.