org.gcube.portlets.user.td.gwtservice.shared.file
Class FileUploadMonitor

java.lang.Object
  extended by org.gcube.portlets.user.td.gwtservice.shared.file.FileUploadMonitor
All Implemented Interfaces:
Serializable

public class FileUploadMonitor
extends Object
implements Serializable

Author:
"Giancarlo Panichi" g.panichi@isti.cnr.it
See Also:
Serialized Form

Field Summary
protected  long elaboratedLenght
           
protected  String failureDetails
           
protected  String failureReason
           
protected  float percentDone
           
protected  FileUploadState state
           
protected  long totalLenght
           
 
Constructor Summary
FileUploadMonitor()
           
FileUploadMonitor(long totalLenght, long elaboratedLenght, FileUploadState state, String failureReason)
           
 
Method Summary
 long getElaboratedLenght()
           
 String getFailureDetails()
           
 String getFailureReason()
           
 float getPercentDone()
           
 FileUploadState getState()
           
 long getTotalLenght()
           
 void setElaboratedLenght(long elaboratedLenght)
           
 void setFailed(String failureReason, String failureDetails)
           
 void setFailureDetails(String failureDetails)
           
 void setFailureReason(String failureReason)
           
 void setPercentDone(float percentDone)
           
 void setState(FileUploadState state)
           
 void setTotalLenght(long totalLenght)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalLenght

protected long totalLenght

elaboratedLenght

protected long elaboratedLenght

state

protected FileUploadState state

failureReason

protected String failureReason

failureDetails

protected String failureDetails

percentDone

protected float percentDone
Constructor Detail

FileUploadMonitor

public FileUploadMonitor()

FileUploadMonitor

public FileUploadMonitor(long totalLenght,
                         long elaboratedLenght,
                         FileUploadState state,
                         String failureReason)
Method Detail

getTotalLenght

public long getTotalLenght()
Returns:
the totalLenght

getElaboratedLenght

public long getElaboratedLenght()
Returns:
the elaboratedLenght

getState

public FileUploadState getState()

getFailureDetails

public String getFailureDetails()
Returns:
the failureDetails

getPercentDone

public float getPercentDone()

setPercentDone

public void setPercentDone(float percentDone)

setFailureReason

public void setFailureReason(String failureReason)

setFailureDetails

public void setFailureDetails(String failureDetails)

setState

public void setState(FileUploadState state)

getFailureReason

public String getFailureReason()
Returns:
the reason

setTotalLenght

public void setTotalLenght(long totalLenght)
Parameters:
totalLenght - the totalLenght to set

setElaboratedLenght

public void setElaboratedLenght(long elaboratedLenght)
Parameters:
elaboratedLenght - the elaboratedLenght to set

setFailed

public void setFailed(String failureReason,
                      String failureDetails)
Parameters:
failed - the failed to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.