com.bigdata.jini.start.config
Class ZookeeperRunningConstraint

java.lang.Object
  extended by com.bigdata.jini.start.config.ServiceDependencyConstraint
      extended by com.bigdata.jini.start.config.ZookeeperRunningConstraint
All Implemented Interfaces:
IServiceConstraint, Serializable

public class ZookeeperRunningConstraint
extends ServiceDependencyConstraint

Constraint that zookeeper must be running (the ZooKeeper client is ZooKeeper.States#CONNECTED).

Version:
$Id$
Author:
Bryan Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bigdata.jini.start.config.ServiceDependencyConstraint
log
 
Constructor Summary
ZookeeperRunningConstraint()
           
 
Method Summary
 boolean allow(JiniFederation fed)
          Return true iff a service may be instantiated on this host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZookeeperRunningConstraint

public ZookeeperRunningConstraint()
Method Detail

allow

public boolean allow(JiniFederation fed)
              throws Exception
Description copied from interface: IServiceConstraint
Return true iff a service may be instantiated on this host.

Note: Constraints which can be evaluated without the federation reference MUST NOT throw an exception if that reference is null. This allows us to evaluate constraints for boostrap services as well as for ManagedServiceConfigurations

Parameters:
fed - The federation.
Throws:
Exception


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.