public class JGroupsServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_ATTRIBUTE |
| Constructor and Description |
|---|
JGroupsServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.jgroups.conf.ProtocolStackConfigurator |
getProtocolStackConfigurator(String baseConfigLocation,
Map<String,String> protocolParameters) |
void |
init() |
protected void |
onChannelConnected(org.jgroups.JChannel channel,
String clusterName)
Callback method for sub-classes.
|
protected void |
onChannelConnectError(org.jgroups.JChannel channel,
String clusterName,
Throwable e)
Callback method for sub-classes.
|
protected void |
onChannelCreated(org.jgroups.JChannel channel)
Callback method for sub-classes.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic static final String CHANNEL_ATTRIBUTE
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic org.jgroups.conf.ProtocolStackConfigurator getProtocolStackConfigurator(String baseConfigLocation, Map<String,String> protocolParameters)
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void onChannelCreated(org.jgroups.JChannel channel)
channel - The channel that was createdprotected void onChannelConnected(org.jgroups.JChannel channel,
String clusterName)
channel - The channel that connected the clusterclusterName - The name of the cluster that was connectedprotected void onChannelConnectError(org.jgroups.JChannel channel,
String clusterName,
Throwable e)
channel - The channel that should have connected the clusterclusterName - The name of the cluster that was tried to connecte - The errorCopyright © 2016–2019 mklinger GmbH. All rights reserved.