org.apache.oodt.cas.filemgr.datatransfer
Class TransferStatusTracker
java.lang.Object
org.apache.oodt.cas.filemgr.datatransfer.TransferStatusTracker
public class TransferStatusTracker
- extends Object
- Version:
- $Revision: 11462 $
An abstract base class for data transfers that uses an in-memory HashMap to
keep track of data transfer status information.
- Author:
- mattmann, bfoster
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentProductTransfers
protected HashMap<String,Product> currentProductTransfers
TransferStatusTracker
public TransferStatusTracker(Catalog catalog)
Default Constructor
.
- Parameters:
catalog
- The Catalog interface handed to it by the File Manager. It
needs this object to look up reference information.
getCurrentFileTransfer
public FileTransferStatus getCurrentFileTransfer()
transferringProduct
public void transferringProduct(Product product)
getCurrentFileTransfers
public List<FileTransferStatus> getCurrentFileTransfers()
getPctTransferred
public double getPctTransferred(Product product)
getPctTransferred
public double getPctTransferred(Reference ref)
removeProductTransferStatus
public void removeProductTransferStatus(Product product)
isTransferComplete
public boolean isTransferComplete(Product product)
Copyright © 1999-2011 Apache OODT. All Rights Reserved.