|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.lbl.srm.client.wsdl.SRMRequest
public class SRMRequest
The SRMRequest object holds all outstanding request information and status.
Field Summary | |
---|---|
SRMServer |
_srmServer
|
Constructor Summary | |
---|---|
SRMRequest()
constructor |
Method Summary | |
---|---|
boolean |
abortFiles(java.lang.String[] surl)
submits the file abort request to SRM server. |
boolean |
abortRequest()
Client makes an abort request on the files or the entire request that a user previously requested. |
boolean |
addFiles(java.lang.String[] surls,
java.lang.String[] copyTargetSurls,
long[] fileSize)
adds SURLs for the request. |
boolean |
checkStatus()
checkStatus for all files in this request |
boolean |
checkStatus(java.lang.String[] surl,
java.lang.String[] copyTargetSurl)
Client makes a status of previously submitted request on files that a user selected, and the status of files gets returned. |
boolean |
extendFileLifeTime(int fileLifetime)
Client makes an extension request on the files. |
boolean |
getAllLevelsRecursive()
gets the recursive flag set for the LS requests. |
int |
getCount()
returns the count number for the LS request. |
java.lang.String[] |
getFiles()
returns SURL in the request. |
boolean |
getFullDetailedList()
returns the full detailed list flag for the request. |
int |
getNumberLevels()
gets the number levels set for the LS requests. |
int |
getOffSet()
returns the offset set for the LS request. |
SRMRequestSummary |
getRequestSummary()
returns the request summary for the given request id |
java.lang.String |
getRequestToken()
returns request token after successful request submission. |
java.lang.String |
getRequestType()
gets requesttype for the request |
SRMServer |
getSRMServer()
This will return the SRMServer object that SRMRequest object is tied with. |
SRMRequestStatus |
getStatus()
Client makes a status of previously submitted request on files that a user selected, and the status of files get returned. |
SRMRequestStatus |
getStatus(java.lang.String[] surl)
Client makes a status of previously submitted request on files that a user selected, and the status of files get returned. |
void |
printResults()
prints results for this request |
void |
printResults(SRMRequestStatus subStatus)
prints the given SRMRequestStatus object. |
void |
printSummary()
prints the request summary for this request id. |
boolean |
putDone(java.lang.String[] siteUrl)
submits srmPutDone request to SRM serer. |
boolean |
releaseFiles(java.lang.String[] siteUrl)
Client makes a release request on the files or on the request that previously requested. |
boolean |
removeFiles(java.lang.String[] surls)
removes SURLs for the request before the request submission. |
void |
setAccessLatency(java.lang.String accessLatency)
sets the access latency for the request. |
void |
setAllLevelsRecursive(boolean allLevelsRecursive)
sets the recursive flag for the LS requests. |
void |
setAuthID(java.lang.String authId)
sets the user authorization id for the request |
void |
setBufferSize(int bufferSize)
sets the buffersize option for the file transfer |
void |
setCount(int count)
sets the count number for the LS request. |
void |
setDCAU(boolean dcau)
sets the DCAU option for the file transfer |
void |
setDeferredStartTime(int deferredStartTime)
sets the desired deferred start time for the request |
void |
setFileLifeTime(int fileLifeTime)
sets the desired file lifetime for the request. |
void |
setFileStorageType(java.lang.String tokenType)
sets the file storage type for the request: VOLATILE|DURABLE|PERMANENT |
void |
setFullDetailedList(boolean fullDetailedList)
sets the full detailed list flag for the request. |
void |
setNumberLevels(int numLevels)
sets the recursive levels for the LS requests. |
void |
setOffSet(int offset)
Sets the offset number for the LS request. |
void |
setOverwrite(boolean overwrite)
sets the overwrite flag for the request. |
void |
setParallelism(int parallelism)
sets the parallelism option for the file transfer |
void |
setPinLifeTime(int pinLifeTime)
sets the desired pin lifetime for the request. |
void |
setProtocolList(java.lang.String protocolsList)
sets the preferred transfer protocol list for the request |
void |
setPushMode(boolean pushMode)
sets the push mode flag for the request. |
void |
setRequestToken(java.lang.String reqId)
sets requesttoken for this request, used while reconstructing the request. |
void |
setRequestType(java.lang.String requestType)
sets requesttype for the request |
void |
setRetentionPolicy(java.lang.String retentionPolicy)
sets the retention policy for the request |
void |
setSRMServer(SRMServer srmServer)
This ties up SRMRequest to one SRM server that all request and status will go to. |
void |
setStorageSystemInfo(java.lang.String storageInfo)
sets the additional storage system info for the source SURLs in the request. |
void |
setTargetSpaceToken(java.lang.String spaceToken)
sets the pre-reserved space token for the request |
void |
setTargetStorageSystemInfo(java.lang.String storageInfo)
sets the additional storage system info for the target SURLs in the request. |
void |
setTargetSURLLifeTime(int fileLifeTime)
sets the desired target file lifetime for the request. |
void |
setTotalRequestTime(int totalRequestTime)
sets the desired total request time for the request. |
void |
setUserDesc(java.lang.String userDesc)
sets the user description for this request |
boolean |
srmLs()
Client can query a file property to find out the size, online availability, creation time etc. |
boolean |
srmRm()
submits the file removal request to SRM server. |
boolean |
submit()
Client makes a request on files that a user selected to the SRM server, and submission status and the request token get returned and stored in the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SRMServer _srmServer
Constructor Detail |
---|
public SRMRequest() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void setSRMServer(SRMServer srmServer) throws java.lang.Exception
srmServer
- where SRMServer object is created and connected successfully to one SRM server
java.lang.Exception
SRMServer
public SRMServer getSRMServer()
SRMServer
public void setUserDesc(java.lang.String userDesc)
userDesc
- user description input parameterString
public void setAuthID(java.lang.String authId)
authId
- authorizationId input parameterString
public void setTargetSpaceToken(java.lang.String spaceToken)
spaceToken
- -- valid space token returned by the SRM serverString
public void setProtocolList(java.lang.String protocolsList)
protocolsList
- --- preferred protocol listString
public void setFullDetailedList(boolean fullDetailedList)
fullDetailedList
- -- true or false is setpublic boolean getFullDetailedList()
public void setOffSet(int offset)
offset
- -- valid integerpublic int getOffSet()
public void setCount(int count)
count
- --- valid integer.public int getCount()
public void setAllLevelsRecursive(boolean allLevelsRecursive)
allLevelsRecursive
- -- true or false is set.public boolean getAllLevelsRecursive()
public void setNumberLevels(int numLevels)
numLevels
- --- num levels is set.public int getNumberLevels()
public void setStorageSystemInfo(java.lang.String storageInfo)
storageInfo
- -- storage system infopublic void setTargetStorageSystemInfo(java.lang.String storageInfo)
storageInfo
- -- storage system infopublic void setOverwrite(boolean overwrite)
overwrite
- --- true or false is set.public void setTotalRequestTime(int totalRequestTime)
totalRequestTime
- --- valid integer is set.public void setPinLifeTime(int pinLifeTime)
pinLifeTime
- --- valid integer is set.public void setFileLifeTime(int fileLifeTime)
fileLifeTime
- --- valid integer is set.public void setTargetSURLLifeTime(int fileLifeTime)
fileLifeTime
- --- valid integer is set.public void setDeferredStartTime(int deferredStartTime)
deferredStartTime
- --- valid integer is set.public void setPushMode(boolean pushMode)
pushMode
- --- true or false is set.public void setDCAU(boolean dcau)
dcau
- --- true or false is set.public void setParallelism(int parallelism)
parallelism
- --- true or false is set.public void setBufferSize(int bufferSize)
bufferSize
- --- valid integer is set.public void setFileStorageType(java.lang.String tokenType)
tokenType
- --- durable, volatile or permanent is set.public void setRetentionPolicy(java.lang.String retentionPolicy)
retentionPolicy
- --- replica or output or custodial is set.public void setAccessLatency(java.lang.String accessLatency)
accessLatency
- --- nearline or online is set.public void setRequestType(java.lang.String requestType) throws SRMClientException
requestType
- --- put, get, copy, bringonline or ls is set.
SRMClientException
public java.lang.String getRequestType()
String
public void setRequestToken(java.lang.String reqId) throws SRMClientException
reqId
- --- valid request token returned by the SRM server.
SRMClientException
public java.lang.String getRequestToken()
public java.lang.String[] getFiles()
String
public boolean addFiles(java.lang.String[] surls, java.lang.String[] copyTargetSurls, long[] fileSize) throws SRMClientException
surls
- --- source surls used for get, put, copy and bringonline requests.copyTargetSurls
- -- target surls for the copy requests.fileSize
- ---- fileSizes
SRMClientException
public boolean removeFiles(java.lang.String[] surls) throws SRMClientException
surls
- --- surls to be removed from the request.
SRMClientException
public boolean submit() throws java.lang.Exception
java.lang.Exception
public boolean extendFileLifeTime(int fileLifetime) throws java.lang.Exception
fileLifetime
- --- valid integer.
java.lang.Exception
public boolean abortRequest() throws java.lang.Exception
java.lang.Exception
public boolean srmLs() throws SRMClientException, java.lang.Exception
SRMClientException
java.lang.Exception
public boolean srmRm() throws SRMClientException, java.lang.Exception
SRMClientException
java.lang.Exception
public boolean putDone(java.lang.String[] siteUrl) throws java.lang.Exception
siteUrl
- --- source urls to be requested for putDone
java.lang.Exception
public boolean abortFiles(java.lang.String[] surl) throws SRMClientException, java.lang.Exception
surl
- -- source urls to be called for abort files.
SRMClientException
java.lang.Exception
public boolean releaseFiles(java.lang.String[] siteUrl) throws SRMClientException, java.lang.Exception
siteUrl
- --- surls to be released
SRMClientException
java.lang.Exception
public SRMRequestStatus getStatus()
SRMRequestStatus
public SRMRequestStatus getStatus(java.lang.String[] surl)
surl
- --- surl to be retrieved for status
SRMRequestStatus
public SRMRequestSummary getRequestSummary()
SRMRequestSummary
public void printSummary()
public boolean checkStatus(java.lang.String[] surl, java.lang.String[] copyTargetSurl) throws SRMClientException, java.lang.Exception
surl
- --- source surls for get, put, copy, bringonline requests.copyTargetSurl
- --- target surls for copy requests.
SRMClientException
java.lang.Exception
public boolean checkStatus() throws SRMClientException, java.lang.Exception
SRMClientException
java.lang.Exception
public void printResults() throws java.lang.Exception
java.lang.Exception
public void printResults(SRMRequestStatus subStatus) throws java.lang.Exception
subStatus
-
java.lang.Exception
SRMRequestStatus
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |