public final class ESServerFactoryImpl extends Object implements ESServerFactory
ESServer instances.| Modifier and Type | Field and Description |
|---|---|
static ESServerFactoryImpl |
INSTANCE
The factory instance.
|
| Modifier and Type | Method and Description |
|---|---|
ESServer |
createAndStartLocalServer()
Creates a server with a local name and launches a server process locally.
|
ESServer |
createServer(String url,
int port,
String certificate)
Creates a server without a local name.
|
ESServer |
createServer(String name,
String url,
int port,
String certificate)
Creates a server with a local name.
|
void |
stopLocalServer()
Stop the local server if it has been started.
|
public static final ESServerFactoryImpl INSTANCE
public ESServer createServer(String url, int port, String certificate)
ESWorkspace.addServer(ESServer) in order to
to avoid DanglingHREFExceptions upon saving.createServer in interface ESServerFactoryurl - the URL of the serverport - the port of the server where EMFStore is listing oncertificate - the certificate alias to be usedESServer instance representing the remote serverESServerFactory.createServer(java.lang.String, int, java.lang.String)public ESServer createServer(String name, String url, int port, String certificate)
ESWorkspace.addServer(ESServer) in order to
to avoid DanglingHREFExceptions upon saving.createServer in interface ESServerFactoryname - the local name of the serverurl - the URL of the serverport - the port of the server where EMFStore is listing oncertificate - the certificate alias to be usedESServer instance representing the remote serverESServerFactory.createServer(java.lang.String, java.lang.String, int,
java.lang.String)public ESServer createAndStartLocalServer() throws ESServerStartFailedException
ESWorkspace.addServer(ESServer) in order to
to avoid DanglingHREFExceptions upon saving.createAndStartLocalServer in interface ESServerFactoryESServer instance representing the local server on the client side.ESServerStartFailedException - if starting the server failsESServerFactory.createAndStartLocalServer()public void stopLocalServer()
stopLocalServer in interface ESServerFactoryESServerFactory.stopLocalServer()Copyright © 2017. All rights reserved.