org.mortbay.loadbalancer

Class Server

Implemented Interfaces:
LifeCycle, Runnable

public class Server
extends LifeCycleThread

Constructor Summary

Server()
Server(ByteBufferPool pool, InetSocketAddress address)
Server(ByteBufferPool pool, InetAddrPort address)

Method Summary

void
connect(Connection connection)
ByteBufferPool
getBufferPool()
InetSocketAddress
getInetSocketAddress()
void
loop()
void
setBufferPool(ByteBufferPool bufferPool)
void
setInetSocketAddress(InetSocketAddress address)
void
start()

Methods inherited from class org.mortbay.util.LifeCycleThread

error, exception, getThread, isDaemon, isStarted, loop, run, setDaemon, start, stop

Constructor Details

Server

public Server()
            throws IOException

Server

public Server(ByteBufferPool pool,
              InetSocketAddress address)
            throws IOException

Server

public Server(ByteBufferPool pool,
              InetAddrPort address)
            throws IOException

Method Details

connect

public void connect(Connection connection)
            throws IOException

getBufferPool

public ByteBufferPool getBufferPool()

getInetSocketAddress

public InetSocketAddress getInetSocketAddress()

loop

public void loop()
            throws Exception
Overrides:
loop in interface LifeCycleThread

setBufferPool

public void setBufferPool(ByteBufferPool bufferPool)

setInetSocketAddress

public void setInetSocketAddress(InetSocketAddress address)

start

public void start()
            throws Exception
Specified by:
start in interface LifeCycle
Overrides:
start in interface LifeCycleThread

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.