Class ReadOnlyZooKeeperServer

  • All Implemented Interfaces:
    ServerStats.Provider, SessionTracker.SessionExpirer

    public class ReadOnlyZooKeeperServer
    extends ZooKeeperServer
    A ZooKeeperServer which comes into play when peer is partitioned from the majority. Handles read-only clients, but drops connections from not-read-only ones.

    The very first processor in the chain of request processors is a ReadOnlyRequestProcessor which drops state-changing requests.

Overrides:
setState in class ZooKeeperServer
Parameters:
state - new server state.