org.mmbase.applications.xmlimporter
Class TransactionHandler
java.lang.Object
org.mmbase.util.functions.FunctionProvider
org.mmbase.module.Module
org.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionHandler
public TransactionHandler()
- Create new TransactionHandler.
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 - inputconsultant - 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 sourceconsultant - 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