public class RunConfig
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RunConfig.RunConfigBuilder
RunConfigBuilder class for simplyfied configuration of the run configuration.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
EVENTBUS_BRIDGE_PING_INTERVAL |
static java.lang.String[] |
PROFILE_PROPERTIES_PROVIDED_BY_THE_CLIENT |
static java.lang.String[] |
PROFILE_PROPERTIES_PROVIDED_BY_THE_PROXY |
static java.lang.String |
ROLE_PATTERN |
static java.lang.String |
ROOT |
static java.lang.String |
SERVER_ARRIVAL_TIMESTAMP_HEADER |
static java.lang.String |
SERVER_NAME |
static java.lang.String |
SERVER_ROOT |
static java.lang.String |
SERVER_TIMESTAMP_HEADER |
| Constructor and Description |
|---|
RunConfig(io.vertx.core.Vertx vertx,
io.vertx.redis.RedisClient redisClient,
java.lang.Class verticleClass,
org.swisspush.gateleen.routing.Router router,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
org.swisspush.gateleen.queue.queuing.QueueBrowser queueBrowser,
org.swisspush.gateleen.core.cors.CORSHandler corsHandler,
org.swisspush.gateleen.scheduler.SchedulerResourceManager schedulerResourceManager,
org.swisspush.gateleen.validation.ValidationResourceManager validationResourceManager,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.core.configuration.ConfigurationResourceManager configurationResourceManager,
org.swisspush.gateleen.queue.queuing.circuitbreaker.configuration.QueueCircuitBreakerConfigurationResourceManager queueCircuitBreakerConfigurationResourceManager,
org.swisspush.gateleen.core.event.EventBusHandler eventBusHandler,
org.swisspush.gateleen.validation.ValidationHandler validationHandler,
org.swisspush.gateleen.hook.HookHandler hookHandler,
org.swisspush.gateleen.user.UserProfileHandler userProfileHandler,
org.swisspush.gateleen.user.RoleProfileHandler roleProfileHandler,
org.swisspush.gateleen.expansion.ExpansionHandler expansionHandler,
org.swisspush.gateleen.delta.DeltaHandler deltaHandler,
org.swisspush.gateleen.security.authorization.Authorizer authorizer,
org.swisspush.gateleen.core.resource.CopyResourceHandler copyResourceHandler,
org.swisspush.gateleen.qos.QoSHandler qosHandler,
org.swisspush.gateleen.core.property.PropertyHandler propertyHandler,
org.swisspush.gateleen.expansion.ZipExtractHandler zipExtractHandler,
org.swisspush.gateleen.delegate.DelegateHandler delegateHandler,
org.swisspush.gateleen.merge.MergeHandler mergeHandler) |
| Modifier and Type | Method and Description |
|---|---|
static io.vertx.core.json.JsonObject |
buildMetricsConfig()
Builds a standard metrics configuration.
|
static io.vertx.core.json.JsonObject |
buildModRedisConfig(java.lang.String redisHost,
int redisPort)
Builds a standard mod redis configuration.
|
static java.util.Map<java.lang.String,java.lang.Object> |
buildRedisProps(java.lang.String redisHost,
int redisPort)
Builds redis properties configuration.
|
static io.vertx.core.json.JsonObject |
buildRedisquesConfig()
Builds a standard redisques configuration.
|
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
buildRoutingContextHandler()
Builds a handler for
RoutingContexts with a "default" behaviour. |
static io.vertx.core.json.JsonObject |
buildStorageConfig()
Builds a standard storage configuration.
|
static org.swisspush.gateleen.user.UserProfileConfiguration |
buildUserProfileConfiguration()
Builds a standard UserProfileConfiguration.
|
static void |
deployModules(io.vertx.core.Vertx vertx,
java.lang.Class verticleClass,
java.util.Map<java.lang.String,java.lang.Object> props,
io.vertx.core.Handler<java.lang.Boolean> handler)
Deploys the following modules in this order:
org.swisspush.redisques.RedisQues
org.swisspush.reststorage.RestStorageMod
org.swisspush.metrics.MetricsModule
The handler is called with Boolean.TRUE when all modules have been deployed successfully.
|
static java.util.Map<java.lang.String,java.lang.Object> |
subMap(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String prefix) |
static RunConfig.RunConfigBuilder |
with() |
public static final java.lang.String SERVER_TIMESTAMP_HEADER
public static final java.lang.String SERVER_ARRIVAL_TIMESTAMP_HEADER
public static final long EVENTBUS_BRIDGE_PING_INTERVAL
public static final java.lang.String ROOT
public static final java.lang.String SERVER_NAME
public static final java.lang.String SERVER_ROOT
public static final java.lang.String ROLE_PATTERN
public static final java.lang.String[] PROFILE_PROPERTIES_PROVIDED_BY_THE_PROXY
public static final java.lang.String[] PROFILE_PROPERTIES_PROVIDED_BY_THE_CLIENT
public RunConfig(io.vertx.core.Vertx vertx,
io.vertx.redis.RedisClient redisClient,
java.lang.Class verticleClass,
org.swisspush.gateleen.routing.Router router,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
org.swisspush.gateleen.queue.queuing.QueueBrowser queueBrowser,
org.swisspush.gateleen.core.cors.CORSHandler corsHandler,
org.swisspush.gateleen.scheduler.SchedulerResourceManager schedulerResourceManager,
org.swisspush.gateleen.validation.ValidationResourceManager validationResourceManager,
org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
org.swisspush.gateleen.core.configuration.ConfigurationResourceManager configurationResourceManager,
org.swisspush.gateleen.queue.queuing.circuitbreaker.configuration.QueueCircuitBreakerConfigurationResourceManager queueCircuitBreakerConfigurationResourceManager,
org.swisspush.gateleen.core.event.EventBusHandler eventBusHandler,
org.swisspush.gateleen.validation.ValidationHandler validationHandler,
org.swisspush.gateleen.hook.HookHandler hookHandler,
org.swisspush.gateleen.user.UserProfileHandler userProfileHandler,
org.swisspush.gateleen.user.RoleProfileHandler roleProfileHandler,
org.swisspush.gateleen.expansion.ExpansionHandler expansionHandler,
org.swisspush.gateleen.delta.DeltaHandler deltaHandler,
org.swisspush.gateleen.security.authorization.Authorizer authorizer,
org.swisspush.gateleen.core.resource.CopyResourceHandler copyResourceHandler,
org.swisspush.gateleen.qos.QoSHandler qosHandler,
org.swisspush.gateleen.core.property.PropertyHandler propertyHandler,
org.swisspush.gateleen.expansion.ZipExtractHandler zipExtractHandler,
org.swisspush.gateleen.delegate.DelegateHandler delegateHandler,
org.swisspush.gateleen.merge.MergeHandler mergeHandler)
public static RunConfig.RunConfigBuilder with()
public static java.util.Map<java.lang.String,java.lang.Object> buildRedisProps(java.lang.String redisHost,
int redisPort)
public static io.vertx.core.json.JsonObject buildModRedisConfig(java.lang.String redisHost,
int redisPort)
public static io.vertx.core.json.JsonObject buildMetricsConfig()
public static io.vertx.core.json.JsonObject buildRedisquesConfig()
public static io.vertx.core.json.JsonObject buildStorageConfig()
public static org.swisspush.gateleen.user.UserProfileConfiguration buildUserProfileConfiguration()
public static void deployModules(io.vertx.core.Vertx vertx,
java.lang.Class verticleClass,
java.util.Map<java.lang.String,java.lang.Object> props,
io.vertx.core.Handler<java.lang.Boolean> handler)
The handler is called with Boolean.TRUE when all modules have been deployed successfully. When any of the modules could not be deployed correctly, the handler returns Boolean.FALSE.
vertx - verticleClass - props - handler - public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> buildRoutingContextHandler()
RoutingContexts with a "default" behaviour.public static java.util.Map<java.lang.String,java.lang.Object> subMap(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String prefix)