private static class Chain.SiteTransfer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List |
mBundles
The list of
Chain object. |
private int |
mCapacity
The maximum number of transfer jobs that are allowed for this
particular site.
|
private int |
mNext
The index of the bundle to which the next transfer for the site would
be added to.
|
private java.lang.String |
mSite
The site for which these transfers are grouped.
|
Constructor and Description |
---|
SiteTransfer()
The default constructor.
|
SiteTransfer(java.lang.String pool,
int bundle)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addTransfer(java.lang.String txJobName)
Adds a file transfer to the appropriate TransferChain.
|
java.lang.String |
toString()
Returns the textual description of the object.
|
private int mCapacity
private int mNext
private java.lang.String mSite
private java.util.List mBundles
Chain
object. Each bundle is actually a chain
of transfer nodes.public SiteTransfer()
public SiteTransfer(java.lang.String pool, int bundle)
pool
- the pool name for which transfers are being grouped.bundle
- the number of logical bundles that are to be created
per site. it directly translates to the number of transfer
jobs that can be running at a particular sitepublic java.lang.String addTransfer(java.lang.String txJobName)
txJobName
- the name of the transfer job.public java.lang.String toString()
toString
in class java.lang.Object