Class TransferProgress
- java.lang.Object
-
- org.alfresco.service.cmr.transfer.TransferProgress
-
public class TransferProgress extends java.lang.Object- Author:
- brian
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferProgress.Status
-
Constructor Summary
Constructors Constructor Description TransferProgress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentPosition()intgetEndPosition()java.lang.ThrowablegetError()TransferProgress.StatusgetStatus()static java.util.Set<TransferProgress.Status>getTerminalStatuses()booleanisFinished()voidsetCurrentPosition(int currentPosition)voidsetEndPosition(int endPosition)voidsetError(java.lang.Throwable error)voidsetStatus(TransferProgress.Status status)java.lang.StringtoString()
-
-
-
Method Detail
-
getTerminalStatuses
public static java.util.Set<TransferProgress.Status> getTerminalStatuses()
- Returns:
- The statuses that mark the end of the transfer. Once a transfer reaches one of these statuses it can never move into a different status.
-
isFinished
public boolean isFinished()
- Returns:
- true if the current status is one of the terminal statuses.
-
getStatus
public TransferProgress.Status getStatus()
- Returns:
- the status
-
setStatus
public void setStatus(TransferProgress.Status status)
- Parameters:
status- the status to set
-
getCurrentPosition
public int getCurrentPosition()
- Returns:
- the currentPosition
-
setCurrentPosition
public void setCurrentPosition(int currentPosition)
- Parameters:
currentPosition- the currentPosition to set
-
getEndPosition
public int getEndPosition()
- Returns:
- the endPosition
-
setEndPosition
public void setEndPosition(int endPosition)
- Parameters:
endPosition- the endPosition to set
-
getError
public java.lang.Throwable getError()
- Returns:
- the error
-
setError
public void setError(java.lang.Throwable error)
- Parameters:
error- the error to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-