org.apache.hadoop.hbase.replication
Interface ReplicationStateInterface

All Superinterfaces:
Closeable
All Known Implementing Classes:
ReplicationStateImpl

public interface ReplicationStateInterface
extends Closeable

This provides an interface for getting and setting the replication state of a cluster. This state is used to indicate whether replication is enabled or disabled on a cluster.


Method Summary
 boolean getState()
          Get the current state of replication (i.e.
 void setState(boolean newState)
          Set the state of replication.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getState

boolean getState()
                 throws org.apache.zookeeper.KeeperException
Get the current state of replication (i.e. ENABLED or DISABLED).

Returns:
true if replication is enabled, false otherwise
Throws:
org.apache.zookeeper.KeeperException

setState

void setState(boolean newState)
              throws org.apache.zookeeper.KeeperException
Set the state of replication.

Parameters:
newState -
Throws:
org.apache.zookeeper.KeeperException


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