Class BalancedCluster.TransferContainer
- java.lang.Object
-
- edu.isi.pegasus.planner.transfer.refiner.BalancedCluster.TransferContainer
-
- Enclosing class:
- BalancedCluster
protected class BalancedCluster.TransferContainer extends java.lang.ObjectA container class for storing the name of the transfer job, the list of file transfers that the job is responsible for.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<FileTransfer>mFileTXListThe collection ofFileTransferobjects containing the transfers the job is responsible for.private java.util.Collection<FileTransfer>mRegFilesThe collection ofFileTransferobjects containing the files that need to be registered.private java.lang.StringmRegNameThe name of the registration job.private intmTransferTypeThe type of the transfers the job is responsible for.private java.lang.StringmTXNameThe name of the transfer job.
-
Constructor Summary
Constructors Constructor Description TransferContainer()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRegistrationFiles(FileTransfer file)Adds a single file for registration.voidaddRegistrationFiles(java.util.Collection files)Adds a Collection of File transfer to the underlying collection of files to be registered.voidaddTransfer(FileTransfer transfer)Adds a file transfer to the underlying collection.voidaddTransfer(java.util.Collection files)Adds a file transfer to the underlying collection.java.util.CollectiongetFileTransfers()Returns the collection of transfers associated with this transfer container.java.util.CollectiongetRegistrationFiles()Returns the collection of registration files associated with this transfer container.java.lang.StringgetRegName()Returns the name of the registration job.java.lang.StringgetTXName()Returns the name of the transfer job.voidsetRegName(java.lang.String name)Sets the name of the registration job.voidsetTransferType(int type)Sets the transfer type for the transfers associated.voidsetTXName(java.lang.String name)Sets the name of the transfer job.
-
-
-
Field Detail
-
mTXName
private java.lang.String mTXName
The name of the transfer job.
-
mRegName
private java.lang.String mRegName
The name of the registration job.
-
mFileTXList
private java.util.Collection<FileTransfer> mFileTXList
The collection ofFileTransferobjects containing the transfers the job is responsible for.
-
mRegFiles
private java.util.Collection<FileTransfer> mRegFiles
The collection ofFileTransferobjects containing the files that need to be registered.
-
mTransferType
private int mTransferType
The type of the transfers the job is responsible for.
-
-
Method Detail
-
setTXName
public void setTXName(java.lang.String name)
Sets the name of the transfer job.- Parameters:
name- the name of the transfer job.
-
setRegName
public void setRegName(java.lang.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- theFileTransfercontaining the information about a single transfer.
-
addTransfer
public void addTransfer(java.util.Collection files)
Adds a file transfer to the underlying collection.- Parameters:
files- collection ofFileTransfer.
-
addRegistrationFiles
public void addRegistrationFiles(FileTransfer file)
Adds a single file for registration.- Parameters:
files- collection ofFileTransfer.
-
addRegistrationFiles
public void addRegistrationFiles(java.util.Collection files)
Adds a Collection of File transfer to the underlying collection of files to be registered.- Parameters:
files- collection ofFileTransfer.
-
setTransferType
public void setTransferType(int type)
Sets the transfer type for the transfers associated.- Parameters:
type- type of transfer.
-
getTXName
public java.lang.String getTXName()
Returns the name of the transfer job.- Returns:
- name of the transfer job.
-
getRegName
public java.lang.String getRegName()
Returns the name of the registration job.- Returns:
- name of the registration job.
-
getFileTransfers
public java.util.Collection getFileTransfers()
Returns the collection of transfers associated with this transfer container.- Returns:
- a collection of
FileTransferobjects.
-
getRegistrationFiles
public java.util.Collection getRegistrationFiles()
Returns the collection of registration files associated with this transfer container.- Returns:
- a collection of
FileTransferobjects.
-
-