org.alfresco.service.cmr.transfer
Class TransferProgress

java.lang.Object
  extended by org.alfresco.service.cmr.transfer.TransferProgress

public class TransferProgress
extends java.lang.Object


Nested Class Summary
static class TransferProgress.Status
           
 
Constructor Summary
TransferProgress()
           
 
Method Summary
 int getCurrentPosition()
           
 int getEndPosition()
           
 java.lang.Throwable getError()
           
 TransferProgress.Status getStatus()
           
static java.util.Set getTerminalStatuses()
           
 boolean isFinished()
           
 void setCurrentPosition(int currentPosition)
           
 void setEndPosition(int endPosition)
           
 void setError(java.lang.Throwable error)
           
 void setStatus(TransferProgress.Status status)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransferProgress

public TransferProgress()
Method Detail

getTerminalStatuses

public static java.util.Set 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:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.