|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.db.server.Server
The Server class is the glue that holds the dbXML server together. It is used to bootstrap the server as well as to instantiate and start the various system services.
Constructor Summary | |
Server()
|
|
Server(java.lang.String name)
|
Method Summary | |
void |
addTask(Task task,
long interval)
addTask adds an interval Task to the Server instance or overrides a previously defined interval. |
static Server |
getInstance()
getInstance returns the VM's Server instance. |
Service |
getService(java.lang.String name)
getService retrieves a registered Service by name. |
boolean |
isRunning()
isRunning returns whether or not the Services are all running. |
java.lang.String[] |
listServices()
listServices lists the names of all registered Services. |
static void |
main(java.lang.String[] args)
|
void |
removeTask(Task task)
removeTasks removes an interval Task from the Server instance. |
void |
shutDown(int exitCode)
shutDown shuts down the Server instance. |
static void |
stop(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Server()
public Server(java.lang.String name)
Method Detail |
public static void main(java.lang.String[] args)
public static void stop(java.lang.String[] args)
public static Server getInstance()
public void addTask(Task task, long interval)
task
- The Task to addinterval
- The Interval (milliseconds)public void removeTask(Task task)
task
- The task to removepublic void shutDown(int exitCode)
exitCode
- The shutdown exit codepublic boolean isRunning()
public java.lang.String[] listServices()
public Service getService(java.lang.String name)
name
- The Service name
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |