net.y3n20u.aeszip
クラス ArchiveProgressStatus

java.lang.Object
  上位を拡張 net.y3n20u.aeszip.ArchiveProgressStatus

public class ArchiveProgressStatus
extends Object

This class represents the progress status of archiving. Each numbers will be negative if unknown.

作成者:
y3n20u@gmail.com

コンストラクタの概要
ArchiveProgressStatus(int totalElementCount, int processedElementCount, long estimatedSizeTotal, long processedSizeTotal, long estimatedSizeCurrent, long processedSizeCurrent)
           
ArchiveProgressStatus(int totalElementCount, int processedElementCount, long estimatedSizeTotal, long processedSizeTotal, long estimatedSizeCurrent, long processedSizeCurrent, String processedSourceName, String destinationName)
           
 
メソッドの概要
 ArchiveProgressStatus generateUpdatedStatus(long increments)
          Generate a new status object updated only current and total processed size.
 ArchiveProgressStatus generateUpdatedStatusWithNextEntry(long nextEntrySize, String newSource, String newDestination)
          Generate a new status object for next entry.
 String getDestinationName()
           
 long getEstimatedSizeCurrent()
           
 long getEstimatedSizeTotal()
           
 int getProcessedElementCount()
           
 long getProcessedSizeCurrent()
           
 long getProcessedSizeTotal()
           
 String getProcessedSourceName()
           
 double getProgressPercentageCurrent()
           
 double getProgressPercentageTotal()
           
 int getTotalElementCount()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ArchiveProgressStatus

public ArchiveProgressStatus(int totalElementCount,
                             int processedElementCount,
                             long estimatedSizeTotal,
                             long processedSizeTotal,
                             long estimatedSizeCurrent,
                             long processedSizeCurrent,
                             String processedSourceName,
                             String destinationName)

ArchiveProgressStatus

public ArchiveProgressStatus(int totalElementCount,
                             int processedElementCount,
                             long estimatedSizeTotal,
                             long processedSizeTotal,
                             long estimatedSizeCurrent,
                             long processedSizeCurrent)
メソッドの詳細

generateUpdatedStatus

public ArchiveProgressStatus generateUpdatedStatus(long increments)
Generate a new status object updated only current and total processed size. Add the value of the argument to the current processed size and the total processed size.

パラメータ:
increments - variation of the processed size of current entry.
戻り値:
generated status

generateUpdatedStatusWithNextEntry

public ArchiveProgressStatus generateUpdatedStatusWithNextEntry(long nextEntrySize,
                                                                String newSource,
                                                                String newDestination)
Generate a new status object for next entry. This method generates a status object that has increased count of processed elements and zero for the processed size of the current entry.

パラメータ:
nextEntrySize - the estimated size of the next entry.
戻り値:
generated status

getTotalElementCount

public int getTotalElementCount()

getProcessedElementCount

public int getProcessedElementCount()

getEstimatedSizeTotal

public long getEstimatedSizeTotal()

getProcessedSizeTotal

public long getProcessedSizeTotal()

getEstimatedSizeCurrent

public long getEstimatedSizeCurrent()

getProcessedSizeCurrent

public long getProcessedSizeCurrent()

getProcessedSourceName

public String getProcessedSourceName()

getDestinationName

public String getDestinationName()

getProgressPercentageTotal

public double getProgressPercentageTotal()

getProgressPercentageCurrent

public double getProgressPercentageCurrent()