protected class BalancedCluster.TransferContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<FileTransfer> |
mFileTXList
The collection of
FileTransfer objects containing the
transfers the job is responsible for. |
private java.util.Collection<FileTransfer> |
mRegFiles
The collection of
FileTransfer objects containing the
files that need to be registered. |
private java.lang.String |
mRegName
The name of the registration job.
|
private int |
mTransferType
The type of the transfers the job is responsible for.
|
private java.lang.String |
mTXName
The name of the transfer job.
|
Constructor and Description |
---|
TransferContainer()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRegistrationFiles(java.util.Collection files)
Adds a Collection of File transfer to the underlying collection of
files to be registered.
|
void |
addRegistrationFiles(FileTransfer file)
Adds a single file for registration.
|
void |
addTransfer(java.util.Collection files)
Adds a file transfer to the underlying collection.
|
void |
addTransfer(FileTransfer transfer)
Adds a file transfer to the underlying collection.
|
java.util.Collection |
getFileTransfers()
Returns the collection of transfers associated with this transfer
container.
|
java.util.Collection |
getRegistrationFiles()
Returns the collection of registration files associated with this transfer
container.
|
java.lang.String |
getRegName()
Returns the name of the registration job.
|
java.lang.String |
getTXName()
Returns the name of the transfer job.
|
void |
setRegName(java.lang.String name)
Sets the name of the registration job.
|
void |
setTransferType(int type)
Sets the transfer type for the transfers associated.
|
void |
setTXName(java.lang.String name)
Sets the name of the transfer job.
|
private java.lang.String mTXName
private java.lang.String mRegName
private java.util.Collection<FileTransfer> mFileTXList
FileTransfer
objects containing the
transfers the job is responsible for.private java.util.Collection<FileTransfer> mRegFiles
FileTransfer
objects containing the
files that need to be registered.private int mTransferType
public void setTXName(java.lang.String name)
name
- the name of the transfer job.public void setRegName(java.lang.String name)
name
- the name of the transfer job.public void addTransfer(FileTransfer transfer)
transfer
- the FileTransfer
containing the
information about a single transfer.public void addTransfer(java.util.Collection files)
files
- collection of FileTransfer
.public void addRegistrationFiles(FileTransfer file)
files
- collection of FileTransfer
.public void addRegistrationFiles(java.util.Collection files)
files
- collection of FileTransfer
.public void setTransferType(int type)
type
- type of transfer.public java.lang.String getTXName()
public java.lang.String getRegName()
public java.util.Collection getFileTransfers()
FileTransfer
objects.public java.util.Collection getRegistrationFiles()
FileTransfer
objects.