|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.radekzitek.userver.ListenerThread
The base class for the listener implementing classes.
| Field Summary | |
protected HandlerPool |
hp
Handler pool. |
private static org.apache.log4j.Logger |
LOG
Log4j logger. |
| Constructor Summary | |
ListenerThread()
Default constructor. |
|
| Method Summary | |
void |
configure(java.util.Properties lc)
Method to configure listener based on the configuration managed by the Configuration class. |
protected abstract void |
listen()
Protorype for the actual listener work method. |
protected abstract void |
localConfigure(java.util.Properties lc)
Prototype for the implemetation specific configuration method. |
void |
registerHandlerPool(HandlerPool hp)
Method to register the HandlerPool which manages the handlers for this listener. |
void |
run()
The execution method of the thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final org.apache.log4j.Logger LOG
protected HandlerPool hp
| Constructor Detail |
public ListenerThread()
| Method Detail |
public void run()
run in interface java.lang.RunnableRunnable.run()
protected abstract void listen()
throws ListenerThreadException
ListenerThreadException - Any exceptions caught within the listener implementation must
be dealt with or propagated out as a ListenerThreadException.
public void configure(java.util.Properties lc)
throws ListenerConfigurationException
lc - properies relevant to this listener
ListenerConfigurationException - Thrown by the implementation class in case of configuration
problems.
protected abstract void localConfigure(java.util.Properties lc)
throws ListenerConfigurationException
lc - properties relevant to the listener
ListenerConfigurationException - Thrown by the implementation class in case of configuration
problems.public void registerHandlerPool(HandlerPool hp)
hp - the HandlerPool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||