public class ZkIndexSchemaReader extends Object implements OnReconnect
Constructor and Description |
---|
ZkIndexSchemaReader(ManagedIndexSchemaFactory managedIndexSchemaFactory) |
Modifier and Type | Method and Description |
---|---|
void |
command()
Called after a ZooKeeper session expiration occurs; need to re-create the watcher and update the current
schema from ZooKeeper.
|
void |
createSchemaWatcher() |
Object |
getSchemaUpdateLock() |
ManagedIndexSchema |
refreshSchemaFromZk(int expectedZkVersion) |
public ZkIndexSchemaReader(ManagedIndexSchemaFactory managedIndexSchemaFactory)
public Object getSchemaUpdateLock()
public void createSchemaWatcher()
public ManagedIndexSchema refreshSchemaFromZk(int expectedZkVersion) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void command()
command
in interface OnReconnect
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.