public static class ManagedResourceStorage.ZooKeeperStorageIO extends Object implements ManagedResourceStorage.StorageIO
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
retryOnConnLoss |
protected SolrZkClient |
zkClient |
protected String |
znodeBase |
| Constructor and Description |
|---|
ZooKeeperStorageIO(SolrZkClient zkClient,
String znodeBase) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SolrResourceLoader loader,
NamedList<String> initArgs) |
boolean |
delete(String storedResourceId) |
boolean |
exists(String storedResourceId) |
String |
getInfo() |
protected String |
getZnodeForResource(String storedResourceId)
Returns the Znode for the given storedResourceId by combining it
with the znode base.
|
InputStream |
openInputStream(String storedResourceId) |
OutputStream |
openOutputStream(String storedResourceId) |
protected SolrZkClient zkClient
protected String znodeBase
protected boolean retryOnConnLoss
public ZooKeeperStorageIO(SolrZkClient zkClient, String znodeBase)
public void configure(SolrResourceLoader loader, NamedList<String> initArgs) throws SolrException
configure in interface ManagedResourceStorage.StorageIOSolrExceptionpublic boolean exists(String storedResourceId) throws IOException
exists in interface ManagedResourceStorage.StorageIOIOExceptionpublic InputStream openInputStream(String storedResourceId) throws IOException
openInputStream in interface ManagedResourceStorage.StorageIOIOExceptionpublic OutputStream openOutputStream(String storedResourceId) throws IOException
openOutputStream in interface ManagedResourceStorage.StorageIOIOExceptionprotected String getZnodeForResource(String storedResourceId)
public boolean delete(String storedResourceId) throws IOException
delete in interface ManagedResourceStorage.StorageIOIOExceptionpublic String getInfo()
getInfo in interface ManagedResourceStorage.StorageIOCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.