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.StorageIOHides 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(SolrResourceLoader loader, NamedList<String> initArgs)booleandelete(String storedResourceId)booleanexists(String storedResourceId)StringgetInfo()InputStreamopenInputStream(String storedResourceId)OutputStreamopenOutputStream(String storedResourceId)
-
-
-
Method Detail
-
getInfo
String getInfo()
-
configure
void configure(SolrResourceLoader loader, NamedList<String> initArgs) throws SolrException
- Throws:
SolrException
-
exists
boolean exists(String storedResourceId) throws IOException
- Throws:
IOException
-
openInputStream
InputStream openInputStream(String storedResourceId) throws IOException
- Throws:
IOException
-
openOutputStream
OutputStream openOutputStream(String storedResourceId) throws IOException
- Throws:
IOException
-
delete
boolean delete(String storedResourceId) throws IOException
- Throws:
IOException
-
-