org.mortbay.loadbalancer

Class Listener

Implemented Interfaces:
LifeCycle, Runnable

public class Listener
extends LifeCycleThread

Constructor Summary

Listener()
Listener(ByteBufferPool pool, InetSocketAddress address, Policy policy)
Listener(ByteBufferPool pool, InetAddrPort address, Policy policy)

Method Summary

ByteBufferPool
getBufferPool()
InetSocketAddress
getInetSocketAddress()
Policy
getPolicy()
Selector
getSelector()
void
loop()
void
setBufferPool(ByteBufferPool bufferPool)
void
setInetSocketAddress(InetSocketAddress address)
void
start()
Start the LifeCycle.
void
stop()

Methods inherited from class org.mortbay.util.LifeCycleThread

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

Constructor Details

Listener

public Listener()
            throws IOException

Listener

public Listener(ByteBufferPool pool,
                InetSocketAddress address,
                Policy policy)
            throws IOException

Listener

public Listener(ByteBufferPool pool,
                InetAddrPort address,
                Policy policy)
            throws IOException

Method Details

getBufferPool

public ByteBufferPool getBufferPool()

getInetSocketAddress

public InetSocketAddress getInetSocketAddress()

getPolicy

public Policy getPolicy()

getSelector

public Selector getSelector()

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
Start the LifeCycle.
Specified by:
start in interface LifeCycle
Overrides:
start in interface LifeCycleThread

stop

public void stop()
            throws InterruptedException
Specified by:
stop in interface LifeCycle
Overrides:
stop in interface LifeCycleThread

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