com.sun.faban.harness.engine
Class MemcachedService

java.lang.Object
  extended by com.sun.faban.harness.engine.MemcachedService

Deprecated.

@Deprecated
public final class MemcachedService
extends Object

This class implements the service to start/stop Memcached instances. It can be used by any benchmark to manage memcached servers and perform these operations remotely using this Service.

Author:
Shanti Subramanyam

Method Summary
static MemcachedService getHandle()
          Deprecated. Get the reference to the singleton object.
 boolean restartServers()
          Deprecated. Restart all servers.
 void setup(String[] serverMachines, int[] ports, String parameters, String binDir)
          Deprecated. The setup method is called to set up a benchmark run.
 void setup(String[] serverMachines, String binDir)
          Deprecated. The setup method is called to set up a benchmark run.
 boolean startServers()
          Deprecated. Start all memcached servers on configured hosts.
 boolean stopServers()
          Deprecated. stop Servers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHandle

public static MemcachedService getHandle()
Deprecated. 
Get the reference to the singleton object. Use this method to get access to the service.

Returns:
MemcachedService - service object handle

setup

public void setup(String[] serverMachines,
                  String binDir)
Deprecated. 
The setup method is called to set up a benchmark run. It is assumed that all servers have the same installation directory The servers will be started on the default port (11211) with a memory size of 256MB.

Parameters:
serverMachines - - array specifying the memcached server machines.
binDir - - Memcached binary location

setup

public void setup(String[] serverMachines,
                  int[] ports,
                  String parameters,
                  String binDir)
Deprecated. 
The setup method is called to set up a benchmark run. It is assumed that all servers have the same installation directory This version of the method accepts more parameters for more control.

Parameters:
serverMachines - - array specifying the memcached server machines.
ports - - array specifying the ports for memcached - one per machine.
parameters - - any other memcached arguments (e.g. "-u mysql")
binDir - - Memcached binary location

startServers

public boolean startServers()
Deprecated. 
Start all memcached servers on configured hosts.

Returns:
boolean true if start succeeded on all machines, else false

restartServers

public boolean restartServers()
Deprecated. 
Restart all servers. It first stops the servers, and then attempts to start them up again. If startup fails on any server, it will stop all servers and cleanup.

Returns:
true if all servers restarted successfully, otherwise false

stopServers

public boolean stopServers()
Deprecated. 
stop Servers.

Returns:
true if stop succeeded on all machines, else false