@Requires(bean=one.microstream.storage.types.StorageManager.class) @Requires(bean=EmbeddedStorageConfigurationProvider.class) @Controller(value="/${microstream.rest.path:microstream}") public class MicroStreamRestController extends java.lang.Object
Constructor and Description |
---|
MicroStreamRestController(MicroStreamRestService service)
A default controller to expose the expected MicroStream REST API per storage manager.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDictionary()
Get storage type dictionary.
|
java.lang.String |
getDictionary(java.lang.String name)
Get storage type dictionary.
|
one.microstream.storage.restadapter.types.ViewerStorageFileStatistics |
getFilesStatistics()
Get statistics for all storage files.
|
one.microstream.storage.restadapter.types.ViewerStorageFileStatistics |
getFilesStatistics(java.lang.String name)
Get statistics for all storage files.
|
one.microstream.storage.restadapter.types.ViewerObjectDescription |
getObject(java.lang.String oid,
java.lang.Long valueLength,
java.lang.Long fixedOffset,
java.lang.Long fixedLength,
java.lang.Long variableOffset,
java.lang.Long variableLength,
java.lang.Boolean references)
Get an object by its id.
|
one.microstream.storage.restadapter.types.ViewerObjectDescription |
getObject(java.lang.String name,
java.lang.String oid,
java.lang.Long valueLength,
java.lang.Long fixedOffset,
java.lang.Long fixedLength,
java.lang.Long variableOffset,
java.lang.Long variableLength,
java.lang.Boolean references)
Get an object by its id.
|
RootObject |
getRoot()
Get the user defined root.
|
RootObject |
getRoot(java.lang.String name)
Get the user defined root.
|
public MicroStreamRestController(MicroStreamRestService service)
service
- the service to query MicroStream via the relevant StorageRestAdapter
@Get(value="/root") public RootObject getRoot()
@Get(value="/{name}/root") public RootObject getRoot(@PathVariable java.lang.String name)
name
- the name of the storage adapter@Get(value="/dictionary") public java.lang.String getDictionary()
@Get(value="/{name}/dictionary") public java.lang.String getDictionary(@PathVariable java.lang.String name)
name
- the name of the storage adapter@Get(value="/object/{oid}") public one.microstream.storage.restadapter.types.ViewerObjectDescription getObject(@PathVariable java.lang.String oid, @Nullable @QueryValue java.lang.Long valueLength, @Nullable @QueryValue java.lang.Long fixedOffset, @Nullable @QueryValue java.lang.Long fixedLength, @Nullable @QueryValue java.lang.Long variableOffset, @Nullable @QueryValue java.lang.Long variableLength, @Nullable @QueryValue java.lang.Boolean references)
oid
- object id of the requested objectvalueLength
- limit size of returned value elements to this valuefixedOffset
- index of the first fix sized element to fetchfixedLength
- number of fix sized elements to be fetchedvariableOffset
- index of the first element in variable sized collections to be fetchedvariableLength
- number of elements to be fetched from variable sized collectionsreferences
- resolve top level references and return them with this request@Get(value="/{name}/object/{oid}") public one.microstream.storage.restadapter.types.ViewerObjectDescription getObject(@PathVariable java.lang.String name, @PathVariable java.lang.String oid, @Nullable @QueryValue java.lang.Long valueLength, @Nullable @QueryValue java.lang.Long fixedOffset, @Nullable @QueryValue java.lang.Long fixedLength, @Nullable @QueryValue java.lang.Long variableOffset, @Nullable @QueryValue java.lang.Long variableLength, @Nullable @QueryValue java.lang.Boolean references)
name
- the name of the storage adapteroid
- object id of the requested objectvalueLength
- limit size of returned value elements to this valuefixedOffset
- index of the first fix sized element to fetchfixedLength
- number of fix sized elements to be fetchedvariableOffset
- index of the first element in variable sized collections to be fetchedvariableLength
- number of elements to be fetched from variable sized collectionsreferences
- resolve top level references and return them with this request@Get(value="/maintenance/filesStatistics") public one.microstream.storage.restadapter.types.ViewerStorageFileStatistics getFilesStatistics()
@Get(value="/{name}/maintenance/filesStatistics") public one.microstream.storage.restadapter.types.ViewerStorageFileStatistics getFilesStatistics(@PathVariable java.lang.String name)
name
- the name of the storage adapter