@ThreadSafe public class RemoteEngineFactoryImpl extends SessionFactoryImpl implements RemoteEngineFactory
Modifier and Type | Field and Description |
---|---|
static String |
EXECUTE_ROLE
The execute role.
|
static String |
ROLE_EXECUTE_PROPERTY
The role needed to submit updates to the server.
|
Constructor and Description |
---|
RemoteEngineFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
RemoteEngineSession |
createEngineSession(UUID uuid,
String clientName)
Creates a remote engine session.
|
protected void |
fillRolesMap()
Fills the role map.
|
protected Session |
newSession(Session.ConnectionMode connectionMode,
Optional<RMIClientSocketFactory> clientSocketFactory,
Optional<RMIServerSocketFactory> serverSocketFactory,
Object reference)
Returns a new session
|
boolean |
setUp(Config config)
Sets up this session factory.
|
addSession, close, createSecurityContext, createSession, createSession, equals, export, getConfig, getMappedRoles, getRealm, getSessionCount, getSessions, getThisLogger, hashCode, hasRolesMap, hasSecurityContext, isClosed, mapRoles, removeSession, tearDown, unexport
public static final String EXECUTE_ROLE
public static final String ROLE_EXECUTE_PROPERTY
public RemoteEngineSession createEngineSession(UUID uuid, String clientName) throws SessionException
createEngineSession
in interface RemoteEngineFactory
uuid
- A UUID used to locate the RMI client instance.clientName
- A descriptive name for the client.SessionException
- When the session creation fails.public boolean setUp(Config config)
setUp
in class SessionFactoryImpl
config
- The config.protected void fillRolesMap()
This associates internal roles to external required roles.
fillRolesMap
in class SessionFactoryImpl
protected Session newSession(Session.ConnectionMode connectionMode, Optional<RMIClientSocketFactory> clientSocketFactory, Optional<RMIServerSocketFactory> serverSocketFactory, Object reference)
newSession
in class SessionFactoryImpl
connectionMode
- The connection mode.clientSocketFactory
- The optional client socket factory.serverSocketFactory
- The optional server socket factory.reference
- A reference object.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.