public interface TransferProgressMonitor
It contains a status, current position, end position, and a log. It can also store an exception.
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getLogInputStream(String transferId) |
TransferProgress |
getProgress(String transferId)
Read the progress of the
|
void |
logComment(String transferId,
Object obj)
log an ad-hoc message
|
void |
logCreated(String transferId,
NodeRef sourceNode,
NodeRef destNode,
NodeRef newParent,
String newPath,
boolean orphan)
Log the creation of a new node
|
void |
logDeleted(String transferId,
NodeRef sourceNode,
NodeRef destNode,
String path)
Log the deletion of a node
|
void |
logException(String transferId,
Object obj,
Throwable ex)
log an ad-hoc message and an exception
|
void |
logMoved(String transferId,
NodeRef sourceNodeRef,
NodeRef destNodeRef,
String oldPath,
NodeRef newParent,
String newPath)
After the transfer has completed this method reads the log.
|
void |
logUpdated(String transferId,
NodeRef sourceNode,
NodeRef destNode,
String path)
Log the creation of a new node
|
void |
updateProgress(String transferId,
int currPos)
update the progress of the specified transfer
|
void |
updateProgress(String transferId,
int currPos,
int endPos)
update the progress of the specified transfer and possibly change the end position.
|
void |
updateStatus(String transferId,
TransferProgress.Status status)
update the startus of the transfer
|
void logComment(String transferId, Object obj) throws TransferException
transferId - Stringobj - ObjectTransferExceptionvoid logException(String transferId, Object obj, Throwable ex) throws TransferException
transferId - Stringobj - Objectex - ThrowableTransferExceptionvoid logCreated(String transferId, NodeRef sourceNode, NodeRef destNode, NodeRef newParent, String newPath, boolean orphan)
transferId - StringsourceNode - NodeRefdestNode - NodeRefnewPath - Stringorphan - booleanvoid logUpdated(String transferId, NodeRef sourceNode, NodeRef destNode, String path)
transferId - StringsourceNode - NodeRefdestNode - NodeRefpath - The path of the updated nodevoid logDeleted(String transferId, NodeRef sourceNode, NodeRef destNode, String path)
transferId - StringsourceNode - NodeRefdestNode - NodeRefpath - The path of the deleted nodevoid logMoved(String transferId, NodeRef sourceNodeRef, NodeRef destNodeRef, String oldPath, NodeRef newParent, String newPath)
transferId - StringsourceNodeRef - NodeRefdestNodeRef - NodeRefoldPath - StringnewParent - NodeRefnewPath - Stringvoid updateProgress(String transferId, int currPos) throws TransferException
transferId - StringcurrPos - intTransferExceptionvoid updateProgress(String transferId, int currPos, int endPos) throws TransferException
transferId - StringcurrPos - intendPos - intTransferExceptionvoid updateStatus(String transferId, TransferProgress.Status status) throws TransferException
transferId - Stringstatus - TransferProgress.StatusTransferExceptionTransferProgress getProgress(String transferId) throws TransferException
transferId - StringTransferExceptionInputStream getLogInputStream(String transferId) throws TransferException
TransferExceptionCopyright © 2005–2020 Alfresco Software. All rights reserved.