it.eng.spagobi.tools.scheduler.dispatcher
Class FileSystemDocumentDispatcher

java.lang.Object
  extended by it.eng.spagobi.tools.scheduler.dispatcher.FileSystemDocumentDispatcher
All Implemented Interfaces:
IDocumentDispatchChannel

public class FileSystemDocumentDispatcher
extends java.lang.Object
implements IDocumentDispatchChannel

Author:
Andrea Gioia (andrea.gioia@eng.it)

Constructor Summary
FileSystemDocumentDispatcher(DispatchContext dispatchContext)
           
 
Method Summary
 boolean canDispatch(BIObject document)
           
 void close()
           
 java.io.File createErrorFile(BIObject biObj, java.lang.Throwable error, java.util.Map randomNamesToName)
           
 boolean dispatch(BIObject document, byte[] executionOutput)
           
 void setDispatchContext(DispatchContext dispatchContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemDocumentDispatcher

public FileSystemDocumentDispatcher(DispatchContext dispatchContext)
Method Detail

canDispatch

public boolean canDispatch(BIObject document)
Specified by:
canDispatch in interface IDocumentDispatchChannel

dispatch

public boolean dispatch(BIObject document,
                        byte[] executionOutput)
Specified by:
dispatch in interface IDocumentDispatchChannel

close

public void close()
Specified by:
close in interface IDocumentDispatchChannel

createErrorFile

public java.io.File createErrorFile(BIObject biObj,
                                    java.lang.Throwable error,
                                    java.util.Map randomNamesToName)

setDispatchContext

public void setDispatchContext(DispatchContext dispatchContext)
Specified by:
setDispatchContext in interface IDocumentDispatchChannel