com.caucho.server.cluster
Class ClusterStream

java.lang.Object
  extended by com.caucho.server.cluster.ClusterStream

public class ClusterStream
extends java.lang.Object

Defines a connection to the client.


Field Summary
protected static java.util.logging.Logger log
           
 
Method Summary
 void clearRecycle()
          Clears the recycled connections.
 void close()
           
 void free()
          Recycles.
 java.lang.String getDebugId()
          Returns the debug id.
 long getFreeTime()
          Returns the free time.
 ReadStream getReadStream()
          Returns the input stream.
 ServerConnector getServer()
          Returns the cluster server.
 WriteStream getWriteStream()
          Returns the write stream.
 boolean isLongIdle()
          Returns true if nearing end of free time.
 void setFreeTime(long freeTime)
          Sets the free time.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Method Detail

getServer

public ServerConnector getServer()
Returns the cluster server.


getReadStream

public ReadStream getReadStream()
Returns the input stream.


getWriteStream

public WriteStream getWriteStream()
Returns the write stream.


getFreeTime

public long getFreeTime()
Returns the free time.


setFreeTime

public void setFreeTime(long freeTime)
Sets the free time.


isLongIdle

public boolean isLongIdle()
Returns true if nearing end of free time.


getDebugId

public java.lang.String getDebugId()
Returns the debug id.


clearRecycle

public void clearRecycle()
Clears the recycled connections.


free

public void free()
Recycles.


close

public void close()

toString

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