xmlBlaster 2.2.0 contributions API

org.xmlBlaster.contrib.filewriter
Class FileWriterCallback

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.xmlBlaster.contrib.ContribConstants
FILE_DATE, FILENAME_ATTR, FILENAME_ATTR_OLD_FASHION, SUBDIR_ATTR, TIMESTAMP_ATTR, TOPIC_NAME
 
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
 

Constructor Detail

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
Method Detail

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 name
attrMap - A map with attribute, can be null
Throws:
java.lang.Exception

xmlBlaster 2.2.0 contributions API

Copyright © 1999-2014 The xmlBlaster.org contributers.