public class LaunchHandler
extends java.lang.Object
Contains the handler routines for the Admin Endpoint Extracted from Launch for testablity
Constructor and Description |
---|
LaunchHandler(Launch launch) |
Modifier and Type | Method and Description |
---|---|
void |
handlerAgentInfo(io.vertx.ext.web.RoutingContext ctx)
Sends the in-memory log of AsyncAgentInfo objects to the browser
|
void |
handlerConfig(io.vertx.ext.web.RoutingContext ctx) |
void |
handlerCreateKeys(io.vertx.ext.web.RoutingContext ctx)
Creates a new public/private key
|
void |
handlerDxl(io.vertx.ext.web.RoutingContext ctx)
Lists all the files from the dxl.d directory
|
void |
handlerEncode(io.vertx.ext.web.RoutingContext ctx)
Encodes a submitted shutdown key with bcrypt, so an admin can edit the config to alter the shutdown key
|
void |
handlerEventBus(io.vertx.ext.web.RoutingContext ctx) |
void |
handlerFactoryCache(io.vertx.ext.web.RoutingContext ctx)
Output all applications and logged out users in the factory cache
|
void |
handlerInfo(io.vertx.ext.web.RoutingContext ctx) |
void |
handlerReload(io.vertx.ext.web.RoutingContext ctx)
Reloads the whole KEEP infra
|
void |
handlerShowKeyXmlForSaml(io.vertx.ext.web.RoutingContext ctx)
Returns the IdP XML for SAML configuration
|
void |
handlerShutdown(io.vertx.ext.web.RoutingContext ctx)
Shuts down keep
|
void |
handlerStatus(io.vertx.ext.web.RoutingContext ctx) |
LaunchHandler |
setSystemInfo(io.vertx.core.json.JsonObject newSystemInfo) |
public LaunchHandler(Launch launch)
launch
- The launch configuration we handlepublic void handlerAgentInfo(io.vertx.ext.web.RoutingContext ctx)
Sends the in-memory log of AsyncAgentInfo objects to the browser
ctx
- The incoming routing contextpublic void handlerConfig(io.vertx.ext.web.RoutingContext ctx)
ctx
- The incoming routing contextpublic void handlerCreateKeys(io.vertx.ext.web.RoutingContext ctx)
Creates a new public/private key
ctx
- The incoming routing contextpublic void handlerDxl(io.vertx.ext.web.RoutingContext ctx)
Lists all the files from the dxl.d directory
ctx
- The incoming routing contextpublic void handlerEncode(io.vertx.ext.web.RoutingContext ctx)
Encodes a submitted shutdown key with bcrypt, so an admin can edit the config to alter the shutdown key
ctx
- routing contextpublic void handlerEventBus(io.vertx.ext.web.RoutingContext ctx)
ctx
- The incoming routing contextpublic void handlerFactoryCache(io.vertx.ext.web.RoutingContext ctx)
Output all applications and logged out users in the factory cache
ctx
- The incoming routing contextpublic void handlerInfo(io.vertx.ext.web.RoutingContext ctx)
ctx
- The incoming routing contextpublic void handlerReload(io.vertx.ext.web.RoutingContext ctx)
Reloads the whole KEEP infra
ctx
- The incoming routing contextpublic void handlerShowKeyXmlForSaml(io.vertx.ext.web.RoutingContext ctx)
Returns the IdP XML for SAML configuration
ctx
- ROuting contextpublic void handlerShutdown(io.vertx.ext.web.RoutingContext ctx)
Shuts down keep
ctx
- The incoming routing contextpublic void handlerStatus(io.vertx.ext.web.RoutingContext ctx)
ctx
- The incoming routing contextpublic LaunchHandler setSystemInfo(io.vertx.core.json.JsonObject newSystemInfo)
newSystemInfo
- the systemInfo to set