org.mortbay.loadbalancer
Class Server
java.lang.Object
org.mortbay.util.LifeCycleThread
org.mortbay.loadbalancer.Server
- All Implemented Interfaces:
- java.lang.Runnable, LifeCycle
public class Server
- extends LifeCycleThread
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Server
public Server()
throws java.io.IOException
- Throws:
java.io.IOException
Server
public Server(ByteBufferPool pool,
java.net.InetSocketAddress address)
throws java.io.IOException
- Throws:
java.io.IOException
Server
public Server(ByteBufferPool pool,
InetAddrPort address)
throws java.io.IOException
- Throws:
java.io.IOException
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
- Throws:
java.io.IOException
start
public void start()
throws java.lang.Exception
- Description copied from interface:
LifeCycle
- Start the LifeCycle.
- Specified by:
start
in interface LifeCycle
- Overrides:
start
in class LifeCycleThread
- Throws:
java.lang.Exception
- An arbitrary exception may be thrown.
loop
public void loop()
throws java.lang.Exception
- Specified by:
loop
in class LifeCycleThread
- Throws:
java.lang.InterruptedException
java.io.InterruptedIOException
java.lang.Exception
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.