com.caucho.server.cluster
Class ClusterPort

java.lang.Object
  extended by com.caucho.server.port.Port
      extended by com.caucho.server.cluster.ClusterPort
All Implemented Interfaces:
EnvironmentListener, java.lang.Runnable

public class ClusterPort
extends Port

Represents a protocol connection.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.server.port.Port
Port.SuspendReaper
 
Constructor Summary
ClusterPort(ClusterServer server)
           
 
Method Summary
 int getClientWeight()
          Return the client weight.
 ClusterServer getClusterServer()
          Returns the cluster server.
 int getIndex()
          Returns the session index for the srun.
 void init()
          Initializes the port.
 void setClientWeight(int weight)
          Set the client weight.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.port.Port
accept, allowKeepalive, bind, bind, bindForWatchdog, close, createJsse, createOpenssl, environmentBind, environmentConfigure, environmentStart, environmentStop, getAcceptListenBacklog, getAcceptThreadMax, getAcceptThreadMin, getActiveConnectionCount, getActiveThreadCount, getAddress, getAdmin, getCometIdleCount, getConnectionCount, getConnectionMax, getDuplexCount, getFreeKeepalive, getIdleThreadCount, getKeepaliveConnectionCount, getKeepaliveConnectionTimeMax, getKeepaliveCount, getKeepaliveMax, getKeepaliveSelectMax, getKeepaliveSelectThreadTimeout, getKeepaliveThreadCount, getKeepaliveTimeout, getLifecycleState, getLifetimeClientDisconnectCount, getLifetimeKeepaliveCount, getLifetimeReadBytes, getLifetimeRequestCount, getLifetimeRequestTime, getLifetimeWriteBytes, getPort, getProtocol, getProtocolName, getSelectConnectionCount, getSelectManager, getServer, getServerId, getSocketTimeout, getSSL, getSuspendTimeMax, getTcpNoDelay, getThreadCount, getThrottleConcurrentMax, getVirtualHost, isActive, isClosed, isIgnoreClientDisconnect, isSecure, isSSL, matchesServerId, postBind, run, setAcceptListenBacklog, setAcceptThreadMax, setAcceptThreadMin, setAddress, setClass, setConnectionMax, setHost, setId, setJsseSsl, setKeepaliveConnectionTimeMax, setKeepaliveMax, setKeepaliveTimeout, setMaxSpareListen, setMinSpareListen, setParent, setPort, setProtocol, setReadTimeout, setSecure, setServer, setServerId, setServerSocket, setSocketTimeout, setSSL, setSuspendTimeMax, setTcpNoDelay, setThrottleConcurrentMax, setType, setVirtualHost, setWriteTimeout, start, toURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterPort

public ClusterPort(ClusterServer server)
Method Detail

getClusterServer

public ClusterServer getClusterServer()
Returns the cluster server.


getIndex

public int getIndex()
Returns the session index for the srun.


setClientWeight

public void setClientWeight(int weight)
Set the client weight.


getClientWeight

public int getClientWeight()
Return the client weight.


init

public void init()
Description copied from class: Port
Initializes the port.

Overrides:
init in class Port

toString

public java.lang.String toString()
Overrides:
toString in class Port