org.apache.activemq.kaha
Class StoreFactory

java.lang.Object
  extended by org.apache.activemq.kaha.StoreFactory

public final class StoreFactory
extends Object

Factory for creating stores


Method Summary
static boolean delete(File directory)
          Delete a database
static boolean delete(String name)
          Delete a database
static Store open(File directory, String mode)
          Open or create a Store
static Store open(File directory, String mode, AtomicLong size)
          Open or create a Store
static Store open(String name, String mode)
          open or create a Store
static Store open(String name, String mode, AtomicLong size)
          open or create a Store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public static Store open(String name,
                         String mode)
                  throws IOException
open or create a Store

Parameters:
name -
mode -
Returns:
the opened/created store
Throws:
IOException

open

public static Store open(File directory,
                         String mode)
                  throws IOException
Open or create a Store

Parameters:
directory -
mode -
Returns:
Throws:
IOException

open

public static Store open(String name,
                         String mode,
                         AtomicLong size)
                  throws IOException
open or create a Store

Parameters:
name -
mode -
size -
Returns:
the opened/created store
Throws:
IOException

open

public static Store open(File directory,
                         String mode,
                         AtomicLong size)
                  throws IOException
Open or create a Store

Parameters:
directory -
mode -
size -
Returns:
Throws:
IOException

delete

public static boolean delete(String name)
                      throws IOException
Delete a database

Parameters:
name - of the database
Returns:
true if successful
Throws:
IOException

delete

public static boolean delete(File directory)
                      throws IOException
Delete a database

Parameters:
directory -
Returns:
true if successful
Throws:
IOException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.