| 
    ARC SDK
    
   | 
 
Class representing the status of a DTR. More...
#include <arc/data-staging/DTRStatus.h>
Public Member Functions | |
| DTRStatus (const DTRStatusType &status, std::string desc="") | |
| Make new DTRStatus with given status and optional description.  | |
| DTRStatus () | |
| Make new DTRStatus with default NEW status.  | |
| bool | operator== (const DTRStatusType &s) const | 
| Returns true if this status is the same as the given DTRStatusType.  | |
| bool | operator== (const DTRStatus &s) const | 
| Returns true if this status is the same as the given DTRStatus.  | |
| bool | operator!= (const DTRStatusType &s) const | 
| Returns true if this status is not the same as the given DTRStatusType.  | |
| bool | operator!= (const DTRStatus &s) const | 
| Returns true if this status is not the same as the given DTRStatus.  | |
| DTRStatus & | operator= (const DTRStatusType &s) | 
| Make a new DTRStatus with the same status as the given DTRStatusType.  | |
| std::string | str () const | 
| Returns a string representation of the current state.  | |
| void | SetDesc (const std::string &d) | 
| Set the detailed description of the current state.  | |
| std::string | GetDesc () const | 
| Get the detailed description of the current state.  | |
| DTRStatusType | GetStatus () const | 
| Get the DTRStatusType of the current state.  | |
Static Public Attributes | |
| 
static const std::vector < DTRStatus::DTRStatusType >  | ToProcessStates | 
| Vector of states with a to be processed action, eg CHECK_CACHE.  | |
| 
static const std::vector < DTRStatus::DTRStatusType >  | ProcessingStates | 
| Vector of states with a processing action, eg CHECKING_CACHE.  | |
| 
static const std::vector < DTRStatus::DTRStatusType >  | StagedStates | 
| Vector of states where a DTR is staged - used to limit the number of staged files.  | |
Class representing the status of a DTR.
Possible state values.
| Enumerator | |
|---|---|
| NEW | 
 Just created.  | 
| CHECK_CACHE | 
 Check the cache for the file may be already there.  | 
| CHECKING_CACHE | 
 Checking the cache.  | 
| CACHE_WAIT | 
 Cache file is locked, waiting for its release.  | 
| CACHE_CHECKED | 
 Cache check completed.  | 
| RESOLVE | 
 Resolve a meta-protocol.  | 
| RESOLVING | 
 Resolving replicas.  | 
| RESOLVED | 
 Replica resolution completed.  | 
| QUERY_REPLICA | 
 Query a replica.  | 
| QUERYING_REPLICA | 
 Replica is being queried.  | 
| REPLICA_QUERIED | 
 Replica was queried.  | 
| PRE_CLEAN | 
 The destination should be deleted.  | 
| PRE_CLEANING | 
 Deleting the destination.  | 
| PRE_CLEANED | 
 The destination file has been deleted.  | 
| STAGE_PREPARE | 
 Prepare or stage the source and/or destination.  | 
| STAGING_PREPARING | 
 Making a staging or preparing request.  | 
| STAGING_PREPARING_WAIT | 
 Wait for the status of the staging/preparing request.  | 
| STAGED_PREPARED | 
 Staging/preparing request completed.  | 
| TRANSFER | 
 Transfer ready and can be started.  | 
| TRANSFERRING | 
 Transfer is going.  | 
| TRANSFERRING_CANCEL | 
 Transfer is on-going but scheduled for cancellation.  | 
| TRANSFERRED | 
 Transfer completed.  | 
| RELEASE_REQUEST | 
 Transfer finished, release requests on the storage.  | 
| RELEASING_REQUEST | 
 Releasing staging/preparing request.  | 
| REQUEST_RELEASED | 
 Release of staging/preparing request completed.  | 
| REGISTER_REPLICA | 
 Register a new replica of the destination.  | 
| REGISTERING_REPLICA | 
 Registering a replica in an index service.  | 
| REPLICA_REGISTERED | 
 Replica registration completed.  | 
| PROCESS_CACHE | 
 Destination is cacheable, process cache.  | 
| PROCESSING_CACHE | 
 Releasing locks and copying/linking cache files to the session dir.  | 
| CACHE_PROCESSED | 
 Cache processing completed.  | 
| DONE | 
 Everything completed successfully.  | 
| CANCELLED | 
 Cancellation request fulfilled successfully.  | 
| CANCELLED_FINISHED | 
 Cancellation request fulfilled but DTR also completed transfer successfully.  | 
| ERROR | 
 Error occured.  | 
| NULL_STATE | 
 "Stateless" DTR  | 
 1.8.3.1