org.apache.oodt.cas.filemgr.datatransfer
Class TransferStatusTracker

java.lang.Object
  extended by 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

Field Summary
protected  HashMap<String,Product> currentProductTransfers
           
 
Constructor Summary
TransferStatusTracker(Catalog catalog)
           Default Constructor
 
Method Summary
 FileTransferStatus getCurrentFileTransfer()
           
 List<FileTransferStatus> getCurrentFileTransfers()
           
 double getPctTransferred(Product product)
           
 double getPctTransferred(Reference ref)
           
 boolean isTransferComplete(Product product)
           
 void removeProductTransferStatus(Product product)
           
 void transferringProduct(Product product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentProductTransfers

protected HashMap<String,Product> currentProductTransfers
Constructor Detail

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.
Method Detail

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.