public interface MCMPHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addProxy(InetSocketAddress socketAddress)
Deprecated.
|
void |
addProxy(InetSocketAddress socketAddress,
boolean established)
|
void |
addProxy(ProxyConfiguration proxyConfiguration)
Add a proxy to the list of those with which this handler communicates.
|
void |
addProxy(ProxyConfiguration proxyConfiguration,
boolean established)
Add a proxy to the list of those with which this handler communicates.
|
Set<MCMPServerState> |
getProxyStates()
Get the state of all proxies
|
void |
init(Collection<ProxyConfiguration> initialProxies,
MCMPConnectionListener connectionListener)
Initialization method for MCMP handler.
|
boolean |
isProxyHealthOK()
Convenience method that checks whether the status of all proxies is
OK. |
void |
markProxiesInError()
|
void |
removeProxy(InetSocketAddress socketAddress)
Remove a proxy from the list of those with which this handler communicates.
|
void |
reset()
|
Map<MCMPServerState,String> |
sendRequest(MCMPRequest request)
Send a request to all healthy proxies.
|
Map<MCMPServerState,List<String>> |
sendRequests(List<MCMPRequest> requests)
Send a list of requests to all healthy proxies, with all requests in the list sent to each proxy before moving on to the
next.
|
void |
shutdown()
Perform any shut down work.
|
void |
status()
Perform periodic processing.
|
void init(Collection<ProxyConfiguration> initialProxies, MCMPConnectionListener connectionListener)
initialProxies - a collection of initial ProxyConfigurationsconnectionListener - connection listenervoid shutdown()
Map<MCMPServerState,String> sendRequest(MCMPRequest request)
request - the request. Cannot be nullMap<MCMPServerState,List<String>> sendRequests(List<MCMPRequest> requests)
requests - the requests. Cannot be null@Deprecated void addProxy(InetSocketAddress socketAddress)
addProxy(org.jboss.modcluster.config.ProxyConfiguration)status().
Same as addProxy(address, false.
socketAddress - InetSocketAddress on which the proxy listens for MCMP requestsvoid addProxy(ProxyConfiguration proxyConfiguration)
status().
Same as addProxy(proxyConfiguration, false).
proxyConfiguration - ProxyConfiguration defining address on which the proxy listens for MCMP requests
and optional local address to bind connections to@Deprecated void addProxy(InetSocketAddress socketAddress, boolean established)
status().socketAddress - InetSocketAddress on which the proxy listens for MCMP requestsestablished - true if the proxy should be considered established,
false otherwise.void addProxy(ProxyConfiguration proxyConfiguration, boolean established)
status().proxyConfiguration - ProxyConfiguration defining address on which the proxy listens for MCMP requests
and optional local address to bind connections toestablished - true if the proxy should be considered established,
false otherwise.void removeProxy(InetSocketAddress socketAddress)
status().socketAddress - InetSocketAddress on which the proxy listens for MCMP requestsSet<MCMPServerState> getProxyStates()
void reset()
void markProxiesInError()
boolean isProxyHealthOK()
OK.true if all proxies are OK, false otherwisevoid status()
addProxy(...) or
removeProxy(...). Attempt to establish communication with any proxies whose state is
ERROR. If successful and a ResetRequestSource has been provided, update the proxy
with the list of requests provided by the source.Copyright © 2023 JBoss by Red Hat. All rights reserved.