net.sourceforge.basher.events
Class ThreadAddedEvent
java.lang.Object
java.util.EventObject
net.sourceforge.basher.events.BasherEvent
net.sourceforge.basher.events.ThreadAddedEvent
- All Implemented Interfaces:
- Serializable
public class ThreadAddedEvent
- extends BasherEvent
- Version:
- $Revision$
- Author:
- Johan Lindquist
- See Also:
- Serialized Form
ThreadAddedEvent
public ThreadAddedEvent(String name,
int currentNumberThreads,
BasherContext basherContext)
- Parameters:
name
- currentNumberThreads
- basherContext
-
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.