org.apache.whirr.service.zookeeper
Class ZooKeeperService

java.lang.Object
  extended by org.apache.whirr.service.Service
      extended by org.apache.whirr.service.zookeeper.ZooKeeperService

public class ZooKeeperService
extends Service


Field Summary
static String ZOOKEEPER_ROLE
           
 
Constructor Summary
ZooKeeperService()
           
 
Method Summary
 String getName()
           
 ZooKeeperCluster launchCluster(ClusterSpec clusterSpec)
          Start the cluster described by clusterSpec and block until the cluster is available.
 
Methods inherited from class org.apache.whirr.service.Service
destroyCluster, getNodes, runningWithTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOKEEPER_ROLE

public static final String ZOOKEEPER_ROLE
See Also:
Constant Field Values
Constructor Detail

ZooKeeperService

public ZooKeeperService()
Method Detail

getName

public String getName()
Specified by:
getName in class Service
Returns:
the unique name of the service.

launchCluster

public ZooKeeperCluster launchCluster(ClusterSpec clusterSpec)
                               throws IOException
Description copied from class: Service
Start the cluster described by clusterSpec and block until the cluster is available. It is not guaranteed that the service running on the cluster has started when this method returns.

Specified by:
launchCluster in class Service
Returns:
an object representing the running cluster
Throws:
IOException - if there is a problem while starting the cluster. The cluster may or may not have started.


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.