DataStaging::DTRStatus Class Reference

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

#include <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
}

Public Member Functions

 DTRStatus (const DTRStatusType &status, std::string desc="")
 DTRStatus ()
bool operator== (const DTRStatusType &s) const
bool operator== (const DTRStatus &s) const
bool operator!= (const DTRStatusType &s) const
bool operator!= (const DTRStatus &s) const
DTRStatusoperator= (const DTRStatusType &s)
std::string str () const
void SetDesc (const std::string &d)
std::string GetDesc () const
DTRStatusType GetStatus () const

Static Public Attributes

static const std::vector
< DTRStatus::DTRStatusType
ToProcessStates
static const std::vector
< DTRStatus::DTRStatusType
ProcessingStates
static const std::vector
< DTRStatus::DTRStatusType
StagedStates

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


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:36 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3