| java.lang.Object org.griphyn.cPlanner.transfer.implementation.Abstract org.griphyn.cPlanner.transfer.implementation.AbstractMultipleFTPerXFERJob org.griphyn.cPlanner.transfer.implementation.Condor
Condor | public class Condor extends AbstractMultipleFTPerXFERJob (Code) | | A prototype implementation that leverages the Condor file transfer mechanism
to do the transfer to the remote directory . Currently, this will only
work for staging in data to a remote site from the submit host.
Additionally, this will only work with local replica selector that prefers
file urls from the submit host for staging.
In order to use the transfer implementation implemented by this class,
- property pegasus.transfer.stagein.impl must be set to
value Condor .
- property pegasus.selector.replica must be set to value
Local
author: Karan Vahi version: $Revision: 387 $ |
Method Summary | |
public TransferJob | createTransferJob(SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass) Constructs a condor file transfer job that handles multiple transfers.
The job itself is a /bin/true job that currently only manages to
transfer input files from the local host.
Parameters: job - the SubInfo object for the job, in relation to whichthe transfer node is being added. | public boolean | doesPreserveXBit() Returns a boolean indicating whether the transfer protocol being used
by the implementation preserves the X Bit or not while staging. | protected String | generateArgumentString(TransferJob job) It constructs the arguments to the transfer executable that need to be
passed to the executable referred to in this transfer mode.
Parameters: job - the object containing the transfer node. | protected String | getCompleteTCName() Returns the complete name for the transformation. | protected String | getDerivationName() Returns the logical name of the derivation that this implementation
refers to. | protected String | getDerivationNamespace() Returns the namespace of the derivation that this implementation
refers to. | protected String | getDerivationVersion() Returns the version of the derivation that this implementation refers
to. | public String | getDescription() Returns a textual description of the transfer implementation. | protected List | getEnvironmentVariables(String site) Returns the environment profiles that are required for the default
entry to sensibly work. | public TransformationCatalogEntry | getTransformationCatalogEntry(String siteHandle) Retrieves the transformation catalog entry for the executable that is
being used to transfer the files in the implementation.
Parameters: siteHandle - the handle of the site where the transformation isto be searched. | public boolean | useThirdPartyTransferAlways() Return a boolean indicating whether the transfers to be done always in
a third party transfer mode. | protected void | writeJumboStdIn(FileWriter stdIn, Collection files) |
DERIVATION_NAME | final public static String DERIVATION_NAME(Code) | | The name of the underlying derivation.
|
DERIVATION_NAMESPACE | final public static String DERIVATION_NAMESPACE(Code) | | The derivation namespace for for the transfer job.
|
DERIVATION_VERSION | final public static String DERIVATION_VERSION(Code) | | The derivation version number for the transfer job.
|
DESCRIPTION | final public static String DESCRIPTION(Code) | | A short description of the transfer implementation.
|
TRANSFORMATION_NAME | final public static String TRANSFORMATION_NAME(Code) | | The name of the underlying transformation that is queried for in the
Transformation Catalog.
|
TRANSFORMATION_NAMESPACE | final public static String TRANSFORMATION_NAMESPACE(Code) | | The transformation namespace for the transfer job.
|
TRANSFORMATION_VERSION | final public static String TRANSFORMATION_VERSION(Code) | | The version number for the transfer job.
|
Condor | public Condor(PegasusProperties properties, PlannerOptions options)(Code) | | The overloaded constructor, that is called by the Factory to load the
class.
Parameters: properties - the properties object. Parameters: options - the options passed to the Planner. |
createTransferJob | public TransferJob createTransferJob(SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass)(Code) | | Constructs a condor file transfer job that handles multiple transfers.
The job itself is a /bin/true job that currently only manages to
transfer input files from the local host.
Parameters: job - the SubInfo object for the job, in relation to whichthe transfer node is being added. Either the transfernode can be transferring this jobs input files tothe execution pool, or transferring this job's outputfiles to the output pool. Parameters: files - collection of FileTransfer objectsrepresenting the data files and staged executables to betransferred. Parameters: execFiles - subset collection of the files parameter, that identifiesthe executable files that are being transferred. Parameters: txJobName - the name of transfer node. Parameters: jobClass - the job Class for the newly added job. Can be one of thefollowing:stage-instage-outinter-pool transfer the created TransferJob. |
doesPreserveXBit | public boolean doesPreserveXBit()(Code) | | Returns a boolean indicating whether the transfer protocol being used
by the implementation preserves the X Bit or not while staging.
false |
generateArgumentString | protected String generateArgumentString(TransferJob job)(Code) | | It constructs the arguments to the transfer executable that need to be
passed to the executable referred to in this transfer mode.
Parameters: job - the object containing the transfer node. the argument string |
getCompleteTCName | protected String getCompleteTCName()(Code) | | Returns the complete name for the transformation.
the complete name. |
getDerivationName | protected String getDerivationName()(Code) | | Returns the logical name of the derivation that this implementation
refers to.
the name of the derivation. |
getDerivationNamespace | protected String getDerivationNamespace()(Code) | | Returns the namespace of the derivation that this implementation
refers to.
the namespace of the derivation. |
getDerivationVersion | protected String getDerivationVersion()(Code) | | Returns the version of the derivation that this implementation refers
to.
the version of the derivation. |
getDescription | public String getDescription()(Code) | | Returns a textual description of the transfer implementation.
a short textual description |
getEnvironmentVariables | protected List getEnvironmentVariables(String site)(Code) | | Returns the environment profiles that are required for the default
entry to sensibly work. There are no variables to be returned for
this case.
Parameters: site - the site where the job is going to run. an empty list |
getTransformationCatalogEntry | public TransformationCatalogEntry getTransformationCatalogEntry(String siteHandle)(Code) | | Retrieves the transformation catalog entry for the executable that is
being used to transfer the files in the implementation.
Parameters: siteHandle - the handle of the site where the transformation isto be searched. the transformation catalog entry if found, else null. |
useThirdPartyTransferAlways | public boolean useThirdPartyTransferAlways()(Code) | | Return a boolean indicating whether the transfers to be done always in
a third party transfer mode. Fix me. should say NEVER.
boolean indicating whether to always use third partytransfers or not. |
writeJumboStdIn | protected void writeJumboStdIn(FileWriter stdIn, Collection files) throws Exception(Code) | | Writes to a FileWriter stream the stdin which goes into the magic
script via standard input
Parameters: stdIn - the writer to the stdin file. Parameters: files - Collection of FileTransfer objectscontaining the information about sourceam fin and destURL's. throws: Exception - |
Methods inherited from org.griphyn.cPlanner.transfer.implementation.Abstract | protected boolean addSetXBitJobs(SubInfo computeJob, SubInfo txJob, Collection execFiles)(Code)(Java Doc) public boolean addSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass)(Code)(Java Doc) public boolean addSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass, int xbitIndex)(Code)(Java Doc) public void applyPriority(TransferJob job)(Code)(Java Doc) public boolean checkAndTransferProxy(TransferJob job)(Code)(Java Doc) protected void construct(SubInfo job, String key, String value)(Code)(Java Doc) public SubInfo createNoOPJob(String name)(Code)(Java Doc) protected SubInfo createSetXBitJob(FileTransfer file, String name)(Code)(Java Doc) protected Set determineDisabledChmodSites(String sites)(Code)(Java Doc) protected boolean disableChmodJobCreation(String site)(Code)(Java Doc) public String getNOOPJobName(String name, int counter)(Code)(Java Doc) protected String getPathToUserProxy()(Code)(Java Doc) protected String getPriority(TransferJob job)(Code)(Java Doc) public String getSetXBitJobName(String name, int counter)(Code)(Java Doc) public void setRefiner(Refiner refiner)(Code)(Java Doc)
|
|
|