Package org.apache.solr.rest
Interface ManagedResourceStorage.StorageIO
- All Known Implementing Classes:
ManagedResourceStorage.FileStorageIO,ManagedResourceStorage.InMemoryStorageIO,ManagedResourceStorage.ZooKeeperStorageIO
- Enclosing class:
ManagedResourceStorage
public static interface ManagedResourceStorage.StorageIO
Hides the underlying storage implementation for data being managed by a ManagedResource. For
instance, a ManagedResource may use JSON as the data format and an instance of this class to
persist and load the JSON bytes to/from some backing store, such as ZooKeeper.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(SolrResourceLoader loader, org.apache.solr.common.util.NamedList<String> initArgs) booleanbooleangetInfo()openInputStream(String storedResourceId) openOutputStream(String storedResourceId)
-
Method Details
-
getInfo
String getInfo() -
configure
void configure(SolrResourceLoader loader, org.apache.solr.common.util.NamedList<String> initArgs) throws org.apache.solr.common.SolrException - Throws:
org.apache.solr.common.SolrException
-
exists
- Throws:
IOException
-
openInputStream
- Throws:
IOException
-
openOutputStream
- Throws:
IOException
-
delete
- Throws:
IOException
-