org.d_haven.mpool
Class ManagePoolsCommand

java.lang.Object
  extended byorg.d_haven.mpool.ManagePoolsCommand
All Implemented Interfaces:
org.d_haven.event.command.Command, org.d_haven.event.command.DelayedCommand, org.d_haven.event.command.RepeatedCommand

public class ManagePoolsCommand
extends java.lang.Object
implements org.d_haven.event.command.RepeatedCommand

The ManagePoolsCommand will manage a set of pools using the same set of parameters. These parameters are "good enough" parameters, and are only meant as a starting point. Eventually we will provide a mechanism to customize everything.


Constructor Summary
ManagePoolsCommand(java.util.List pools)
          Create the ManagePoolsCommand with the supplied list of pools.
 
Method Summary
 void execute()
           
 long getDelayInterval()
           
 int getNumberOfRepeats()
           
 long getRepeatInterval()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagePoolsCommand

public ManagePoolsCommand(java.util.List pools)
Create the ManagePoolsCommand with the supplied list of pools. The command will use the list of pools as is so that any additions and removals from the list is handled correctly.

Parameters:
pools - the list of pools to manage
Method Detail

getDelayInterval

public long getDelayInterval()
Specified by:
getDelayInterval in interface org.d_haven.event.command.DelayedCommand

getRepeatInterval

public long getRepeatInterval()
Specified by:
getRepeatInterval in interface org.d_haven.event.command.RepeatedCommand

getNumberOfRepeats

public int getNumberOfRepeats()
Specified by:
getNumberOfRepeats in interface org.d_haven.event.command.RepeatedCommand

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface org.d_haven.event.command.Command
Throws:
java.lang.Exception

toString

public java.lang.String toString()


Copyright © 2004-2007 D-Haven.org. All Rights Reserved.