Modifier and Type | Field and Description |
---|---|
static Marshaller |
BYTES_MARSHALLER
Byte Marshaller
|
static Marshaller |
COMMAND_MARSHALLER
Command Marshaller
|
static java.lang.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(java.lang.Object id)
delete a ListContainer from the default container
|
void |
deleteListContainer(java.lang.Object id,
java.lang.String containerName)
delete a ListContainer from the named container
|
void |
deleteMapContainer(ContainerId id)
Delete Map container
|
void |
deleteMapContainer(java.lang.Object id)
delete a container from the default container
|
void |
deleteMapContainer(java.lang.Object id,
java.lang.String containerName)
delete a MapContainer from the name container
|
boolean |
doesListContainerExist(java.lang.Object id)
Checks if a ListContainer exists in the default container
|
boolean |
doesListContainerExist(java.lang.Object id,
java.lang.String containerName)
Checks if a ListContainer exists in the named container
|
boolean |
doesMapContainerExist(java.lang.Object id)
Checks if a MapContainer exists in the default container
|
boolean |
doesMapContainerExist(java.lang.Object id,
java.lang.String containerName)
Checks if a MapContainer exists in the named container
|
void |
force()
Force all writes to disk
|
java.lang.String |
getDefaultContainerName() |
ListContainer |
getListContainer(java.lang.Object id)
Get a ListContainer with the given id and creates it if it doesn't exist
|
ListContainer |
getListContainer(java.lang.Object id,
java.lang.String containerName)
Get a ListContainer with the given id and creates it if it doesn't exist
|
ListContainer |
getListContainer(java.lang.Object id,
java.lang.String containerName,
boolean persistentIndex)
Get a ListContainer with the given id and creates it if it doesn't exist
|
java.util.Set<ContainerId> |
getListContainerIds()
Get a Set of call ListContainer Ids
|
MapContainer |
getMapContainer(java.lang.Object id)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
MapContainer |
getMapContainer(java.lang.Object id,
java.lang.String containerName)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
MapContainer |
getMapContainer(java.lang.Object id,
java.lang.String containerName,
boolean persistentIndex)
Get a MapContainer with the given id - the MapContainer is created if
needed
|
java.util.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(java.lang.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 java.lang.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 java.io.IOException
java.io.IOException
void force() throws java.io.IOException
java.io.IOException
void clear() throws java.io.IOException
java.io.IOException
boolean delete() throws java.io.IOException
java.io.IOException
boolean doesMapContainerExist(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
boolean doesMapContainerExist(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
MapContainer getMapContainer(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
MapContainer getMapContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
MapContainer getMapContainer(java.lang.Object id, java.lang.String containerName, boolean persistentIndex) throws java.io.IOException
id
- containerName
- persistentIndex
- java.io.IOException
void deleteMapContainer(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
void deleteMapContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
void deleteMapContainer(ContainerId id) throws java.io.IOException
id
- java.io.IOException
java.util.Set<ContainerId> getMapContainerIds() throws java.io.IOException
java.io.IOException
boolean doesListContainerExist(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
boolean doesListContainerExist(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
ListContainer getListContainer(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
ListContainer getListContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
ListContainer getListContainer(java.lang.Object id, java.lang.String containerName, boolean persistentIndex) throws java.io.IOException
id
- containerName
- persistentIndex
- java.io.IOException
void deleteListContainer(java.lang.Object id) throws java.io.IOException
id
- java.io.IOException
void deleteListContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
id
- containerName
- java.io.IOException
void deleteListContainer(ContainerId id) throws java.io.IOException
id
- java.io.IOException
java.util.Set<ContainerId> getListContainerIds() throws java.io.IOException
java.io.IOException
long getMaxDataFileLength()
void setMaxDataFileLength(long maxDataFileLength)
maxDataFileLength
- the maxDataFileLength to setboolean isInitialized()
long size()
boolean isPersistentIndex()
void setPersistentIndex(boolean persistentIndex)
persistentIndex
- java.lang.String getDefaultContainerName()
void setDefaultContainerName(java.lang.String defaultContainerName)
defaultContainerName
- void initialize() throws java.io.IOException
java.io.IOException
Copyright © 2005-2017. All Rights Reserved.