public class SpaceFactory
extends java.lang.Object
A space URI has three parts:
Examples:
// default unnamed space (tspace:default) Space sp = SpaceFactory.getSpace (); // transient space named "test" Space sp = SpaceFactory.getSpace ("transient:test"); // persistent space named "test" Space sp = SpaceFactory.getSpace ("persistent:test"); // jdbm space named test Space sp = SpaceFactory.getSpace ("jdbm:test"); // jdbm space named test, storage located in /tmp/test Space sp = SpaceFactory.getSpace ("jdbm:test:/tmp/test");
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static java.lang.String |
JDBM |
static java.lang.String |
JE |
static java.lang.String |
PERSISTENT |
static java.lang.String |
SPACELET |
static java.lang.String |
TRANSIENT |
static java.lang.String |
TSPACE |
Constructor and Description |
---|
SpaceFactory() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.ScheduledThreadPoolExecutor |
getGCExecutor() |
static Space |
getSpace() |
static Space |
getSpace(java.lang.String spaceUri) |
static Space |
getSpace(java.lang.String scheme,
java.lang.String name,
java.lang.String param) |
public static final java.lang.String TSPACE
public static final java.lang.String TRANSIENT
public static final java.lang.String PERSISTENT
public static final java.lang.String SPACELET
public static final java.lang.String JDBM
public static final java.lang.String JE
public static final java.lang.String DEFAULT
public static Space getSpace()
public static Space getSpace(java.lang.String spaceUri)
spaceUri
- public static Space getSpace(java.lang.String scheme, java.lang.String name, java.lang.String param)
public static java.util.concurrent.ScheduledThreadPoolExecutor getGCExecutor()