|
xrootd
|


Public Member Functions | |
| AtLeastPolicy (size_t size, size_t threshold) | |
| bool | Examine (const XrdCl::XRootDStatus &status) |
| XRootDStatus | Result () |
Public Member Functions inherited from XrdCl::PolicyExecutor | |
| virtual | ~PolicyExecutor () |
Private Attributes | |
| std::atomic< size_t > | pending_cnt |
| std::atomic< size_t > | failed_cnt |
| const size_t | failed_threshold |
| XRootDStatus | res |
At Least policy implementation
At least n (user defined) operations need to succeed in order for the parallel operation to be successful (the user handler will be called only when all operations are resolved).
|
inline |
|
inlinevirtual |
Implements XrdCl::PolicyExecutor.
References XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::failed_cnt, XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::failed_threshold, XrdCl::Status::IsOK(), XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::pending_cnt, and XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::res.
|
inlinevirtual |
Implements XrdCl::PolicyExecutor.
References XrdCl::ParallelOperation< HasHndl >::AtLeastPolicy::res.
|
private |
|
private |
|
private |
|
private |
1.8.5