org.mortbay.loadbalancer
Class Connection
java.lang.Object
org.mortbay.loadbalancer.Connection
- public class Connection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Connection
public Connection(ByteBufferPool bufferPool,
Listener listener,
java.nio.channels.SocketChannel client,
int capacity)
getClientSocketChannel
public java.nio.channels.SocketChannel getClientSocketChannel()
client2server
public void client2server(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Throws:
java.io.IOException
serverWriteWakeup
public void serverWriteWakeup(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Throws:
java.io.IOException
server2client
public void server2client(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Throws:
java.io.IOException
clientWriteWakeup
public void clientWriteWakeup(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Throws:
java.io.IOException
allocate
public void allocate(Server server,
int allocationTry)
throws java.io.IOException
- Throws:
java.io.IOException
deallocate
public void deallocate()
throws java.io.IOException
- Throws:
java.io.IOException
connected
public void connected(java.nio.channels.SocketChannel channel,
java.nio.channels.Selector selector)
throws java.io.IOException
- Throws:
java.io.IOException
isAllocated
public boolean isAllocated()
close
public void close()
toString
public java.lang.String toString()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.