dimawo.fileTransfer
Interface FileTransferMessageFactory
- All Known Implementing Classes:
- DFSMessageFactory, TestFactory
public interface FileTransferMessageFactory
This interface describes the methods that must be implemented by a file
transfer message factory.
The message factory is required in order to
instantiate messages that will be correctly routed on reception. Indeed,
there are 2 types of routing implemented by
Communicator
and
DistributedAgent
(see Communicator's message handling method
).
In the case where routing is delegated to DistributedAgent, the type (i.e.
the class) of a message is used to route it to the good agent. The message
factory is therefore used by file transfer components in order to instantiate
messages with the right type in order to be routed correctly.
- Author:
- Gerard Dethier
newGetFileRequest
GetFileRequest newGetFileRequest(String fileUID,
boolean isFileName)
newGetNextChunkMessage
GetNextChunkRequest newGetNextChunkMessage(String fileUID)
newChunkMessage
ChunkMessage newChunkMessage(String fileUID,
byte[] data,
boolean isLast)
newErrorMessage
ErrorMessage newErrorMessage(String msg,
String fileUID)
newPingClientMessage
PingClientMessage newPingClientMessage()
newPingServerMessage
PingServerMessage newPingServerMessage()
Copyright © 2011 DiMaWo Team. All Rights Reserved.