|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Store
A Store is holds persistent containers
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Field Detail |
---|
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
Method Detail |
---|
void close() throws IOException
IOException
void force() throws IOException
IOException
void clear() throws IOException
IOException
boolean delete() throws IOException
IOException
boolean doesMapContainerExist(Object id) throws IOException
id
-
IOException
boolean doesMapContainerExist(Object id, String containerName) throws IOException
id
- containerName
-
IOException
MapContainer getMapContainer(Object id) throws IOException
id
-
IOException
MapContainer getMapContainer(Object id, String containerName) throws IOException
id
- containerName
-
IOException
MapContainer getMapContainer(Object id, String containerName, boolean persistentIndex) throws IOException
id
- containerName
- persistentIndex
-
IOException
void deleteMapContainer(Object id) throws IOException
id
-
IOException
void deleteMapContainer(Object id, String containerName) throws IOException
id
- containerName
-
IOException
void deleteMapContainer(ContainerId id) throws IOException
id
-
IOException
Set<ContainerId> getMapContainerIds() throws IOException
IOException
boolean doesListContainerExist(Object id) throws IOException
id
-
IOException
boolean doesListContainerExist(Object id, String containerName) throws IOException
id
- containerName
-
IOException
ListContainer getListContainer(Object id) throws IOException
id
-
IOException
ListContainer getListContainer(Object id, String containerName) throws IOException
id
- containerName
-
IOException
ListContainer getListContainer(Object id, String containerName, boolean persistentIndex) throws IOException
id
- containerName
- persistentIndex
-
IOException
void deleteListContainer(Object id) throws IOException
id
-
IOException
void deleteListContainer(Object id, String containerName) throws IOException
id
- containerName
-
IOException
void deleteListContainer(ContainerId id) throws IOException
id
-
IOException
Set<ContainerId> getListContainerIds() throws IOException
IOException
long 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
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |