|
ARC SDK
|
This class contacts a remote service to make a Delivery request. More...
#include <arc/data-staging/DataDeliveryRemoteComm.h>
Public Member Functions | |
| DataDeliveryRemoteComm (DTR_ptr dtr, const TransferParameters ¶ms) | |
| Send the transfer request to the remote service. More... | |
| virtual | ~DataDeliveryRemoteComm () |
| If transfer is still ongoing, sends a cancellation message to the service. More... | |
| virtual void | PullStatus () |
| Read status from service. More... | |
| virtual | operator bool () const |
| Returns true if service is still processing request. More... | |
| virtual bool | operator! () const |
| Returns true if service is not processing request or down. More... | |
Public Member Functions inherited from DataStaging::DataDeliveryComm | |
| virtual | ~DataDeliveryComm () |
| Destroy object. This stops any ongoing transfer and cleans up resources. More... | |
| Status | GetStatus () const |
| Obtain status of transfer. More... | |
| std::string | GetError () const |
| Get explanation of error. More... | |
Static Public Member Functions | |
| static bool | CheckComm (DTR_ptr dtr, std::vector< std::string > &allowed_dirs) |
| Pings service to find allowed dirs. More... | |
Static Public Member Functions inherited from DataStaging::DataDeliveryComm | |
| static DataDeliveryComm * | CreateInstance (DTR_ptr dtr, const TransferParameters ¶ms) |
| Factory method to get DataDeliveryComm instance. More... | |
| static bool | CheckComm (DTR_ptr dtr, std::vector< std::string > &allowed_dirs) |
| Check the delivery method is available. Calls CheckComm of the appropriate subclass. More... | |
Additional Inherited Members | |
Public Types inherited from DataStaging::DataDeliveryComm | |
| enum | CommStatusType { CommInit, CommNoError, CommTimeout, CommClosed, CommExited, CommFailed } |
| Communication status with transfer. More... | |
Protected Member Functions inherited from DataStaging::DataDeliveryComm | |
| DataDeliveryComm (DTR_ptr dtr, const TransferParameters ¶ms) | |
| Start transfer with parameters taken from DTR and supplied transfer limits. More... | |
Protected Attributes inherited from DataStaging::DataDeliveryComm | |
| Status | status_ |
| Current status of transfer. More... | |
| Status | status_buf_ |
| Latest status of transfer is read into this buffer. More... | |
| unsigned int | status_pos_ |
| Reading position of Status buffer. More... | |
| Glib::Mutex | lock_ |
| Lock to protect access to status. More... | |
| DataDeliveryCommHandler * | handler_ |
| Pointer to singleton handler of all DataDeliveryComm objects. More... | |
| TransferParameters | transfer_params |
| Transfer limits. More... | |
| Arc::Time | start_ |
| Time transfer was started. More... | |
| DTRLogger | logger_ |
| Logger object. Pointer to DTR's Logger. More... | |
This class contacts a remote service to make a Delivery request.
| DataStaging::DataDeliveryRemoteComm::DataDeliveryRemoteComm | ( | DTR_ptr | dtr, |
| const TransferParameters & | params | ||
| ) |
Send the transfer request to the remote service.
|
virtual |
If transfer is still ongoing, sends a cancellation message to the service.
|
static |
Pings service to find allowed dirs.
|
inlinevirtual |
Returns true if service is still processing request.
Implements DataStaging::DataDeliveryComm.
|
inlinevirtual |
Returns true if service is not processing request or down.
Implements DataStaging::DataDeliveryComm.
|
virtual |
Read status from service.
Implements DataStaging::DataDeliveryComm.
1.8.3.1-20130209