|
xrootd
|
00001 //------------------------------------------------------------------------------ 00002 // Copyright (c) 2011-2012 by European Organization for Nuclear Research (CERN) 00003 // Author: Lukasz Janyst <ljanyst@cern.ch> 00004 //------------------------------------------------------------------------------ 00005 // XRootD is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU Lesser General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // XRootD is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with XRootD. If not, see <http://www.gnu.org/licenses/>. 00017 //------------------------------------------------------------------------------ 00018 00019 #ifndef __XRD_CL_THIRD_PARTY_COPY_JOB_HH__ 00020 #define __XRD_CL_THIRD_PARTY_COPY_JOB_HH__ 00021 00022 #include "XrdCl/XrdClCopyProcess.hh" 00023 00024 namespace XrdCl 00025 { 00026 class ThirdPartyCopyJob: public CopyJob 00027 { 00028 public: 00029 struct Info 00030 { 00031 Info(): sourceSize(0) {} 00032 URL source; 00033 std::string sourceChecksum; 00034 uint64_t sourceSize; 00035 }; 00036 00037 //------------------------------------------------------------------------ 00039 //------------------------------------------------------------------------ 00040 ThirdPartyCopyJob( JobDescriptor *jobDesc, Info *tpcInfo ); 00041 00042 //------------------------------------------------------------------------ 00047 //------------------------------------------------------------------------ 00048 virtual XRootDStatus Run( CopyProgressHandler *progress = 0 ); 00049 00050 //------------------------------------------------------------------------ 00058 //------------------------------------------------------------------------ 00059 static XRootDStatus CanDo( JobDescriptor *jd, Info *tpcInfo ); 00060 00061 private: 00062 static std::string GenerateKey(); 00063 Info pTPCInfo; 00064 }; 00065 } 00066 00067 #endif // __XRD_CL_THIRD_PARTY_COPY_JOB_HH__
1.7.6.1