|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecoverableFileChannel
This is an implementation of Channel that is used to transfer a file between clients.
Channel
Field Summary | |
---|---|
static int |
RFC_CANCELLED
The File transfer has been cancelled. |
static int |
RFC_CLOSED
The File transfer has been closed. |
static int |
RFC_DISCONNECT
The broker QueueConnection being used to transfer the file has disconnected. |
static int |
RFC_LOCAL_ERROR
There has been an error at the local client during the transfer. |
static int |
RFC_PRE_CONNECT_ATTEMPT
The File channel has been restored, but continueTransfer() has not yet been called. |
static int |
RFC_REMOTE_ERROR
There has been an error at the remote client during the transfer. |
static int |
RFC_RETRY_TIMEOUT
The File transfer is currently timed out. |
static int |
RFC_TRANSFER_COMPLETE
The File transfer has completed. |
static int |
RFC_TRANSFERRING
The File is currently transferring. |
static int |
RFC_WAITING_CONNECT
The File transfer is waiting for a connect with the remote client. |
Method Summary | |
---|---|
void |
cancel()
Cancel the channel. |
boolean |
isSaving()
Return whether or not this Recoverable file channel is actively saving information to a file. |
void |
save(java.io.File file)
Save the file associated with this channel to the given File reference. |
void |
setBlockSize(int size)
Sets the block size Upon receipt of a file, information is read from the network into an internal buffer, then onto disk. |
void |
setDES(java.security.Key key)
Set the RecoverableFileChannel as DES secure. |
void |
setDESede(java.security.Key key)
Set the RecoverableFileChannel as Triple DES secure. |
Methods inherited from interface progress.message.jclient.Channel |
---|
close, completeConnect, completeTransfer, continueTransfer, getChannelID, getChannelStatus, getFragmentSize, getRetryCount, getRetryInterval, getTimeout, getWindowSize, setChannelListener, setFragmentSize, setRetryCount, setRetryInterval, setTimeout, setUUID, setWindowSize |
Field Detail |
---|
static final int RFC_TRANSFERRING
The value of RFC_TRANSFERRING is equal to 0
static final int RFC_TRANSFER_COMPLETE
The value of RFC_TRANSFER_COMPLETE is equal to 1
static final int RFC_CANCELLED
The value of RFC_CANCELLED is equal to 2
static final int RFC_CLOSED
The value of RFC_CLOSED is equal to 3
static final int RFC_WAITING_CONNECT
The value of RFC_WAITING_CONNECT is equal to 4
static final int RFC_RETRY_TIMEOUT
The value of RFC_RETRY_TIMEOUT is equal to 5
static final int RFC_PRE_CONNECT_ATTEMPT
The value of RFC_PRE_CONNECT_ATTEMPT is equal to 6
static final int RFC_DISCONNECT
The value of RFC_DISCONNECT is equal to 7
static final int RFC_REMOTE_ERROR
The value of RFC_REMOTE_ERROR is equal to 8
static final int RFC_LOCAL_ERROR
The value of RFC_LOCAL_ERROR is equal to 9
Method Detail |
---|
void save(java.io.File file) throws JMSException, java.io.IOException
file
- The file to save the information too.
JMSException
- If there is an internal JMS Error
java.io.IOException
- If there are internal File I/O problems.boolean isSaving() throws JMSException
True
if this channel is actively saving information
to a file. False
if not.
JMSException
- If there is an internal JMS Error.void cancel() throws JMSException
Closes the channel and removes any recovery information.
JMSException
void setBlockSize(int size) throws JMSException
Upon receipt of a file, information is read from the network into an internal buffer, then onto disk. The bigger the buffer, the larger the chunks written to disk, the more information that may need to be resent in case of failure.
size
- The size, in bytes, of the buffer.
JMSException
- If there is an internal JMS Exception.void setDES(java.security.Key key) throws JMSException
This command will cause the RecoverableFileChannel to read a file as if it has been DES encrypted, and write the file as DES encrypted.
key
- The key to encrypt/decrypt with.
JMSException
- If there is an internal JMS exception.void setDESede(java.security.Key key) throws JMSException
This command will cause the RecoverableFileChannel to read a file as if it has been Triple DES encrypted, and write the file as Triple DES encrypted.
key
- The key to encrypt/decrypt with.
JMSException
- If there is an internal JMS exception.
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |