ARC SDK
Public Types | Public Member Functions | Static Public Attributes
DataStaging::DTRStatus Class Reference

Class representing the status of a DTR. More...

#include <arc/data-staging/DTRStatus.h>

Public Types

enum  DTRStatusType {
  NEW, CHECK_CACHE, CHECKING_CACHE, CACHE_WAIT,
  CACHE_CHECKED, RESOLVE, RESOLVING, RESOLVED,
  QUERY_REPLICA, QUERYING_REPLICA, REPLICA_QUERIED, PRE_CLEAN,
  PRE_CLEANING, PRE_CLEANED, STAGE_PREPARE, STAGING_PREPARING,
  STAGING_PREPARING_WAIT, STAGED_PREPARED, TRANSFER, TRANSFERRING,
  TRANSFERRING_CANCEL, TRANSFERRED, RELEASE_REQUEST, RELEASING_REQUEST,
  REQUEST_RELEASED, REGISTER_REPLICA, REGISTERING_REPLICA, REPLICA_REGISTERED,
  PROCESS_CACHE, PROCESSING_CACHE, CACHE_PROCESSED, DONE,
  CANCELLED, CANCELLED_FINISHED, ERROR, NULL_STATE
}
 Possible state values. More...
 

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...
 
DTRStatusoperator= (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...
 

Detailed Description

Class representing the status of a DTR.

Member Enumeration Documentation

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

Constructor & Destructor Documentation

DataStaging::DTRStatus::DTRStatus ( const DTRStatusType status,
std::string  desc = "" 
)
inline

Make new DTRStatus with given status and optional description.

DataStaging::DTRStatus::DTRStatus ( )
inline

Make new DTRStatus with default NEW status.

Member Function Documentation

std::string DataStaging::DTRStatus::GetDesc ( ) const
inline

Get the detailed description of the current state.

DTRStatusType DataStaging::DTRStatus::GetStatus ( ) const
inline

Get the DTRStatusType of the current state.

bool DataStaging::DTRStatus::operator!= ( const DTRStatusType s) const
inline

Returns true if this status is not the same as the given DTRStatusType.

bool DataStaging::DTRStatus::operator!= ( const DTRStatus s) const
inline

Returns true if this status is not the same as the given DTRStatus.

DTRStatus& DataStaging::DTRStatus::operator= ( const DTRStatusType s)
inline

Make a new DTRStatus with the same status as the given DTRStatusType.

Python interface deviation
Method is unavailable in Python interface
Java interface deviation
Method is unavailable in Java interface
bool DataStaging::DTRStatus::operator== ( const DTRStatusType s) const
inline

Returns true if this status is the same as the given DTRStatusType.

bool DataStaging::DTRStatus::operator== ( const DTRStatus s) const
inline

Returns true if this status is the same as the given DTRStatus.

void DataStaging::DTRStatus::SetDesc ( const std::string &  d)
inline

Set the detailed description of the current state.

std::string DataStaging::DTRStatus::str ( ) const

Returns a string representation of the current state.

Field Documentation

const std::vector<DTRStatus::DTRStatusType> DataStaging::DTRStatus::ProcessingStates
static

Vector of states with a processing action, eg CHECKING_CACHE.

Java interface deviation
The member is only accessible through the getProcessingStates and setProcessingStates methods in the Java interface
const std::vector<DTRStatus::DTRStatusType> DataStaging::DTRStatus::StagedStates
static

Vector of states where a DTR is staged - used to limit the number of staged files.

Java interface deviation
The member is only accessible through the getStagedStates and setStagedStates methods in the Java interface
const std::vector<DTRStatus::DTRStatusType> DataStaging::DTRStatus::ToProcessStates
static

Vector of states with a to be processed action, eg CHECK_CACHE.

Java interface deviation
The member is only accessible through the getToProcessStates and setToProcessStates methods in the Java interface

The documentation for this class was generated from the following file: