au.edu.jcu.hermes.core.transfer
Class TransferModel

java.lang.Object
  extended by au.edu.jcu.hermes.core.transfer.TransferModel
All Implemented Interfaces:
ITransferModel

public class TransferModel
extends java.lang.Object
implements ITransferModel

Author: Mathew Wyatt Organisation: James Cook University Date: Oct 8, 2007 Time: 6:10:11 PM


Constructor Summary
TransferModel(IEventShower eventShower)
          The TransferModel has a ThreadPool of size 10, as the maximum bytes read in per file transfer is 5MB per read/write, the maximum memory use (restricted to file transfers) at anyone time is 50MB
 
Method Summary
 void addTransferUpdateListener(java.awt.event.ActionListener actionListener)
          Adds a listener to be invoked on the transfer status
 void checkAndCancelTransfers(DisconnectEvent disconnectEvent)
          Check to see if there are transfers in play for a given root object, and find out whether you really want them to be cancel on a disconnect
 IProgressModel copy(ObjectCopyBean objectCopyBean)
          Copies source objects to a destination object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferModel

public TransferModel(IEventShower eventShower)
The TransferModel has a ThreadPool of size 10, as the maximum bytes read in per file transfer is 5MB per read/write, the maximum memory use (restricted to file transfers) at anyone time is 50MB

Method Detail

addTransferUpdateListener

public void addTransferUpdateListener(java.awt.event.ActionListener actionListener)
Description copied from interface: ITransferModel
Adds a listener to be invoked on the transfer status

Specified by:
addTransferUpdateListener in interface ITransferModel

copy

public IProgressModel copy(ObjectCopyBean objectCopyBean)
Description copied from interface: ITransferModel
Copies source objects to a destination object

Specified by:
copy in interface ITransferModel

checkAndCancelTransfers

public void checkAndCancelTransfers(DisconnectEvent disconnectEvent)
Description copied from interface: ITransferModel
Check to see if there are transfers in play for a given root object, and find out whether you really want them to be cancel on a disconnect

Specified by:
checkAndCancelTransfers in interface ITransferModel