Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » kaha » [javadoc | source]
org.apache.activemq.kaha
public interface: Store [javadoc | source]

All Known Implementing Classes:
    KahaStore

A Store is holds persistent containers
Field Summary
 String DEFAULT_CONTAINER_NAME    Defauly container name 
 Marshaller BYTES_MARSHALLER    Byte Marshaller 
 Marshaller OBJECT_MARSHALLER    Object Marshaller 
 Marshaller STRING_MARSHALLER    String Marshaller 
 Marshaller COMMAND_MARSHALLER    Command Marshaller 
 Marshaller MESSAGEID_MARSHALLER    MessageId marshaller 
Method from org.apache.activemq.kaha.Store Summary:
clear,   close,   delete,   deleteListContainer,   deleteListContainer,   deleteListContainer,   deleteMapContainer,   deleteMapContainer,   deleteMapContainer,   doesListContainerExist,   doesListContainerExist,   doesMapContainerExist,   doesMapContainerExist,   force,   getDefaultContainerName,   getListContainer,   getListContainer,   getListContainer,   getListContainerIds,   getMapContainer,   getMapContainer,   getMapContainer,   getMapContainerIds,   getMaxDataFileLength,   initialize,   isInitialized,   isPersistentIndex,   setDefaultContainerName,   setMaxDataFileLength,   setPersistentIndex,   size
Method from org.apache.activemq.kaha.Store Detail:
 public  void clear() throws IOException
    empty all the contents of the store
 public  void close() throws IOException
    close the store
 public boolean delete() throws IOException
    delete the store
 public  void deleteListContainer(Object id) throws IOException
    delete a ListContainer from the default container
 public  void deleteListContainer(ContainerId id) throws IOException
    delete a list container
 public  void deleteListContainer(Object id,
    String containerName) throws IOException
    delete a ListContainer from the named container
 public  void deleteMapContainer(Object id) throws IOException
    delete a container from the default container
 public  void deleteMapContainer(ContainerId id) throws IOException
    Delete Map container
 public  void deleteMapContainer(Object id,
    String containerName) throws IOException
    delete a MapContainer from the name container
 public boolean doesListContainerExist(Object id) throws IOException
    Checks if a ListContainer exists in the default container
 public boolean doesListContainerExist(Object id,
    String containerName) throws IOException
    Checks if a ListContainer exists in the named container
 public boolean doesMapContainerExist(Object id) throws IOException
    Checks if a MapContainer exists in the default container
 public boolean doesMapContainerExist(Object id,
    String containerName) throws IOException
    Checks if a MapContainer exists in the named container
 public  void force() throws IOException
    Force all writes to disk
 public String getDefaultContainerName()
 public ListContainer getListContainer(Object id) throws IOException
    Get a ListContainer with the given id and creates it if it doesn't exist
 public ListContainer getListContainer(Object id,
    String containerName) throws IOException
    Get a ListContainer with the given id and creates it if it doesn't exist
 public ListContainer getListContainer(Object id,
    String containerName,
    boolean persistentIndex) throws IOException
    Get a ListContainer with the given id and creates it if it doesn't exist
 public Set<ContainerId> getListContainerIds() throws IOException
    Get a Set of call ListContainer Ids
 public MapContainer getMapContainer(Object id) throws IOException
    Get a MapContainer with the given id - the MapContainer is created if needed
 public MapContainer getMapContainer(Object id,
    String containerName) throws IOException
    Get a MapContainer with the given id - the MapContainer is created if needed
 public MapContainer getMapContainer(Object id,
    String containerName,
    boolean persistentIndex) throws IOException
    Get a MapContainer with the given id - the MapContainer is created if needed
 public Set<ContainerId> getMapContainerIds() throws IOException
    Get a Set of call MapContainer Ids
 public long getMaxDataFileLength()
 public  void initialize() throws IOException
    An explict call to initialize - this will also be called implicitly for any other operation on the store.
 public boolean isInitialized()
 public boolean isPersistentIndex()
 public  void setDefaultContainerName(String defaultContainerName)
    set the default container name
 public  void setMaxDataFileLength(long maxDataFileLength)
 public  void setPersistentIndex(boolean persistentIndex)
    Set a persistent index as the default if the parameter is true
 public long size()