| |
|
| java.lang.Object org.griphyn.cPlanner.classes.Data org.griphyn.cPlanner.classes.PegasusFile org.griphyn.cPlanner.classes.FileTransfer
FileTransfer | public class FileTransfer extends PegasusFile (Code) | | This is a container for the storing the transfers that are required in
between sites. It refers to one lfn, but can contains more than one source
and destination urls. All the source url's are presumed to be identical.
The destination urls, can in effect be used to refer to TFN's for a lfn on
different pools.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 372 $ |
Method Summary | |
public void | addDestination(NameValue nv) Adds a destination URL for the transfer. | public void | addDestination(String pool, String url) Adds a destination URL for the transfer. | public void | addSource(NameValue nv) Adds a source URL for the transfer. | public void | addSource(String pool, String url) Adds a source URL for the transfer. | public Object | clone() Returns a clone of the object. | public NameValue | getDestURL() Returns a single destination url associated with the transfer. | public NameValue | getDestURL(boolean random) Returns a single destination url associated with the transfer.
If random is set to false, then dest url returned is first entry from
the key set of the underlying map.
Parameters: random - boolean indicating if a random entry needs to be picked. | public String | getJobName() It returns the name of the main/compute job making up the VDS supernode
with which this transfer is related. | public NameValue | getSourceURL() Returns a single source url associated with the transfer. | public NameValue | getSourceURL(boolean random) Returns a single source url associated with the transfer.
If random is set to false, thensource url returned is first entry from
the key set of the underlying map.
Parameters: random - boolean indicating if a random entry needs to be picked. | public boolean | isTransferringExecutableFile() Returns a boolean indicating if a file that is being staged is an
executable or not (i.e is a data file). | public boolean | isValid() Determines whether the transfer contained in this container is valid or
not. | public NameValue | removeDestURL() Removes a single destination url associated with the transfer. | public NameValue | removeSourceURL() Removes a single source url associated with the transfer. | public String | toString() Returns a textual interpretation of the object. |
FileTransfer | public FileTransfer()(Code) | | Default constructor.
|
FileTransfer | public FileTransfer(PegasusFile pf)(Code) | | The overloaded constructor.
Parameters: pf - PegasusFile object containing the transiencyattributes, and the logical name of the file. |
FileTransfer | public FileTransfer(String lfn, String job)(Code) | | The overloaded constructor.
Parameters: lfn - The logical name of the file that has to be transferred. Parameters: job - The name of the job with which the transfer isassociated with. |
FileTransfer | public FileTransfer(String lfn, String job, BitSet flags)(Code) | | The overloaded constructor.
Parameters: lfn - The logical name of the file that has to be transferred. Parameters: job - The name of the job with which the transfer isassociated with. Parameters: flags - the BitSet flags. |
addDestination | public void addDestination(NameValue nv)(Code) | | Adds a destination URL for the transfer.
Parameters: nv - the NameValue object containing the name of the site as the keyand URL as the value. |
addDestination | public void addDestination(String pool, String url)(Code) | | Adds a destination URL for the transfer.
Parameters: pool - the pool to which the destination file is being transferred. Parameters: url - the destination url. |
addSource | public void addSource(NameValue nv)(Code) | | Adds a source URL for the transfer.
Parameters: nv - the NameValue object containing the name of the site as the keyand URL as the value. |
addSource | public void addSource(String pool, String url)(Code) | | Adds a source URL for the transfer.
Parameters: pool - the pool from which the source file is being transferred. Parameters: url - the source url. |
clone | public Object clone()(Code) | | Returns a clone of the object.
clone of the object. |
getDestURL | public NameValue getDestURL()(Code) | | Returns a single destination url associated with the transfer.
The destination url returned is first entry from the key set of the
underlying map.
NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
getDestURL | public NameValue getDestURL(boolean random)(Code) | | Returns a single destination url associated with the transfer.
If random is set to false, then dest url returned is first entry from
the key set of the underlying map.
Parameters: random - boolean indicating if a random entry needs to be picked. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
getJobName | public String getJobName()(Code) | | It returns the name of the main/compute job making up the VDS supernode
with which this transfer is related.
the name of associated job |
getSourceURL | public NameValue getSourceURL()(Code) | | Returns a single source url associated with the transfer.
The source url returned is first entry from the key set of the
underlying map.
NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
getSourceURL | public NameValue getSourceURL(boolean random)(Code) | | Returns a single source url associated with the transfer.
If random is set to false, thensource url returned is first entry from
the key set of the underlying map.
Parameters: random - boolean indicating if a random entry needs to be picked. NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
isTransferringExecutableFile | public boolean isTransferringExecutableFile()(Code) | | Returns a boolean indicating if a file that is being staged is an
executable or not (i.e is a data file).
boolean indicating whether a file is executable or not. |
isValid | public boolean isValid()(Code) | | Determines whether the transfer contained in this container is valid or
not. It is deemed valid if there is at least one source url and one
destination url.
true if valid, else false. |
removeDestURL | public NameValue removeDestURL()(Code) | | Removes a single destination url associated with the transfer.
The destination url removed is first entry from the key set of the
underlying map.
NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
removeSourceURL | public NameValue removeSourceURL()(Code) | | Removes a single source url associated with the transfer.
The source url removed is first entry from the key set of the
underlying map.
NameValue where the name would be the pool on which the URL isand value the URL.null if no urls are assoiciated with the object. |
toString | public String toString()(Code) | | Returns a textual interpretation of the object. The method outputs
in a T2 compatible format. Each FileTransfer object can refer to one
section in the T2 format.
the textual description. |
|
|
|