org.apache.whirr.service.zookeeper
Class ZooKeeperService
java.lang.Object
org.apache.whirr.service.Service
org.apache.whirr.service.zookeeper.ZooKeeperService
public class ZooKeeperService
- extends Service
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZOOKEEPER_ROLE
public static final String ZOOKEEPER_ROLE
- See Also:
- Constant Field Values
ZooKeeperService
public ZooKeeperService()
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.