org.gridbus.broker.persistence
Class PersistenceFactory

java.lang.Object
  extended by org.gridbus.broker.persistence.PersistenceFactory

public class PersistenceFactory
extends java.lang.Object

Author:
krishna

Field Summary
static int DB
          Database persistence mode
static int UNKNOWN
          Unknown persistence mode
static int XML
          XML persistence mode
 
Constructor Summary
PersistenceFactory(java.lang.Object config)
           
 
Method Summary
 Reader getReader(java.lang.String type, boolean connectAtStart)
           
 Writer getWriter(java.lang.String type, boolean connectAtStart)
           
static java.lang.String persistenceType(int type)
          Returns the string representation of the int type given.
static int persistenceType(java.lang.String type)
          Returns the int representation of the string type given.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML

public static final int XML
XML persistence mode

See Also:
Constant Field Values

DB

public static final int DB
Database persistence mode

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Unknown persistence mode

See Also:
Constant Field Values
Constructor Detail

PersistenceFactory

public PersistenceFactory(java.lang.Object config)
Parameters:
config -
Method Detail

persistenceType

public static final java.lang.String persistenceType(int type)
Returns the string representation of the int type given.

Parameters:
type -
Returns:

persistenceType

public static final int persistenceType(java.lang.String type)
Returns the int representation of the string type given.

Parameters:
type -
Returns:

getWriter

public Writer getWriter(java.lang.String type,
                        boolean connectAtStart)
                 throws java.lang.Exception
Parameters:
type -
connectAtStart -
Returns:
Throws:
java.lang.Exception

getReader

public Reader getReader(java.lang.String type,
                        boolean connectAtStart)
                 throws java.lang.Exception
Parameters:
type -
connectAtStart -
Returns:
Throws:
java.lang.Exception