|
JTR 5.0 API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjtr.pool.RunnerPool
public class RunnerPool
This class represents a pool of IRunner instances.
Only IRunnerParameterized instances are allowed to be added to
the pool, and once added they all become IRunnerPooled. Only
IRunnerPooled instances are elegible for execution.
| Constructor Summary | |
|---|---|
RunnerPool(IPoolManager poolManager)
Costructor. |
|
| Method Summary | |
|---|---|
IRunnerPooled |
add(IRunnerParameterized runner)
Adds an IRunnerParameterized to the current pool. |
IRunnerPooled[] |
addAll(IRunnerParameterized[] runners)
Adds a set of IRunnerParameterized to the current pool. |
IPoolManager |
getPoolManager()
Gets the IPoolManager in charge of managing this pool. |
IRunnerPooled |
remove(int index)
Removes the IRunnerPooled allocated at the provided index. |
IRunnerPooled[] |
removeAll()
Make the pool empty and returns all the removed entries. |
void |
setPoolManager(IPoolManager poolManager)
Sets the IPoolManager in charge of managing this pool. |
int |
size()
Returns the actual size of the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RunnerPool(IPoolManager poolManager)
poolManager - IPoolManager| Method Detail |
|---|
public IRunnerPooled add(IRunnerParameterized runner)
IRunnerParameterized to the current pool.
runner - IRunnerParameterized
public IRunnerPooled[] addAll(IRunnerParameterized[] runners)
IRunnerParameterized to the current pool.
runners - IRunnerParameterized[]
public IRunnerPooled remove(int index)
IRunnerPooled allocated at the provided index.
index - int
public IRunnerPooled[] removeAll()
public IPoolManager getPoolManager()
IPoolManager in charge of managing this pool.
public void setPoolManager(IPoolManager poolManager)
IPoolManager in charge of managing this pool.
poolManager - IPoolManagerpublic int size()
|
The JTR Project is licensed under GPL version 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||