storage.trans
Class TransientDriver

java.lang.Object
  extended byorg.nodal.Nodal.DriverBase
      extended bystorage.trans.TransientDriver
All Implemented Interfaces:
RepositoryDriver

public final class TransientDriver
extends Nodal.DriverBase

This RepositoryDriver creates and manages instances of TransientRepository which represents Nodes and data entirely in transient memory. Created on Oct 8, 2003

Author:
leei

Method Summary
 boolean accepts(Path p)
          We can only create a TransientRepository instance if its name has the prefix memory://transient or memory://audited
 java.lang.String description()
          Return a description of this RepositoryDriver.
 Repository openRepository(Path path)
          Open (or reopen) one of the supported repositories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

description

public java.lang.String description()
Description copied from interface: RepositoryDriver
Return a description of this RepositoryDriver.

Returns:
a String describing this driver

accepts

public boolean accepts(Path p)
We can only create a TransientRepository instance if its name has the prefix memory://transient or memory://audited

Parameters:
p - an absolute Path that identifies a Repository
Returns:
true if the given url may be opened by this driver

openRepository

public Repository openRepository(Path path)
Open (or reopen) one of the supported repositories. We distinguish between the two kinds of memory-based repositories by the prefix. If this is memory://transient then the repository is unaudited (i.e. without a transaction record), whereas if it is of the form memory://audited.

Parameters:
path - a Path for an object contained within a Repository handled by this driver
Returns:
an open Repository containing this URL or null if unable to open