net.stamfest.rrd
Class RRDCommandPool

java.lang.Object
  extended by net.stamfest.rrd.RRDCommandPool
All Implemented Interfaces:
RRDCommand

public class RRDCommandPool
extends Object
implements RRDCommand


Constructor Summary
RRDCommandPool(int poolsize, RRDCommandFactory factory)
           
RRDCommandPool(int poolsize, String basedir, String cachedAddress)
           
RRDCommandPool(String basedir, String cachedAddress)
           
 
Method Summary
 CommandResult command(String[] cmd)
           
 void done(RRDCommand cmd)
           
 void finish()
           
 RRDCommand getConnection()
           
 RRDCommandFactory getFactory()
           
 int getMaxRequestsPerMember()
           
 int getPoolsize()
           
 void setFactory(RRDCommandFactory factory)
           
 void setMaxRequestsPerMember(int maxRequestsPerMember)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RRDCommandPool

public RRDCommandPool(String basedir,
                      String cachedAddress)

RRDCommandPool

public RRDCommandPool(int poolsize,
                      String basedir,
                      String cachedAddress)

RRDCommandPool

public RRDCommandPool(int poolsize,
                      RRDCommandFactory factory)
Method Detail

getConnection

public RRDCommand getConnection()
                         throws Exception
Throws:
Exception

done

public void done(RRDCommand cmd)

command

public CommandResult command(String[] cmd)
                      throws Exception
Specified by:
command in interface RRDCommand
Throws:
Exception

getMaxRequestsPerMember

public int getMaxRequestsPerMember()

setMaxRequestsPerMember

public void setMaxRequestsPerMember(int maxRequestsPerMember)

getPoolsize

public int getPoolsize()

finish

public void finish()
Specified by:
finish in interface RRDCommand

getFactory

public RRDCommandFactory getFactory()

setFactory

public void setFactory(RRDCommandFactory factory)


Copyright © 2010-2013. All Rights Reserved.