net.jradius.server
Class Processor
java.lang.Object
java.lang.Thread
net.jradius.server.JRadiusThread
net.jradius.server.Processor
- All Implemented Interfaces:
- Runnable, org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
- RadiusProcessor
public abstract class Processor
- extends JRadiusThread
- implements org.springframework.context.ApplicationContextAware
Base abstract class of all Processors
- Author:
- Gert Jan Verhoog, David Bird
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
log
protected org.apache.commons.logging.Log log
Processor
public Processor()
setRequestQueue
public void setRequestQueue(BlockingQueue<ListenerRequest> q)
- Sets the request queue for this listener
- Parameters:
q
- the RequestQueue;
getRequestQueue
public BlockingQueue<ListenerRequest> getRequestQueue()
getEventDispatcher
public EventDispatcher getEventDispatcher()
setEventDispatcher
public void setEventDispatcher(EventDispatcher eventDispatcher)
setRequestHandlers
public void setRequestHandlers(List<JRCommand> handlers)
getRequestHandlers
public List<JRCommand> getRequestHandlers()
processRequest
protected abstract void processRequest(ListenerRequest listenerRequest)
throws Exception
- Throws:
Exception
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
process
public void process()
throws Exception
- Throws:
Exception
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
getActive
public boolean getActive()
setActive
public void setActive(boolean active)
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.