org.neociclo.odetteftp.support
Class InOutSharedQueueOftpletFactory

java.lang.Object
  extended by org.neociclo.odetteftp.support.InOutSharedQueueOftpletFactory
All Implemented Interfaces:
OftpletFactory

public class InOutSharedQueueOftpletFactory
extends Object
implements OftpletFactory

Version:
$Rev: 818 $ $Date: 2010-10-20 22:18:00 -0200 (Wed, 20 Oct 2010) $
Author:
Rafael Marins

Constructor Summary
InOutSharedQueueOftpletFactory(OdetteFtpConfiguration config, MappedCallbackHandler callbackHandler, Queue<OdetteFtpObject> outgoing, Queue<OdetteFtpObject> outgoingDone, Queue<OdetteFtpObject> incoming)
          Constructor for this shared queue Oftplet factory implementation, supporting incoming and outgoing operations.
 
Method Summary
 Oftplet createProvider()
           
 OftpletEventListener getEventListener()
           
 void setEventListener(OftpletEventListener eventListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InOutSharedQueueOftpletFactory

public InOutSharedQueueOftpletFactory(OdetteFtpConfiguration config,
                                      MappedCallbackHandler callbackHandler,
                                      Queue<OdetteFtpObject> outgoing,
                                      Queue<OdetteFtpObject> outgoingDone,
                                      Queue<OdetteFtpObject> incoming)
Constructor for this shared queue Oftplet factory implementation, supporting incoming and outgoing operations. File receiving depends on the InOutEventListener to be accepted (saved in local system). If the incoming or outgoing constructor's arguments are not specified the OftpletListener and OftpletSpeaker are respectively will not be provided by the created Oftplet implementation.

Parameters:
config -
outgoing - queue of Odette FTP objects, Virtual File and Delivery Notifications, for transmission.
outgoingDone - where outgoing Odette FTP objects are pulled to after the protocol send is acknowledged from the outgoing queue. For instance, when a file is completely transmitted with an EFPA or when the EERP/NERP is sent and returned a RTR command.
incoming - where incoming Odette FTP objects, received Virtual Files and Delivery Notifications, are kept.
Method Detail

createProvider

public Oftplet createProvider()
Specified by:
createProvider in interface OftpletFactory

setEventListener

public void setEventListener(OftpletEventListener eventListener)

getEventListener

public OftpletEventListener getEventListener()


ACCORD