BYTES_MARSHALLER, COMMAND_MARSHALLER, DEFAULT_CONTAINER_NAME, MESSAGEID_MARSHALLER, OBJECT_MARSHALLER, STRING_MARSHALLER| Constructor and Description |
|---|
KahaStore(java.io.File directory,
java.lang.String mode) |
KahaStore(java.io.File directory,
java.lang.String mode,
java.util.concurrent.atomic.AtomicLong storeSize) |
KahaStore(java.lang.String name,
java.lang.String mode) |
KahaStore(java.lang.String name,
java.lang.String mode,
java.util.concurrent.atomic.AtomicLong storeSize) |
| 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 containerId)
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 containerId)
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
|
DataManager |
getDataManager(java.lang.String name) |
java.lang.String |
getDefaultContainerName() |
IndexManager |
getIndexManager(DataManager dm,
java.lang.String name) |
java.lang.String |
getIndexTypeAsString() |
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
|
org.apache.activemq.kaha.impl.IndexRootContainer |
getListsContainer() |
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
|
org.apache.activemq.kaha.impl.IndexRootContainer |
getMapsContainer() |
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 |
isLogIndexChanges() |
boolean |
isPersistentIndex() |
boolean |
isUseAsyncDataManager() |
void |
setDefaultContainerName(java.lang.String defaultContainerName)
set the default container name
|
void |
setIndexTypeAsString(java.lang.String type)
Set the default index type
|
void |
setLogIndexChanges(boolean logIndexChanges) |
void |
setMaxDataFileLength(long maxDataFileLength) |
void |
setPersistentIndex(boolean persistentIndex)
Set a persistent index as the default if the parameter is true
|
void |
setUseAsyncDataManager(boolean useAsyncWriter) |
long |
size() |
public KahaStore(java.lang.String name, java.lang.String mode) throws java.io.IOException
java.io.IOExceptionpublic KahaStore(java.io.File directory, java.lang.String mode) throws java.io.IOException
java.io.IOExceptionpublic KahaStore(java.lang.String name, java.lang.String mode, java.util.concurrent.atomic.AtomicLong storeSize) throws java.io.IOException
java.io.IOExceptionpublic KahaStore(java.io.File directory, java.lang.String mode, java.util.concurrent.atomic.AtomicLong storeSize) throws java.io.IOException
java.io.IOExceptionpublic void close() throws java.io.IOException
Storepublic void force() throws java.io.IOException
Storepublic void clear() throws java.io.IOException
Storepublic boolean delete() throws java.io.IOException
Storepublic boolean isInitialized()
isInitialized in interface Storepublic boolean doesMapContainerExist(java.lang.Object id) throws java.io.IOException
StoredoesMapContainerExist in interface Storejava.io.IOExceptionpublic boolean doesMapContainerExist(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoredoesMapContainerExist in interface Storejava.io.IOExceptionpublic MapContainer getMapContainer(java.lang.Object id) throws java.io.IOException
StoregetMapContainer in interface Storejava.io.IOExceptionpublic MapContainer getMapContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoregetMapContainer in interface Storejava.io.IOExceptionpublic MapContainer getMapContainer(java.lang.Object id, java.lang.String containerName, boolean persistentIndex) throws java.io.IOException
StoregetMapContainer in interface Storejava.io.IOExceptionpublic void deleteMapContainer(java.lang.Object id) throws java.io.IOException
StoredeleteMapContainer in interface Storejava.io.IOExceptionpublic void deleteMapContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoredeleteMapContainer in interface Storejava.io.IOExceptionpublic void deleteMapContainer(ContainerId containerId) throws java.io.IOException
StoredeleteMapContainer in interface Storejava.io.IOExceptionpublic java.util.Set<ContainerId> getMapContainerIds() throws java.io.IOException
StoregetMapContainerIds in interface Storejava.io.IOExceptionpublic boolean doesListContainerExist(java.lang.Object id) throws java.io.IOException
StoredoesListContainerExist in interface Storejava.io.IOExceptionpublic boolean doesListContainerExist(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoredoesListContainerExist in interface Storejava.io.IOExceptionpublic ListContainer getListContainer(java.lang.Object id) throws java.io.IOException
StoregetListContainer in interface Storejava.io.IOExceptionpublic ListContainer getListContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoregetListContainer in interface Storejava.io.IOExceptionpublic ListContainer getListContainer(java.lang.Object id, java.lang.String containerName, boolean persistentIndex) throws java.io.IOException
StoregetListContainer in interface Storejava.io.IOExceptionpublic void deleteListContainer(java.lang.Object id) throws java.io.IOException
StoredeleteListContainer in interface Storejava.io.IOExceptionpublic void deleteListContainer(java.lang.Object id, java.lang.String containerName) throws java.io.IOException
StoredeleteListContainer in interface Storejava.io.IOExceptionpublic void deleteListContainer(ContainerId containerId) throws java.io.IOException
StoredeleteListContainer in interface Storejava.io.IOExceptionpublic java.util.Set<ContainerId> getListContainerIds() throws java.io.IOException
StoregetListContainerIds in interface Storejava.io.IOExceptionpublic org.apache.activemq.kaha.impl.IndexRootContainer getListsContainer()
public org.apache.activemq.kaha.impl.IndexRootContainer getMapsContainer()
public DataManager getDataManager(java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic IndexManager getIndexManager(DataManager dm, java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic boolean isLogIndexChanges()
public void setLogIndexChanges(boolean logIndexChanges)
public long getMaxDataFileLength()
getMaxDataFileLength in interface Storepublic void setMaxDataFileLength(long maxDataFileLength)
setMaxDataFileLength in interface StoremaxDataFileLength - the maxDataFileLength to setpublic java.lang.String getIndexTypeAsString()
public void setIndexTypeAsString(java.lang.String type)
type - "PERSISTENT" or "VM"public boolean isPersistentIndex()
isPersistentIndex in interface Storepublic void setPersistentIndex(boolean persistentIndex)
StoresetPersistentIndex in interface Storepublic boolean isUseAsyncDataManager()
public void setUseAsyncDataManager(boolean useAsyncWriter)
public long size()
size in interface StoreStore.size()public java.lang.String getDefaultContainerName()
getDefaultContainerName in interface Storepublic void setDefaultContainerName(java.lang.String defaultContainerName)
StoresetDefaultContainerName in interface Storepublic void initialize() throws java.io.IOException
Storeinitialize in interface Storejava.io.IOExceptionCopyright © 2005-2012. All Rights Reserved.