| Modifier and Type | Field and Description |
|---|---|
static Marshaller |
BYTES_MARSHALLER
Byte Marshaller
|
static Marshaller |
COMMAND_MARSHALLER
Command Marshaller
|
static String |
DEFAULT_CONTAINER_NAME
Defauly container name
|
static Marshaller |
MESSAGEID_MARSHALLER
MessageId marshaller
|
static Marshaller |
OBJECT_MARSHALLER
Object Marshaller
|
static Marshaller |
STRING_MARSHALLER
String Marshaller
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
empty all the contents of the store
|
void |
close()
close the store
|
boolean |
delete()
delete the store
|
void |
deleteListContainer(ContainerId id)
delete a list container
|
void |
deleteListContainer(Object id)
delete a ListContainer from the default container
|
void |
deleteListContainer(Object id,
String containerName)
delete a ListContainer from the named container
|
void |
deleteMapContainer(ContainerId id)
Delete Map container
|
void |
deleteMapContainer(Object id)
delete a container from the default container
|
void |
deleteMapContainer(Object id,
String containerName)
delete a MapContainer from the name container
|
boolean |
doesListContainerExist(Object id)
Checks if a ListContainer exists in the default container
|
boolean |
doesListContainerExist(Object id,
String containerName)
Checks if a ListContainer exists in the named container
|
boolean |
doesMapContainerExist(Object id)
Checks if a MapContainer exists in the default container
|
boolean |
doesMapContainerExist(Object id,
String containerName)
Checks if a MapContainer exists in the named container
|
void |
force()
Force all writes to disk
|
String |
getDefaultContainerName() |
ListContainer |
getListContainer(Object id)
Get a ListContainer with the given id and creates it if it doesn't exist
|
ListContainer |
getListContainer(Object id,
String containerName)
Get a ListContainer with the given id and creates it if it doesn't exist
|
ListContainer |
getListContainer(Object id,
String containerName,
boolean persistentIndex)
Get a ListContainer with the given id and creates it if it doesn't exist
|
Set<ContainerId> |
getListContainerIds()
Get a Set of call ListContainer Ids
|
MapContainer |
getMapContainer(Object id)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
MapContainer |
getMapContainer(Object id,
String containerName)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
MapContainer |
getMapContainer(Object id,
String containerName,
boolean persistentIndex)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
Set<ContainerId> |
getMapContainerIds()
Get a Set of call MapContainer Ids
|
long |
getMaxDataFileLength() |
void |
initialize()
An explict call to initialize - this will also be called
implicitly for any other operation on the store.
|
boolean |
isInitialized() |
boolean |
isPersistentIndex() |
void |
setDefaultContainerName(String defaultContainerName)
set the default container name
|
void |
setMaxDataFileLength(long maxDataFileLength) |
void |
setPersistentIndex(boolean persistentIndex)
Set a persistent index as the default if the parameter is true
|
long |
size() |
static final String DEFAULT_CONTAINER_NAME
static final Marshaller BYTES_MARSHALLER
static final Marshaller OBJECT_MARSHALLER
static final Marshaller STRING_MARSHALLER
static final Marshaller COMMAND_MARSHALLER
static final Marshaller MESSAGEID_MARSHALLER
void close() throws IOException
IOExceptionvoid force() throws IOException
IOExceptionvoid clear() throws IOException
IOExceptionboolean delete() throws IOException
IOExceptionboolean doesMapContainerExist(Object id) throws IOException
id - IOExceptionboolean doesMapContainerExist(Object id, String containerName) throws IOException
id - containerName - IOExceptionMapContainer getMapContainer(Object id) throws IOException
id - IOExceptionMapContainer getMapContainer(Object id, String containerName) throws IOException
id - containerName - IOExceptionMapContainer getMapContainer(Object id, String containerName, boolean persistentIndex) throws IOException
id - containerName - persistentIndex - IOExceptionvoid deleteMapContainer(Object id) throws IOException
id - IOExceptionvoid deleteMapContainer(Object id, String containerName) throws IOException
id - containerName - IOExceptionvoid deleteMapContainer(ContainerId id) throws IOException
id - IOExceptionSet<ContainerId> getMapContainerIds() throws IOException
IOExceptionboolean doesListContainerExist(Object id) throws IOException
id - IOExceptionboolean doesListContainerExist(Object id, String containerName) throws IOException
id - containerName - IOExceptionListContainer getListContainer(Object id) throws IOException
id - IOExceptionListContainer getListContainer(Object id, String containerName) throws IOException
id - containerName - IOExceptionListContainer getListContainer(Object id, String containerName, boolean persistentIndex) throws IOException
id - containerName - persistentIndex - IOExceptionvoid deleteListContainer(Object id) throws IOException
id - IOExceptionvoid deleteListContainer(Object id, String containerName) throws IOException
id - containerName - IOExceptionvoid deleteListContainer(ContainerId id) throws IOException
id - IOExceptionSet<ContainerId> getListContainerIds() throws IOException
IOExceptionlong getMaxDataFileLength()
void setMaxDataFileLength(long maxDataFileLength)
maxDataFileLength - the maxDataFileLength to setboolean isInitialized()
long size()
boolean isPersistentIndex()
void setPersistentIndex(boolean persistentIndex)
persistentIndex - String getDefaultContainerName()
void setDefaultContainerName(String defaultContainerName)
defaultContainerName - void initialize() throws IOException
IOExceptionCopyright © 2005–2017. All rights reserved.