metadata-profile-form-build.../src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/upload/UploadEvent.java

56 lines
1008 B
Java

package org.gcube.portlets.widgets.mpformbuilder.shared.upload;
/**
* The Interface UploadEvent.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Sep 1, 2015
*/
public interface UploadEvent {
/**
* Gets the read percentage.
*
* @return the read percentage
*/
int getReadPercentage();
/**
* Sets the read percentage.
*
* @param percentage
* the new read percentage
*/
void setReadPercentage(int percentage);
/**
* Sets the read time. (in millisecond) the difference, measured in
* milliseconds, between the current time and midnight, January 1, 1970 UTC.
*
* @param time
* the new read time
*/
void setReadTime(long time);
/**
* Gets the read time (in millisecond).
*
* @return the read time
*/
long getReadTime();
/**
* Gets the read bytes.
*
* @return the read bytes
*/
public long getReadBytes();
/**
* Gets the total bytes.
*
* @return the total bytes
*/
public long getTotalBytes();
}