Package org.apache.activemq.kaha.impl

Examples of org.apache.activemq.kaha.impl.KahaStore


    protected String name;
    protected KahaStore store;
    protected int MAX_CACHE_SIZE=10;

    protected KahaStore getStore() throws IOException{
        KahaStore store = new KahaStore(name,"rw");
        store.initialize();
        return store;
    }
View Full Code Here


     * @param mode
     * @return the opened/created store
     * @throws IOException
     */
    public static Store open(String name,String mode) throws IOException{
        return new KahaStore(name,mode);
    }
View Full Code Here

     * @param name of the database
     * @return true if successful
     * @throws IOException
     */
    public static boolean delete(String name) throws IOException{
        KahaStore store = new KahaStore(name,"rw");
        return store.delete();
    }
View Full Code Here

     * @param mode
     * @return the opened/created store
     * @throws IOException
     */
    public static Store open(String name, String mode) throws IOException {
        return new KahaStore(name, mode,new AtomicLong());
    }
View Full Code Here

     * @param mode
     * @return
     * @throws IOException
     */
    public static Store open(File directory, String mode) throws IOException {
        return new KahaStore(directory, mode, new AtomicLong());
    }
View Full Code Here

     * @param size
     * @return the opened/created store
     * @throws IOException
     */
    public static Store open(String name, String mode, AtomicLong size) throws IOException {
        return new KahaStore(name, mode,size);
    }
View Full Code Here

     * @param size
     * @return
     * @throws IOException
     */
    public static Store open(File directory, String mode, AtomicLong size) throws IOException {
        return new KahaStore(directory, mode, size);
    }
View Full Code Here

     * @param name of the database
     * @return true if successful
     * @throws IOException
     */
    public static boolean delete(String name) throws IOException {
        KahaStore store = new KahaStore(name, "rw");
        return store.delete();
    }
View Full Code Here

     * @param directory
     * @return true if successful
     * @throws IOException
     */
    public static boolean delete(File directory) throws IOException {
        KahaStore store = new KahaStore(directory, "rw");
        return store.delete();
    }
View Full Code Here

     * @param mode
     * @return the opened/created store
     * @throws IOException
     */
    public static Store open(String name, String mode) throws IOException {
        return new KahaStore(name, mode,new AtomicLong());
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.kaha.impl.KahaStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.