Search in sources :

Example 1 with ArrayOfTCopyRequestFileStatus

use of org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus in project dcache by dCache.

the class CopyRequest method getSrmStatusOfCopyRequest.

public final SrmStatusOfCopyRequestResponse getSrmStatusOfCopyRequest(org.apache.axis.types.URI[] fromurls, org.apache.axis.types.URI[] tourls) throws SRMInvalidRequestException {
    SrmStatusOfCopyRequestResponse response = new SrmStatusOfCopyRequestResponse();
    response.setReturnStatus(getTReturnStatus());
    TCopyRequestFileStatus[] fileStatuses = getArrayOfTCopyRequestFileStatuses(fromurls, tourls);
    response.setArrayOfFileStatuses(new ArrayOfTCopyRequestFileStatus(fileStatuses));
    response.setRemainingTotalRequestTime(getRemainingLifetimeIn(TimeUnit.SECONDS));
    return response;
}
Also used : SrmStatusOfCopyRequestResponse(org.dcache.srm.v2_2.SrmStatusOfCopyRequestResponse) ArrayOfTCopyRequestFileStatus(org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus) TCopyRequestFileStatus(org.dcache.srm.v2_2.TCopyRequestFileStatus) ArrayOfTCopyRequestFileStatus(org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus)

Example 2 with ArrayOfTCopyRequestFileStatus

use of org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus in project dcache by dCache.

the class CopyRequest method getSrmCopyResponse.

public final SrmCopyResponse getSrmCopyResponse() throws SRMInvalidRequestException {
    SrmCopyResponse response = new SrmCopyResponse();
    response.setReturnStatus(getTReturnStatus());
    response.setRequestToken(getTRequestToken());
    response.setArrayOfFileStatuses(new ArrayOfTCopyRequestFileStatus(getArrayOfTCopyRequestFileStatuses()));
    response.setRemainingTotalRequestTime(getRemainingLifetimeIn(TimeUnit.SECONDS));
    return response;
}
Also used : SrmCopyResponse(org.dcache.srm.v2_2.SrmCopyResponse) ArrayOfTCopyRequestFileStatus(org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus)

Aggregations

ArrayOfTCopyRequestFileStatus (org.dcache.srm.v2_2.ArrayOfTCopyRequestFileStatus)2 SrmCopyResponse (org.dcache.srm.v2_2.SrmCopyResponse)1 SrmStatusOfCopyRequestResponse (org.dcache.srm.v2_2.SrmStatusOfCopyRequestResponse)1 TCopyRequestFileStatus (org.dcache.srm.v2_2.TCopyRequestFileStatus)1