net.jradius.server
Class Processor

java.lang.Object
  extended by java.lang.Thread
      extended by net.jradius.server.JRadiusThread
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Processor()
           
 
Method Summary
 boolean getActive()
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
 EventDispatcher getEventDispatcher()
           
 List<JRCommand> getRequestHandlers()
           
 BlockingQueue<ListenerRequest> getRequestQueue()
           
 void process()
           
protected abstract  void processRequest(ListenerRequest listenerRequest)
           
 void run()
           
 void setActive(boolean active)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setEventDispatcher(EventDispatcher eventDispatcher)
           
 void setRequestHandlers(List<JRCommand> handlers)
           
 void setRequestQueue(BlockingQueue<ListenerRequest> q)
          Sets the request queue for this listener
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

Processor

public Processor()
Method Detail

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.