public class RemoteEngineProxy extends SessionProxy implements RemoteEngineSession
Modifier and Type | Class and Description |
---|---|
static class |
RemoteEngineProxy.Builder
Builder.
|
SessionProxy.Listener, SessionProxy.SessionConnectVetoException
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
protected Session |
createSession()
Creates a session.
|
void |
disposeContext(Serializable context)
Disposes of a context.
|
List<PointValue> |
execute(ResultValue resultValue,
String[] params,
Serializable context)
Executes the processing of a request for a result value.
|
static RemoteEngineProxy.Builder |
newBuilder()
Returns a new builder.
|
Serializable |
newContext(Params params,
Logger logger)
Returns a new context.
|
boolean |
setUp(String name,
Params params,
Config config,
Logger logger)
Sets up this engine executor.
|
void |
tearDown()
Tears down what has been set up.
|
connect, disconnect, getClientName, getConnectionMode, getContext, getContextUUID, getFactory, getServerName, getServerURI, getSession, getThisLogger, hasLoginInfo, isConnected, isPrivate, isRemote, lockConnect, lockConnectInterruptibly, login, logout, sessionException, sessionMode, unlockConnect
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionMode, login, logout
@Nonnull @CheckReturnValue public static RemoteEngineProxy.Builder newBuilder()
public void disposeContext(Serializable context) throws SessionException
disposeContext
in interface RemoteEngineSession
context
- The context.SessionException
- On session problems.public List<PointValue> execute(ResultValue resultValue, String[] params, Serializable context) throws SessionException
execute
in interface RemoteEngineSession
resultValue
- The requested result.params
- Result parameters.context
- The context.SessionException
public Serializable newContext(Params params, Logger logger) throws SessionException
newContext
in interface RemoteEngineSession
params
- The caller's params.logger
- The caller's logger.SessionException
- On session problems.public boolean setUp(String name, Params params, Config config, Logger logger) throws SessionException
setUp
in interface RemoteEngineSession
name
- The caller's name.params
- The caller's params.config
- The config.logger
- The caller's logger.SessionException
- From session security check.public void tearDown()
tearDown
in interface RemoteEngineSession
tearDown
in class SessionProxy
protected Session createSession() throws RemoteException, SessionException
createSession
in class SessionProxy
RemoteException
- From RMI.SessionException
- When session creation fails.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.