org.xmlBlaster.contrib.filewriter
Class FileWriterCallback
java.lang.Object
org.xmlBlaster.contrib.filewriter.FileWriterCallback
- All Implemented Interfaces:
- ContribConstants, I_Update
public class FileWriterCallback
- extends java.lang.Object
- implements I_Update, ContribConstants
FileWriterCallback stores messages to the file system.
- Author:
- Michele Laghi
Constructor Summary |
FileWriterCallback(java.lang.String dirName,
java.lang.String tmpDirName,
java.lang.String lockExtention,
boolean overwrite,
boolean keepDumpFiles)
Creates a callback |
Method Summary |
void |
update(java.lang.String topic,
java.io.InputStream is,
java.util.Map attrMap)
The message received from the MoM or from another source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileWriterCallback
public FileWriterCallback(java.lang.String dirName,
java.lang.String tmpDirName,
java.lang.String lockExtention,
boolean overwrite,
boolean keepDumpFiles)
throws java.lang.Exception
- Creates a callback
- Parameters:
dirName
- The name of the directory where to store the files.tmpDirName
- the name of the directory where to store the temporary files.lockExtention
- The extension to use to lock the reading of the file. This is used if the
entries have to be retrieved by the file poller. Until such a file exists, the entry is not
processed by the file poller.overwrite
- if set to true it will overwrite existing files.
- Throws:
java.lang.Exception
update
public void update(java.lang.String topic,
java.io.InputStream is,
java.util.Map attrMap)
throws java.lang.Exception
- Description copied from interface:
I_Update
- The message received from the MoM or from another source.
- Specified by:
update
in interface I_Update
- Parameters:
topic
- The topic nameattrMap
- A map with attribute, can be null
- Throws:
java.lang.Exception
Copyright © 1999-2014 The xmlBlaster.org contributers.