|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransferTransmitter
Method Summary | |
---|---|
void |
abort(Transfer transfer)
Abort the transfer |
Transfer |
begin(TransferTarget target,
java.lang.String fromRepositoryId,
TransferVersion fromVersion)
Begin a transfer, the transfer object returned will be used by subsequent calls to the transfer service. |
void |
commit(Transfer transfer)
|
TransferProgress |
getStatus(Transfer transfer)
Get the status of an in process transfer |
void |
getTransferReport(Transfer transfer,
java.io.OutputStream results)
Get the destination side transfer report from the destination and write it to the specified output stream. |
void |
prepare(Transfer transfer)
|
void |
sendContent(Transfer transfer,
java.util.Set data)
Send the content of the specified urls |
void |
sendManifest(Transfer transfer,
java.io.File manifest,
java.io.OutputStream results)
|
void |
verifyTarget(TransferTarget target)
Verify that the target is available |
Method Detail |
---|
void verifyTarget(TransferTarget target) throws TransferException
target
-
TransferException
Transfer begin(TransferTarget target, java.lang.String fromRepositoryId, TransferVersion fromVersion) throws TransferException
target
- definition of where to transfer to.fromRepositoryId
- the repositoryID of the sending systemfromVersion
- the version of the repository sending
TransferException
void sendManifest(Transfer transfer, java.io.File manifest, java.io.OutputStream results) throws TransferException
manifest,
- the transfer manifest filetransfer
- the transfer object returned by an earlier call to beginresults
- - where to write the results, probably a temporary file the output steam should be
open and will be closed before the method returns.
TransferException
void sendContent(Transfer transfer, java.util.Set data)
transfer
- the transfer object returned by an earlier call to begindata
- the content to send
TransferException
void prepare(Transfer transfer) throws TransferException
transfer
- the transfer object returned by an earlier call to begin
TransferException
void commit(Transfer transfer) throws TransferException
transfer
- the transfer object returned by an earlier call to begin
TransferException
void abort(Transfer transfer) throws TransferException
transfer
- the transfer object returned by an earlier call to begin
TransferException
TransferProgress getStatus(Transfer transfer) throws TransferException
TransferException
void getTransferReport(Transfer transfer, java.io.OutputStream results)
The result stream will be closed.
transfer
- the transfer object returned by an earlier call to beginresults
- - where to write the contents of the transfer report.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |