public class ZkIndexSchemaReader extends Object implements OnReconnect
Modifier and Type | Class and Description |
---|---|
static class |
ZkIndexSchemaReader.SchemaWatcher
Watches for schema changes and triggers updates in the ZkIndexSchemaReader.
|
Constructor and Description |
---|
ZkIndexSchemaReader(ManagedIndexSchemaFactory managedIndexSchemaFactory,
SolrCore solrCore) |
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.
|
ZkIndexSchemaReader.SchemaWatcher |
createSchemaWatcher()
Creates a schema watcher and returns it for controlling purposes.
|
boolean |
equals(Object other) |
Object |
getSchemaUpdateLock() |
String |
getUniqueCoreId() |
int |
hashCode() |
ManagedIndexSchema |
refreshSchemaFromZk(int expectedZkVersion) |
String |
toString() |
public ZkIndexSchemaReader(ManagedIndexSchemaFactory managedIndexSchemaFactory, SolrCore solrCore)
public Object getSchemaUpdateLock()
public ZkIndexSchemaReader.SchemaWatcher createSchemaWatcher()
public ManagedIndexSchema refreshSchemaFromZk(int expectedZkVersion) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void command()
command
in interface OnReconnect
public String getUniqueCoreId()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.