|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.icenigrid.gridsam.core.hostenv.FileProviderUtil
public class FileProviderUtil
Purpose:
to support different file-transfer module. This class uses the interface
FileProvider. So different module just need to implement FileProvider's
interface.
Constructor Summary | |
---|---|
FileProviderUtil()
constructor. |
Method Summary | |
---|---|
boolean |
cancelFileJob(java.lang.String jobName)
cancel file-transfer job. |
FileJobInfo |
getFileJobInfo(java.lang.String jobName)
get a file job info |
java.lang.String |
getFileJobStatus(java.lang.String jobName)
get status of file-transfer job. |
java.lang.String |
getFileProviderType()
get the file provider type, which is defined in the FileProvider |
boolean |
pauseFileJob(java.lang.String jobName)
pause a file-transfer job. |
java.lang.String |
stageIn(java.util.Map jobInfo)
stage in a file. |
java.lang.String |
stageOut(java.util.Map jobInfo)
stage out a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileProviderUtil() throws ConfigurationException
JobManagerException
- if registry does not contain service "gridsam.FileProvider"
ConfigurationException
Method Detail |
---|
public java.lang.String getFileJobStatus(java.lang.String jobName) throws java.lang.Exception
jobName
- file-transfer job name.
java.lang.Exception
- exception throws by file-transfer module.public FileJobInfo getFileJobInfo(java.lang.String jobName) throws java.lang.Exception
jobName
-
FileJobInfo
java.lang.Exception
public java.lang.String stageIn(java.util.Map jobInfo) throws SubmissionException
jobInfo
- A map contain info needed by file-transfer. This Map may
contain keys : "BatchConstants.REMOTE_URL",
"BatchConstants.LOCA_FILE_PATH",
"BatchConstants.GLOBAL_USERDN", "BatchConstants.LOCAL_USERDN",
"BatchConstants.AFTJOB_ACTION"
java.lang.Exception
- exception throws by file-transfer module.
SubmissionException
public java.lang.String stageOut(java.util.Map jobInfo) throws SubmissionException
jobInfo
- A map contain info needed by file-transfer. This Map may
contain keys : "BatchConstants.REMOTE_URL",
"BatchConstants.LOCA_FILE_PATH",
"BatchConstants.GLOBAL_USERDN", "BatchConstants.LOCAL_USERDN",
"BatchConstants.AFTJOB_ACTION"
java.lang.Exception
- exception throws by file-transfer module.
SubmissionException
public boolean cancelFileJob(java.lang.String jobName) throws java.lang.Exception
jobName
- file-transfer job name.
java.lang.Exception
- exception throws by file-transfer module.public boolean pauseFileJob(java.lang.String jobName) throws java.lang.Exception
jobName
- file-transfer job name.
java.lang.Exception
- exception throws by file-transfer module.public java.lang.String getFileProviderType()
FileProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |