public class ManagePoolsCommand
extends java.lang.Object
implements org.d_haven.event.command.RepeatedCommand
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_MAX |
private static long |
DELAY_INTERVAL |
private int |
m_grow |
private int |
m_max |
private int |
m_min |
private java.util.List |
m_pools |
| Constructor and Description |
|---|
ManagePoolsCommand(java.util.List pools)
Create the ManagePoolsCommand with the supplied list of pools.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
long |
getDelayInterval() |
int |
getNumberOfRepeats() |
long |
getRepeatInterval() |
java.lang.String |
toString() |
private static final long DELAY_INTERVAL
private static final int DEFAULT_MAX
private final java.util.List m_pools
private final int m_min
private final int m_max
private final int m_grow
public ManagePoolsCommand(java.util.List pools)
pools - the list of pools to managepublic long getDelayInterval()
getDelayInterval in interface org.d_haven.event.command.DelayedCommandpublic long getRepeatInterval()
getRepeatInterval in interface org.d_haven.event.command.RepeatedCommandpublic int getNumberOfRepeats()
getNumberOfRepeats in interface org.d_haven.event.command.RepeatedCommandpublic void execute()
throws java.lang.Exception
execute in interface org.d_haven.event.command.Commandjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object