Class StorageRestAdapter.Default
java.lang.Object
one.microstream.storage.restadapter.StorageRestAdapter.Default
- All Implemented Interfaces:
StorageRestAdapter
,StorageRestAdapterObject
,StorageRestAdapterRoot
,StorageRestAdapterStorageInfo
,StorageRestAdapterTypeDictionary
,StorageViewDataConverterProvider
,StorageViewDataConverterRegistry
- Enclosing interface:
- StorageRestAdapter
public static class StorageRestAdapter.Default extends Object implements StorageRestAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.restadapter.StorageRestAdapter
StorageRestAdapter.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description boolean
addConverter(StorageViewDataConverter converter, String format)
Registers a new data converter.StorageViewDataConverter
getConverter(String format)
Get the converter for the requested format.long
getDefaultValueLength()
ViewerObjectDescription
getObject(long objectId, long fixedOffset, long fixedLength, long variableOffset, long variableLength, long valueLength, boolean resolveReferences)
ViewerStorageFileStatistics
getStorageFilesStatistics()
String
getTypeDictionary()
ViewerRootDescription
getUserRoot()
void
setDefaultValueLength(long defaultValueLength)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
getObject
public ViewerObjectDescription getObject(long objectId, long fixedOffset, long fixedLength, long variableOffset, long variableLength, long valueLength, boolean resolveReferences)- Specified by:
getObject
in interfaceStorageRestAdapterObject
-
getUserRoot
- Specified by:
getUserRoot
in interfaceStorageRestAdapterRoot
-
getTypeDictionary
- Specified by:
getTypeDictionary
in interfaceStorageRestAdapterTypeDictionary
-
getDefaultValueLength
public long getDefaultValueLength()- Specified by:
getDefaultValueLength
in interfaceStorageRestAdapterObject
-
setDefaultValueLength
public void setDefaultValueLength(long defaultValueLength)- Specified by:
setDefaultValueLength
in interfaceStorageRestAdapterObject
-
getStorageFilesStatistics
- Specified by:
getStorageFilesStatistics
in interfaceStorageRestAdapterStorageInfo
-
getConverter
Description copied from interface:StorageViewDataConverterProvider
Get the converter for the requested format.- Specified by:
getConverter
in interfaceStorageViewDataConverterProvider
- Specified by:
getConverter
in interfaceStorageViewDataConverterRegistry
- Returns:
- StorageViewDataConverter
-
addConverter
Description copied from interface:StorageViewDataConverterRegistry
Registers a new data converter.- Specified by:
addConverter
in interfaceStorageViewDataConverterRegistry
- Returns:
- true if successful registered, otherwise false
-