Top Description Fields Constructors Methods
io.undertow.server.handlers.proxy.mod_cluster

pack-priv Class MCMPWebManager

extends MCMPHandler
Class Inheritance
Imports
io.undertow.io.Sender, io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.util.Headers, .HttpString, .Methods, .StatusCodes, java.io.IOException, java.security.SecureRandom, java.util.ArrayList, .Deque, .LinkedHashMap, .List, .Map, .Random, java.util.concurrent.TimeUnit

The mod cluster manager web frontend.
Author
Emanuel Muckenhuber

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private String
private final Random
r

private final boolean
Inherited from io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler:
CONFIGcontainerDISABLE_APPDUMPENABLE_APPINFOMOD_CLUSTER_EXPOSED_VERSIONPINGREMOVE_APPSTATUSSTOP_APPVERSION_PROTOCOL

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static MCMPHandler.RequestData
pack-priv void
contextCommandString(StringBuilder buf, String uri, Context.Status status, String path, List<String> alias, String jvmRoute)

pack-priv static void
contextString(StringBuilder buf, String path, List<String> alias, String jvmRoute)

pack-priv void
pack-priv String
pack-priv synchronized String
protected void
handleRequest(HttpString
the http method
method
,
HttpServerExchange
the http server exchange
exchange
)

Overrides io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler.handleRequest.

Handle a management+ request.

protected boolean
pack-priv void
private void
printInfoContexts(StringBuilder buf, String uri, boolean reduceDisplay, boolean allowCmd, long host, Node.VHostMapping vhost, Node node)

private void
printInfoHost(StringBuilder buf, String uri, boolean reduceDisplay, boolean allowCmd, final Node node)

pack-priv static void
printProxyStat(StringBuilder buf, Node node, boolean reduceDisplay)

pack-priv void
private void
Inherited from io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler:
checkHostUpcheckStringhandleRequestparseFormDataprocessAppCommandprocessCommandprocessDumpprocessDumpStringprocessErrorprocessErrorprocessInfoprocessInfoStringprocessNodeCommandprocessNodeCommandprocessOKprocessPingprocessStatussendResponse

Field Detail

allowCmdback to summary
private final boolean allowCmd
checkNonceback to summary
private final boolean checkNonce
nonceback to summary
private String nonce
rback to summary
private final Random r
reduceDisplayback to summary
private final boolean reduceDisplay

Constructor Detail

MCMPWebManagerback to summary
pack-priv MCMPWebManager(MCMPConfig.MCMPWebManagerConfig config, ModCluster modCluster, HttpHandler next)

Method Detail

buildRequestDataback to summary
pack-priv static MCMPHandler.RequestData buildRequestData(final HttpServerExchange exchange, Map<String, Deque<String>> params)
contextCommandStringback to summary
pack-priv void contextCommandString(StringBuilder buf, String uri, Context.Status status, String path, List<String> alias, String jvmRoute)
contextStringback to summary
pack-priv static void contextString(StringBuilder buf, String path, List<String> alias, String jvmRoute)
domainCommandStringback to summary
pack-priv void domainCommandString(StringBuilder buf, String uri, MCMPHandler.MCMPAction status, String lbgroup)
getNonceback to summary
pack-priv String getNonce()
getRawNonceback to summary
pack-priv synchronized String getRawNonce()
handleRequestback to summary
protected void handleRequest(HttpString method, HttpServerExchange exchange) throws Exception

Overrides io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler.handleRequest.

Doc from io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler.handleRequest.

Handle a management+ request.

Parameters
method:HttpString

the http method

exchange:HttpServerExchange

the http server exchange

Annotations
@Override
handlesMethodback to summary
protected boolean handlesMethod(HttpString method)

Overrides io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler.handlesMethod.

nodeCommandStringback to summary
pack-priv void nodeCommandString(StringBuilder buf, String uri, MCMPHandler.MCMPAction status, String jvmRoute)
printInfoContextsback to summary
private void printInfoContexts(StringBuilder buf, String uri, boolean reduceDisplay, boolean allowCmd, long host, Node.VHostMapping vhost, Node node)
printInfoHostback to summary
private void printInfoHost(StringBuilder buf, String uri, boolean reduceDisplay, boolean allowCmd, final Node node)
printProxyStatback to summary
pack-priv static void printProxyStat(StringBuilder buf, Node node, boolean reduceDisplay)
processDomainCmdback to summary
pack-priv void processDomainCmd(HttpServerExchange exchange, String domain, MCMPHandler.MCMPAction action) throws IOException
processRequestback to summary
private void processRequest(HttpServerExchange exchange) throws IOException