Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Enumerations
SRMClient.h File Reference
#include <string>
#include <sstream>
#include <list>
#include <exception>
#include <arc/Logger.h>
#include "../https/HTTPSClient.h"
#include "SRMURL.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SRMInvalidRequestException
class  SRMClientRequest
 Class to represent a request which may be used for multiple operations, for example calling getTURLs() sets the request token in the request object (for a v2.2 client) and then same object is passed to releaseGet(). More...
class  SRMClient
 A client interface to the SRM protocol. More...

Enumerations

enum  SRMVersion { SRM_V1, SRM_V2_2, SRM_VNULL }
 The version of the SRM protocol. More...
enum  SRMReturnCode {
  SRM_OK, SRM_ERROR_CONNECTION, SRM_ERROR_SOAP, SRM_ERROR_TEMPORARY,
  SRM_ERROR_PERMANENT, SRM_ERROR_NOT_SUPPORTED, SRM_ERROR_OTHER
}
 Return code specifying types of errors that can occur in client methods. More...
enum  SRMFileLocality { SRM_ONLINE, SRM_NEARLINE, SRM_UNKNOWN, SRM_STAGE_ERROR }
 Specifies whether file is on disk or only on tape. More...
enum  SRMRetentionPolicy { SRM_REPLICA, SRM_OUTPUT, SRM_CUSTODIAL, SRM_RETENTION_UNKNOWN }
 Quality of retention. More...
enum  SRMFileStorageType { SRM_VOLATILE, SRM_DURABLE, SRM_PERMANENT, SRM_FILE_STORAGE_UNKNOWN }
 The lifetime of the file. More...
enum  SRMFileType { SRM_FILE, SRM_DIRECTORY, SRM_LINK, SRM_FILE_TYPE_UNKNOWN }
 File, directory or link. More...
enum  SRMImplementation {
  SRM_IMPLEMENTATION_DCACHE, SRM_IMPLEMENTATION_CASTOR, SRM_IMPLEMENTATION_DPM, SRM_IMPLEMENTATION_STORM,
  SRM_IMPLEMENTATION_UNKNOWN
}
 Implementation of service. More...
enum  SRMRequestStatus {
  SRM_REQUEST_ONGOING, SRM_REQUEST_FINISHED_SUCCESS, SRM_REQUEST_FINISHED_PARTIAL_SUCCESS, SRM_REQUEST_FINISHED_ERROR,
  SRM_REQUEST_SHOULD_ABORT, SRM_REQUEST_CANCELLED
}
 The status of a request. More...

Class Documentation

struct SRMFileMetaData

File metadata.

Definition at line 94 of file SRMClient.h.

Collaboration diagram for SRMFileMetaData:
Class Members
string arrayOfSpaceTokens
string checkSumType
string checkSumValue
time_t createdAtTime
SRMFileLocality fileLocality
SRMFileStorageType fileStorageType
SRMFileType fileType
string group
time_t lastModificationTime
int lifetimeAssigned
int lifetimeLeft
string owner
string path
string permission
SRMRetentionPolicy retentionPolicy
long long int size

Enumeration Type Documentation

Specifies whether file is on disk or only on tape.

Enumerator:
SRM_ONLINE 
SRM_NEARLINE 
SRM_UNKNOWN 
SRM_STAGE_ERROR 

Definition at line 43 of file SRMClient.h.

The lifetime of the file.

Enumerator:
SRM_VOLATILE 
SRM_DURABLE 
SRM_PERMANENT 
SRM_FILE_STORAGE_UNKNOWN 

Definition at line 63 of file SRMClient.h.

File, directory or link.

Enumerator:
SRM_FILE 
SRM_DIRECTORY 
SRM_LINK 
SRM_FILE_TYPE_UNKNOWN 

Definition at line 73 of file SRMClient.h.

Implementation of service.

Found from srmPing (v2.2 only)

Enumerator:
SRM_IMPLEMENTATION_DCACHE 
SRM_IMPLEMENTATION_CASTOR 
SRM_IMPLEMENTATION_DPM 
SRM_IMPLEMENTATION_STORM 
SRM_IMPLEMENTATION_UNKNOWN 

Definition at line 83 of file SRMClient.h.

The status of a request.

Enumerator:
SRM_REQUEST_ONGOING 
SRM_REQUEST_FINISHED_SUCCESS 
SRM_REQUEST_FINISHED_PARTIAL_SUCCESS 
SRM_REQUEST_FINISHED_ERROR 
SRM_REQUEST_SHOULD_ABORT 
SRM_REQUEST_CANCELLED 

Definition at line 118 of file SRMClient.h.

Quality of retention.

Enumerator:
SRM_REPLICA 
SRM_OUTPUT 
SRM_CUSTODIAL 
SRM_RETENTION_UNKNOWN 

Definition at line 53 of file SRMClient.h.

Return code specifying types of errors that can occur in client methods.

Enumerator:
SRM_OK 
SRM_ERROR_CONNECTION 
SRM_ERROR_SOAP 
SRM_ERROR_TEMPORARY 
SRM_ERROR_PERMANENT 
SRM_ERROR_NOT_SUPPORTED 
SRM_ERROR_OTHER 

Definition at line 29 of file SRMClient.h.

                     {
    SRM_OK,
    SRM_ERROR_CONNECTION,
    SRM_ERROR_SOAP,
    // the next two only apply to valid repsonses from the service 
    SRM_ERROR_TEMPORARY, // eg SRM_INTERNAL_ERROR, SRM_FILE_BUSY
    SRM_ERROR_PERMANENT, // eg no such file, permission denied
    SRM_ERROR_NOT_SUPPORTED, // not supported by this version of the protocol
    SRM_ERROR_OTHER, // eg bad input parameters, unexpected result format
  };
enum SRMVersion

The version of the SRM protocol.

Enumerator:
SRM_V1 
SRM_V2_2 
SRM_VNULL 

Definition at line 20 of file SRMClient.h.