edu.isi.pegasus.planner.transfer.refiner
Class Bundle.TransferContainer

java.lang.Object
  extended by edu.isi.pegasus.planner.transfer.refiner.Bundle.TransferContainer
Enclosing class:
Bundle

protected class Bundle.TransferContainer
extends Object

A container class for storing the name of the transfer job, the list of file transfers that the job is responsible for.


Field Summary
private  Collection mFileTXList
          The collection of FileTransfer objects containing the transfers the job is responsible for.
private  Collection mRegFiles
          The collection of FileTransfer objects containing the files that need to be registered.
private  String mRegName
          The name of the registration job.
private  int mTransferType
          The type of the transfers the job is responsible for.
private  String mTXName
          The name of the transfer job.
 
Constructor Summary
Bundle.TransferContainer()
          The default constructor.
 
Method Summary
 void addRegistrationFiles(Collection files)
          Adds a Collection of File transfer to the underlying collection of files to be registered.
 void addTransfer(Collection files)
          Adds a file transfer to the underlying collection.
 void addTransfer(FileTransfer transfer)
          Adds a file transfer to the underlying collection.
 Collection getFileTransfers()
          Returns the collection of transfers associated with this transfer container.
 Collection getRegistrationFiles()
          Returns the collection of registration files associated with this transfer container.
 String getRegName()
          Returns the name of the registration job.
 String getTXName()
          Returns the name of the transfer job.
 void setRegName(String name)
          Sets the name of the registration job.
 void setTransferType(int type)
          Sets the transfer type for the transfers associated.
 void setTXName(String name)
          Sets the name of the transfer job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTXName

private String mTXName
The name of the transfer job.


mRegName

private String mRegName
The name of the registration job.


mFileTXList

private Collection mFileTXList
The collection of FileTransfer objects containing the transfers the job is responsible for.


mRegFiles

private Collection mRegFiles
The collection of FileTransfer objects containing the files that need to be registered.


mTransferType

private int mTransferType
The type of the transfers the job is responsible for.

Constructor Detail

Bundle.TransferContainer

public Bundle.TransferContainer()
The default constructor.

Method Detail

setTXName

public void setTXName(String name)
Sets the name of the transfer job.

Parameters:
name - the name of the transfer job.

setRegName

public void setRegName(String name)
Sets the name of the registration job.

Parameters:
name - the name of the transfer job.

addTransfer

public void addTransfer(FileTransfer transfer)
Adds a file transfer to the underlying collection.

Parameters:
transfer - the FileTransfer containing the information about a single transfer.

addTransfer

public void addTransfer(Collection files)
Adds a file transfer to the underlying collection.

Parameters:
files - collection of FileTransfer.

addRegistrationFiles

public void addRegistrationFiles(Collection files)
Adds a Collection of File transfer to the underlying collection of files to be registered.

Parameters:
files - collection of FileTransfer.

setTransferType

public void setTransferType(int type)
Sets the transfer type for the transfers associated.

Parameters:
type - type of transfer.

getTXName

public String getTXName()
Returns the name of the transfer job.

Returns:
name of the transfer job.

getRegName

public String getRegName()
Returns the name of the registration job.

Returns:
name of the registration job.

getFileTransfers

public Collection getFileTransfers()
Returns the collection of transfers associated with this transfer container.

Returns:
a collection of FileTransfer objects.

getRegistrationFiles

public Collection getRegistrationFiles()
Returns the collection of registration files associated with this transfer container.

Returns:
a collection of FileTransfer objects.


Copyright © 2011 The University of Southern California. All Rights Reserved.