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. More... | |
DTRStatus () | |
Make new DTRStatus with default NEW status. More... | |
bool | operator== (const DTRStatusType &s) const |
Returns true if this status is the same as the given DTRStatusType. More... | |
bool | operator== (const DTRStatus &s) const |
Returns true if this status is the same as the given DTRStatus. More... | |
bool | operator!= (const DTRStatusType &s) const |
Returns true if this status is not the same as the given DTRStatusType. More... | |
bool | operator!= (const DTRStatus &s) const |
Returns true if this status is not the same as the given DTRStatus. More... | |
DTRStatus & | operator= (const DTRStatusType &s) |
Make a new DTRStatus with the same status as the given DTRStatusType. More... | |
std::string | str () const |
Returns a string representation of the current state. More... | |
void | SetDesc (const std::string &d) |
Set the detailed description of the current state. More... | |
std::string | GetDesc () const |
Get the detailed description of the current state. More... | |
DTRStatusType | GetStatus () const |
Get the DTRStatusType of the current state. More... | |
Static Public Attributes | |
static const std::vector< DTRStatus::DTRStatusType > | ToProcessStates |
Vector of states with a to be processed action, eg CHECK_CACHE. More... | |
static const std::vector< DTRStatus::DTRStatusType > | ProcessingStates |
Vector of states with a processing action, eg CHECKING_CACHE. More... | |
static const std::vector< DTRStatus::DTRStatusType > | StagedStates |
Vector of states where a DTR is staged - used to limit the number of staged files. More... | |
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 |
|
inline |
Make new DTRStatus with given status and optional description.
|
inline |
Make new DTRStatus with default NEW status.
|
inline |
Get the detailed description of the current state.
|
inline |
Get the DTRStatusType of the current state.
|
inline |
Returns true if this status is not the same as the given DTRStatusType.
|
inline |
Returns true if this status is not the same as the given DTRStatus.
|
inline |
Make a new DTRStatus with the same status as the given DTRStatusType.
|
inline |
Returns true if this status is the same as the given DTRStatusType.
|
inline |
Returns true if this status is the same as the given DTRStatus.
|
inline |
Set the detailed description of the current state.
std::string DataStaging::DTRStatus::str | ( | ) | const |
Returns a string representation of the current state.
|
static |
Vector of states with a processing action, eg CHECKING_CACHE.
|
static |
Vector of states where a DTR is staged - used to limit the number of staged files.
|
static |
Vector of states with a to be processed action, eg CHECK_CACHE.