public interface ModClusterServiceMBean
Modifier and Type | Method and Description |
---|---|
void |
addProxy(String host,
int port)
Add a proxy to the list of those with which this handler communicates.
|
boolean |
disable()
Disable all webapps for all engines.
|
boolean |
disableContext(String hostName,
String contextPath)
Disables the webapp with the specified host and context path.
|
boolean |
enable()
Enable all webapps for all engines.
|
boolean |
enableContext(String hostName,
String contextPath)
Enables the webapp with the specified host and context path.
|
Map<InetSocketAddress,String> |
getProxyConfiguration()
Retrieves the full proxy configuration.
|
Map<InetSocketAddress,String> |
getProxyInfo()
Retrieves the full proxy info message.
|
Map<InetSocketAddress,String> |
ping()
Ping httpd.
|
Map<InetSocketAddress,String> |
ping(String jvmRoute)
Ping a node from httpd.
|
Map<InetSocketAddress,String> |
ping(String scheme,
String hostname,
int port)
Ping a node defined protocol, host and port from httpd.
|
void |
refresh()
Refresh configuration.
|
void |
removeProxy(String host,
int port)
Remove a proxy from the list of those with which this handler communicates.
|
void |
reset()
Reset a DOWN connection to the proxy up to ERROR, where the configuration will be refreshed.
|
boolean |
stop(long timeout,
TimeUnit unit)
Attempts to gracefully stops all web applications, within the specified timeout.
|
boolean |
stopContext(String hostName,
String contextPath,
long timeout,
TimeUnit unit)
Attempts to gracefully stops a single web application, within the specified timeout.
|
void addProxy(String host, int port)
MCMPHandler.status()
.host
- the hostname of the proxy; a string suitable for passing to InetAddress.getByHost(...)
port
- the port on which the proxy listens for MCMP requestsvoid removeProxy(String host, int port)
MCMPHandler.status()
.host
- the hostname of the proxy; a string suitable for passing to InetAddress.getByHost(...)
port
- the port on which the proxy listens for MCMP requestsMap<InetSocketAddress,String> getProxyConfiguration()
DUMP
request to all proxies, returning the responses grouped by proxy address.Map<InetSocketAddress,String> getProxyInfo()
INFO
request to all proxies, returning the responses grouped by proxy address.Map<InetSocketAddress,String> ping()
Map<InetSocketAddress,String> ping(String jvmRoute)
jvmRoute
- a jvm route.Map<InetSocketAddress,String> ping(String scheme, String hostname, int port)
scheme
- ajp, http or httpshostname
- name or IP of a the hostport
- void reset()
void refresh()
boolean disable()
boolean enable()
boolean stop(long timeout, TimeUnit unit)
timeout
- number of units of time for which to wait for sessions to drain. Negative or zero timeout value will wait
forever.unit
- unit of time represented in timeout parameterboolean disableContext(String hostName, String contextPath)
hostName
- host name of the target webappcontextPath
- context path of the target webappboolean enableContext(String hostName, String contextPath)
hostName
- host name of the target webappcontextPath
- context path of the target webappboolean stopContext(String hostName, String contextPath, long timeout, TimeUnit unit)
timeout
- number of units of time for which to wait for sessions to drain. Negative or zero timeout value will wait
forever.unit
- unit of time represented in timeout parameterCopyright © 2023 JBoss by Red Hat. All rights reserved.