|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.j2ep.servers.ClusterContainer.ClusteredServer
protected class ClusterContainer.ClusteredServer
A server in the cluster. Will have access to the encapsulating Cluster so that we can use its methods to get the rule and such.
| Constructor Summary | |
|---|---|
ClusterContainer.ClusteredServer(java.lang.String domainName,
java.lang.String path,
java.lang.String serverId)
Basic constructor that sets the domain name and directory. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDomainName()
Returns the host name and port for this server. |
java.lang.String |
getPath()
Returns the path that we are mapping to. |
Rule |
getRule()
Returns the mapped rule so we can rewrite links. |
java.lang.String |
getServerId()
Returns this servers ID. |
boolean |
online()
Returns the online status of this server |
HttpServletResponse |
postExecute(HttpServletResponse response)
Will wrap the response so that sessions are rewritten to remove the tailing .something that indicated which server the session is linked to. |
HttpServletRequest |
preExecute(HttpServletRequest request)
Will wrap the request so the tailing .something, identifying the server, is removed from the request. |
void |
setConnectionExceptionRecieved(java.lang.Exception e)
Notifies the server status checker that a server might have gone offline. |
void |
setOnline(boolean online)
Marks if this server should be considered online or offline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterContainer.ClusteredServer(java.lang.String domainName,
java.lang.String path,
java.lang.String serverId)
domainName - The domain namepath - The directory| Method Detail |
|---|
public HttpServletRequest preExecute(HttpServletRequest request)
preExecute in interface Serverrequest - The request we are receiving
net.sf.j2ep.model.Server#preExecute(javax.servlet.http.HttpServletRequest)public HttpServletResponse postExecute(HttpServletResponse response)
postExecute in interface Serverresponse - The response we are receiving
net.sf.j2ep.model.Server#postExecute(javax.servlet.http.HttpServletResponse)public void setConnectionExceptionRecieved(java.lang.Exception e)
setConnectionExceptionRecieved in interface Servere - The exception received when trying to use this servers dataServer.setConnectionExceptionRecieved(java.lang.Exception)public java.lang.String getDomainName()
Server
getDomainName in interface ServerServer.getDomainName()public java.lang.String getPath()
Server
getPath in interface ServerServer.getPath()public boolean online()
public void setOnline(boolean online)
online - The status of the serverpublic Rule getRule()
Server
getRule in interface ServerServer.getRule()public java.lang.String getServerId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||