|
|||||||||
| Home >> All >> org >> mortbay >> [ loadbalancer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.loadbalancer
Class Server

java.lang.Objectorg.mortbay.util.LifeCycleThread
org.mortbay.loadbalancer.Server
- All Implemented Interfaces:
- org.mortbay.util.LifeCycle, java.lang.Runnable
- public class Server
- extends org.mortbay.util.LifeCycleThread
| Field Summary | |
(package private) java.net.InetSocketAddress |
_address
|
(package private) ByteBufferPool |
_bufferPool
|
(package private) java.util.ArrayList |
_pending
|
(package private) java.nio.channels.Selector |
_selector
|
private static org.apache.commons.logging.Log |
log
|
| Fields inherited from class org.mortbay.util.LifeCycleThread |
|
| Constructor Summary | |
Server()
|
|
Server(ByteBufferPool pool,
org.mortbay.util.InetAddrPort address)
|
|
Server(ByteBufferPool pool,
java.net.InetSocketAddress address)
|
|
| Method Summary | |
void |
connect(Connection connection)
|
ByteBufferPool |
getBufferPool()
|
java.net.InetSocketAddress |
getInetSocketAddress()
|
void |
loop()
|
void |
setBufferPool(ByteBufferPool bufferPool)
|
void |
setInetSocketAddress(java.net.InetSocketAddress address)
|
void |
start()
Start the LifeCycle. |
| Methods inherited from class org.mortbay.util.LifeCycleThread |
error, exception, getThread, isDaemon, isStarted, run, setDaemon, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
_selector
java.nio.channels.Selector _selector
_address
java.net.InetSocketAddress _address
_bufferPool
ByteBufferPool _bufferPool
_pending
java.util.ArrayList _pending
| Constructor Detail |
Server
public Server()
throws java.io.IOException
Server
public Server(ByteBufferPool pool, java.net.InetSocketAddress address) throws java.io.IOException
Server
public Server(ByteBufferPool pool, org.mortbay.util.InetAddrPort address) throws java.io.IOException
| Method Detail |
getInetSocketAddress
public java.net.InetSocketAddress getInetSocketAddress()
setInetSocketAddress
public void setInetSocketAddress(java.net.InetSocketAddress address)
getBufferPool
public ByteBufferPool getBufferPool()
setBufferPool
public void setBufferPool(ByteBufferPool bufferPool)
connect
public void connect(Connection connection) throws java.io.IOException
start
public void start()
throws java.lang.Exception
- Description copied from interface:
org.mortbay.util.LifeCycle - Start the LifeCycle.
loop
public void loop()
throws java.lang.Exception
|
|||||||||
| Home >> All >> org >> mortbay >> [ loadbalancer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC