Package org.alfresco.repo.transfer
Interface TransferTransmitter
- All Known Implementing Classes:
HttpClientTransmitterImpl
public interface TransferTransmitter
- Author:
- brian
-
Method Summary
Modifier and TypeMethodDescriptionvoidAbort the transferbegin(TransferTarget target, String fromRepositoryId, TransferVersion fromVersion) Begin a transfer, the transfer object returned will be used by subsequent calls to the transfer service.voidGet the status of an in process transfervoidgetTransferReport(Transfer transfer, OutputStream results) Get the destination side transfer report from the destination and write it to the specified output stream.voidvoidsendContent(Transfer transfer, Set<ContentData> data) Send the content of the specified urlsvoidsendManifest(Transfer transfer, File manifest, OutputStream results) voidverifyTarget(TransferTarget target) Verify that the target is available
-
Method Details
-
verifyTarget
Verify that the target is available- Parameters:
target- TransferTarget- Throws:
TransferException
-
begin
Transfer begin(TransferTarget target, String fromRepositoryId, TransferVersion fromVersion) throws TransferException Begin a transfer, the transfer object returned will be used by subsequent calls to the transfer service.- Parameters:
target- definition of where to transfer to.fromRepositoryId- the repositoryID of the sending systemfromVersion- the version of the repository sending- Returns:
- the transfer object or null if the target cannot be locked.
- Throws:
TransferException
-
sendManifest
- Parameters:
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.- Throws:
TransferException
-
sendContent
Send the content of the specified urls- Parameters:
transfer- the transfer object returned by an earlier call to begindata- the content to send- Throws:
TransferException
-
prepare
- Parameters:
transfer- the transfer object returned by an earlier call to begin- Throws:
TransferException
-
commit
- Parameters:
transfer- the transfer object returned by an earlier call to begin- Throws:
TransferException
-
abort
Abort the transfer- Parameters:
transfer- the transfer object returned by an earlier call to begin- Throws:
TransferException
-
getStatus
Get the status of an in process transfer- Throws:
TransferException
-
getTransferReport
Get the destination side transfer report from the destination and write it to the specified output stream.The result stream will be closed.
- Parameters:
transfer- the transfer object returned by an earlier call to beginresults- - where to write the contents of the transfer report.
-