src.server
Class Processor

java.lang.Object
  extended bysrc.server.Processor

public class Processor
extends java.lang.Object

The processor takes queries and sends them on to their intended destination inside the server. The processor is also in charge of logging all incoming queries and maintaining a query cache. Implements singelton pattern.

Version:
2005-maj-01

Method Summary
 void addHelpText(java.lang.String helpTextName, java.lang.String helpText)
          Adds a help text to the system.
 void addModule(Module newModule)
          Adds a new module to the processors list.
static Processor getInstance()
          Used to get the object in singelton patterns.
 void processQuery(QueryPackage query)
          Send a query to its destination, logging an caching it on the way.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Processor getInstance()
Used to get the object in singelton patterns.

Returns:
The one instance of the class.

addModule

public void addModule(Module newModule)
Adds a new module to the processors list. The modules have to be added through one way or another before they can be used.

Parameters:
newModule - The module to add.

addHelpText

public void addHelpText(java.lang.String helpTextName,
                        java.lang.String helpText)
Adds a help text to the system.

Parameters:
helpTextName -
helpText -

processQuery

public void processQuery(QueryPackage query)
Send a query to its destination, logging an caching it on the way.

Parameters:
query - The query to process.