|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.upc.dama.dex.core.DEX
public final class DEX
Initial class of the DEX library.
All DEX programs must have one single DEX instance which manages one
or more GraphPools. This class allows for the creation of new
GraphPools (DEX.create(File,String)), or the management of
existing ones (DEX.open(File)). When the DEX instance is closed
all its GraphPools are closed too.
| Nested Class Summary | |
|---|---|
static class |
DEX.Config
DEX core configuration parameters. |
static class |
DEX.SystemStatistics
Statistics of the system. |
| Constructor Summary | |
|---|---|
DEX()
Creates a new instance of DEX. |
|
DEX(DEX.Config cfg)
Creates a new instance of DEX. |
|
DEX(java.lang.String license)
Creates a new instance of DEX. |
|
| Method Summary | |
|---|---|
void |
close()
Closes all the working GraphPools. |
GraphPool |
create(java.io.File img)
Creates a new empty persistent graph database. |
GraphPool |
create(java.io.File img,
java.lang.String alias)
Creates a new empty persistent graph database. |
GraphPool |
create(java.lang.String img)
Creates a new empty persistent graph database. |
GraphPool |
create(java.lang.String img,
java.lang.String alias)
Creates a new empty persistent graph database. |
java.util.Set |
getGraphPools()
Gets all GraphPools of the DEX instance. |
static DEX.SystemStatistics |
getSystemStatistics()
Gets some statistics of the system DEX.SystemStatistics |
static java.lang.String |
getVersion()
Gets the version of the DEX software library. |
boolean |
isOpen()
Gets if the DEX is open. |
GraphPool |
open(java.io.File img)
Opens a persistent graph database. |
GraphPool |
open(java.lang.String img)
Opens a persistent graph database. |
GraphPool |
openReadOnly(java.io.File img)
Opens a persistent graph database in read only mode. |
GraphPool |
openReadOnly(java.lang.String img)
Opens a persistent graph database in read only mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DEX(java.lang.String license)
DEX.
public DEX(DEX.Config cfg)
DEX.
It allows for setting some configuration parameters such as
memory buffers size and others.
public DEX()
DEX.
| Method Detail |
|---|
public boolean isOpen()
DEX is open.
Only opened DEXs can execute methods, otherwise
they will fail.
true if the DEX is open,
false otherwise.public void close()
GraphPools.
It is important to close DEX as soon as possible
to free its memory resources.
close in interface java.io.Closeable
public GraphPool create(java.lang.String img)
throws java.io.FileNotFoundException
img - File name to store the persistent graph database.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool create(java.lang.String img,
java.lang.String alias)
throws java.io.FileNotFoundException
img - File name to store the persistent graph database.alias - Alias name for the persistent graph database.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool create(java.io.File img)
throws java.io.FileNotFoundException
img - File to store the persistent graph database.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool create(java.io.File img,
java.lang.String alias)
throws java.io.FileNotFoundException
img - File to store the persistent graph database.alias - Alias name for the persistent graph database.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool open(java.lang.String img)
throws java.io.FileNotFoundException
img - File name where the persistent graph database is stored.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool openReadOnly(java.lang.String img)
throws java.io.FileNotFoundException
img - File name where the persistent graph database is stored.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool open(java.io.File img)
throws java.io.FileNotFoundException
img - File name where the persistent graph database is stored.
GraphPool instance.
java.io.FileNotFoundException
public GraphPool openReadOnly(java.io.File img)
throws java.io.FileNotFoundException
img - File name where the persistent graph database is stored.
GraphPool instance.
java.io.FileNotFoundExceptionpublic java.util.Set getGraphPools()
GraphPools of the DEX instance.
GraphPool set of the DEX instance.public static java.lang.String getVersion()
public static DEX.SystemStatistics getSystemStatistics()
DEX.SystemStatistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||