|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.kaha.impl.KahaStore
public class KahaStore
Store Implementation
Field Summary |
---|
Fields inherited from interface org.apache.activemq.kaha.Store |
---|
BytesMarshaller, ObjectMarshaller, StringMarshaller |
Constructor Summary | |
---|---|
KahaStore(String name,
String mode)
|
Method Summary | |
---|---|
void |
clear()
empty all the contents of the store |
void |
close()
close the store |
boolean |
delete()
delete the store |
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(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 |
DataManager |
getDataManager(String name)
|
IndexManager |
getIndexManager(DataManager dm,
String name)
|
String |
getIndexType()
|
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,
String indexType)
Get a ListContainer with the given id and creates it if it doesn't exist |
Set |
getListContainerIds()
Get a Set of call ListContainer Ids |
org.apache.activemq.kaha.impl.IndexRootContainer |
getListsContainer()
|
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,
String indexType)
Get a MapContainer with the given id - the MapContainer is created if needed |
Set |
getMapContainerIds()
Get a Set of call MapContainer Ids |
org.apache.activemq.kaha.impl.IndexRootContainer |
getMapsContainer()
|
long |
getMaxDataFileLength()
|
void |
initialize()
|
boolean |
isLogIndexChanges()
|
void |
setIndexType(String type)
Set the default index type |
void |
setLogIndexChanges(boolean logIndexChanges)
|
void |
setMaxDataFileLength(long maxDataFileLength)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KahaStore(String name, String mode) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
Store
close
in interface Store
IOException
public void force() throws IOException
Store
force
in interface Store
IOException
public void clear() throws IOException
Store
clear
in interface Store
IOException
public boolean delete() throws IOException
Store
delete
in interface Store
IOException
public boolean doesMapContainerExist(Object id) throws IOException
Store
doesMapContainerExist
in interface Store
IOException
public boolean doesMapContainerExist(Object id, String containerName) throws IOException
Store
doesMapContainerExist
in interface Store
IOException
public MapContainer getMapContainer(Object id) throws IOException
Store
getMapContainer
in interface Store
IOException
public MapContainer getMapContainer(Object id, String containerName) throws IOException
Store
getMapContainer
in interface Store
IOException
public MapContainer getMapContainer(Object id, String containerName, String indexType) throws IOException
Store
getMapContainer
in interface Store
IOException
public void deleteMapContainer(Object id) throws IOException
Store
deleteMapContainer
in interface Store
IOException
public void deleteMapContainer(Object id, String containerName) throws IOException
Store
deleteMapContainer
in interface Store
IOException
public Set getMapContainerIds() throws IOException
Store
getMapContainerIds
in interface Store
IOException
public boolean doesListContainerExist(Object id) throws IOException
Store
doesListContainerExist
in interface Store
IOException
public boolean doesListContainerExist(Object id, String containerName) throws IOException
Store
doesListContainerExist
in interface Store
IOException
public ListContainer getListContainer(Object id) throws IOException
Store
getListContainer
in interface Store
IOException
public ListContainer getListContainer(Object id, String containerName) throws IOException
Store
getListContainer
in interface Store
IOException
public ListContainer getListContainer(Object id, String containerName, String indexType) throws IOException
Store
getListContainer
in interface Store
IOException
public void deleteListContainer(Object id) throws IOException
Store
deleteListContainer
in interface Store
IOException
public void deleteListContainer(Object id, String containerName) throws IOException
Store
deleteListContainer
in interface Store
IOException
public Set getListContainerIds() throws IOException
Store
getListContainerIds
in interface Store
IOException
public org.apache.activemq.kaha.impl.IndexRootContainer getListsContainer()
public org.apache.activemq.kaha.impl.IndexRootContainer getMapsContainer()
public DataManager getDataManager(String name) throws IOException
IOException
public IndexManager getIndexManager(DataManager dm, String name) throws IOException
IOException
public boolean isLogIndexChanges()
public void setLogIndexChanges(boolean logIndexChanges)
public long getMaxDataFileLength()
getMaxDataFileLength
in interface Store
public void setMaxDataFileLength(long maxDataFileLength)
setMaxDataFileLength
in interface Store
maxDataFileLength
- the maxDataFileLength to setpublic String getIndexType()
getIndexType
in interface Store
IndexTypes
public void setIndexType(String type)
setIndexType
in interface Store
type
- IndexTypes
public void initialize() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |