public abstract class SOMServerImpl extends SessionFactoryImpl implements SOMServer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SOMServerImpl.Descriptor
Descriptor.
|
| Modifier and Type | Field and Description |
|---|---|
static ElapsedTime |
DEFAULT_KEEP_ALIVE
The default keep-alive.
|
static String |
DEFAULT_KEEP_ALIVE_PROPERTY
The default keep-alive property.
|
static String |
KEEP_ALIVE_PROPERTY
The keep-alive property.
|
static String |
READ_ROLE
The read role.
|
static String |
READ_ROLE_PROPERTY
The security role needed to read from this service.
|
static String |
WRITE_ROLE
The write role.
|
static String |
WRITE_ROLE_PROPERTY
The security role needed to write to this service.
|
BINDING_PROPERTY, DEFAULT_QUEUE_BINDING_PREFIX, DEFAULT_TOPIC_BINDING_PREFIX, NAME_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
SOMServerImpl(Optional<SessionSecurityContext> securityContext)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
bind()
Binds this server to the registry.
|
protected void |
fillRolesMap()
Fills the role map.
|
ElapsedTime |
getKeepAlive()
Gets the keep-alive value.
|
String |
getName()
Gets the name of this.
|
URI |
getURI()
Gets the URI.
|
boolean |
removeSession(SessionImpl session)
Removes a session from the set.
|
boolean |
setUp(Config config)
Sets up this session factory.
|
abstract boolean |
setUp(Config config,
KeyedGroups somProperties)
Sets up this server.
|
protected boolean |
setUp(Config config,
KeyedGroups somProperties,
String defaultBindingPrefix)
Sets up this server.
|
boolean |
stop(int timeout)
Stops this SOM service.
|
void |
tearDown()
Tears down what has been set up.
|
String |
toString() |
addSession, close, createSecurityContext, createSession, createSession, equals, export, getConfig, getMappedRoles, getRealm, getSessionCount, getSessions, getThisLogger, hashCode, hasRolesMap, hasSecurityContext, isClosed, mapRoles, newSession, unexportpublic static final ElapsedTime DEFAULT_KEEP_ALIVE
public static final String DEFAULT_KEEP_ALIVE_PROPERTY
public static final String KEEP_ALIVE_PROPERTY
public static final String READ_ROLE
public static final String READ_ROLE_PROPERTY
public static final String WRITE_ROLE
public static final String WRITE_ROLE_PROPERTY
protected SOMServerImpl(@Nonnull
Optional<SessionSecurityContext> securityContext)
securityContext - The optional security context.public ElapsedTime getKeepAlive()
getKeepAlive in interface SOMServerpublic final String getName()
@Nonnull @CheckReturnValue public URI getURI()
public boolean removeSession(SessionImpl session)
removeSession in interface SessionFactoryremoveSession in class SessionFactoryImplsession - The session.public final boolean setUp(Config config)
setUp in class SessionFactoryImplconfig - The config.@CheckReturnValue
public abstract boolean setUp(@Nonnull
Config config,
@Nonnull
KeyedGroups somProperties)
config - The configuration.somProperties - The queue properties.public final boolean stop(int timeout)
timeout - A time limit in millis to wait for clients (negative for
infinite).public void tearDown()
tearDown in class SessionFactoryImplpublic final String toString()
toString in class Object@CheckReturnValue protected boolean bind()
protected void fillRolesMap()
This associates internal roles to external required roles.
fillRolesMap in class SessionFactoryImpl@CheckReturnValue
protected boolean setUp(@Nonnull
Config config,
@Nonnull
KeyedGroups somProperties,
@Nonnull
String defaultBindingPrefix)
config - The configuration.somProperties - The queue properties.defaultBindingPrefix - The default binding prefix.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.