public class EMFStoreController extends Object implements org.eclipse.equinox.app.IApplication, Runnable
EMFStoreController is controlling startup and shutdown of the
EmfStore.| Constructor and Description |
|---|
EMFStoreController() |
| Modifier and Type | Method and Description |
|---|---|
AccessControl |
getAccessControl()
Returns the
AccessControl component of the EMFStore controller. |
static EMFStoreController |
getInstance()
Return the singleton instance of EmfStoreControler.
|
ServerSpace |
getServerSpace()
Returns the
ServerSpace. |
void |
run() |
void |
run(boolean waitForTermination)
Run the server.
|
static EMFStoreController |
runAsNewThread()
Starts the server in a new thread.
|
void |
shutdown(FatalESException exception)
Shutdown EmfStore due to an fatal exception.
|
Object |
start(org.eclipse.equinox.app.IApplicationContext context) |
void |
stop() |
void |
stopServer()
Stops the EMFStore gracefully.
|
public Object start(org.eclipse.equinox.app.IApplicationContext context) throws FatalESException
start in interface org.eclipse.equinox.app.IApplicationFatalESExceptionIApplication.start(org.eclipse.equinox.app.IApplicationContext)public void run(boolean waitForTermination)
throws FatalESException
waitForTermination - true if the server should force the calling thread to wait for
its terminationFatalESException - if the server fails fatallypublic static EMFStoreController getInstance()
public void stopServer()
public void shutdown(FatalESException exception)
exception - the fatal exception that triggered the shutdownpublic void run()
run in interface RunnableRunnable.run()public static EMFStoreController runAsNewThread() throws FatalESException
FatalESException - in case of failurepublic ServerSpace getServerSpace()
ServerSpace.public AccessControl getAccessControl()
AccessControl component of the EMFStore controller.AccessControl componentpublic void stop()
stop in interface org.eclipse.equinox.app.IApplicationIApplication.stop()Copyright © 2017. All rights reserved.