org.mmbase.applications.xmlimporter
Class TransactionHandler

java.lang.Object
  extended byorg.mmbase.util.functions.FunctionProvider
      extended byorg.mmbase.module.Module
          extended byorg.mmbase.applications.xmlimporter.TransactionHandler

public class TransactionHandler
extends Module

This class parses the TML code and calls the appropriate methods in TransactionManager TemporarayNodeManager org.mmabse.module.core Furthermore is does some nameserving.

Since:
MMBase-1.5
Version:
$Id: TransactionHandler.java,v 1.10 2006/05/15 10:14:34 andre Exp $
Author:
John Balder: 3MPS, Rob Vermeulen: VPRO, Rob van Maris: Finnalist IT Group, Erik Visser: Finnalist IT Group

Field Summary
 
Fields inherited from class org.mmbase.module.Module
getMaintainerFunction, getVersionFunction
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
TransactionHandler()
          Create new TransactionHandler.
 
Method Summary
 void handleTransaction(Reader input, Consultant consultant)
          parses transactions xml file delivered by the reader and executes the TCP commands.
 void handleTransactionAsynchronously(Reader input, Consultant consultant)
          starts handleTransaction(java.io.Reader input) in a seperate thread
 void init()
          Initialize the transactionhandler module.
 void onload()
          This method is called on loading of the transactionhandler module and writes a log entry that the TransactionHandler is loaded.
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModules, getName, getProperties, getProperty, getVersion, hasStarted, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state
 
Methods inherited from class org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionHandler

public TransactionHandler()
Create new TransactionHandler.

Method Detail

onload

public void onload()
This method is called on loading of the transactionhandler module and writes a log entry that the TransactionHandler is loaded.

Overrides:
onload in class Module

init

public void init()
Initialize the transactionhandler module.

Overrides:
init in class Module

handleTransactionAsynchronously

public void handleTransactionAsynchronously(Reader input,
                                            Consultant consultant)
starts handleTransaction(java.io.Reader input) in a seperate thread

Parameters:
input - input
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.

handleTransaction

public void handleTransaction(Reader input,
                              Consultant consultant)
parses transactions xml file delivered by the reader and executes the TCP commands.

Parameters:
input - the connection to the input source
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.


MMBase build 1.8.1.20060716