winstone
Interface Cluster

All Known Implementing Classes:
SimpleCluster

public interface Cluster

Represents a cluster implementation, which is basically the communication mechanism between a group of winstone containers.

Version:
$Id: Cluster.java,v 1.5 2006/02/28 07:32:47 rickknowles Exp $
Author:
Rick Knowles

Method Summary
 WinstoneSession askClusterForSession(java.lang.String sessionId, WebAppConfiguration webAppConfig)
          Check if the other nodes in this cluster have a session for this sessionId.
 void clusterRequest(byte requestType, java.io.InputStream in, java.io.OutputStream out, java.net.Socket socket, HostGroup hostGroup)
          Accept a control socket request related to the cluster functions and process the request.
 void destroy()
          Destroy the maintenance thread if there is one.
 

Method Detail

destroy

void destroy()
Destroy the maintenance thread if there is one. Prepare for shutdown


askClusterForSession

WinstoneSession askClusterForSession(java.lang.String sessionId,
                                     WebAppConfiguration webAppConfig)
Check if the other nodes in this cluster have a session for this sessionId.

Parameters:
sessionId - The id of the session to check for
webAppConfig - The web app that owns the session we want
Returns:
A valid session instance

clusterRequest

void clusterRequest(byte requestType,
                    java.io.InputStream in,
                    java.io.OutputStream out,
                    java.net.Socket socket,
                    HostGroup hostGroup)
                    throws java.io.IOException
Accept a control socket request related to the cluster functions and process the request.

Parameters:
requestType - A byte indicating the request type
in - Socket input stream
outSocket - output stream
hostConfig - The collection of all local webapps
Throws:
java.io.IOException


Copyright © 2013. All Rights Reserved.