|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.core.Kernel
public final class Kernel
The DRAGOS kernel is the component that holds everything together.
The kernel consists of a couple of kernel modules and light-weight tasks. Tasks are used for jobs which must be executed at specific intervals (like garbage collection). Kernel modules are used to make up different components of the database like event handling or transaction managment.
Method Summary | |
---|---|
static Kernel |
getInstance()
Returns the one and only instance of the DRAGOS Kernel. |
java.lang.String |
getName()
Gets the kernel's name. |
TaskScheduler |
getScheduler()
Returns the task scheduler. |
void |
setName(java.lang.String name)
Sets the kernel's name; may only be called once (by ConfigurationLoader during initialization). |
static void |
startup()
Starts the kernel and configures it using the configuration file stored in the standard location. |
static void |
startup(java.io.File configFile)
Starts the kernel and configures it using the specified configuration file. |
static void |
startup(java.lang.String configFile)
Deprecated. Use startup(File) to pass a file locator as configuration. |
static void |
startup(java.net.URL config)
Starts the kernel and configures it using the specified configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void startup()
public static void startup(java.io.File configFile)
configFile
- The configuration file for the kernel.public static void startup(java.net.URL config)
config
- The configuration file for the kernel.@Deprecated public static void startup(java.lang.String configFile)
startup(File)
to pass a file locator as configuration.
configFile
- The configuration file for the kernel.public TaskScheduler getScheduler()
public static Kernel getInstance()
null
is returned the kernel must be started by using the
method startup
.
public java.lang.String getName()
null
if not set yet).public void setName(java.lang.String name) throws DragosException
name
- the kernel's name (must not be null
and must not contain any of the following characters: :/&?).
DragosException
- if the parameter is null
or a name was already set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |