XrdCmsJob.hh

Go to the documentation of this file.
00001 #ifndef __CMS_JOB_H__
00002 #define __CMS_JOB_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                          X r d C m s J o b . h h                           */
00006 /*                                                                            */
00007 /*                                                                            */
00008 /* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University  */
00009 /*                            All Rights Reserved                             */
00010 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00011 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00012 /******************************************************************************/
00013 
00014 //       $Id: XrdCmsJob.hh 24468 2008-06-22 16:47:03Z ganis $
00015 
00016 #include "XProtocol/YProtocol.hh"
00017 
00018 #include "Xrd/XrdJob.hh"
00019 #include "XrdSys/XrdSysPthread.hh"
00020 
00021 class XrdCmsProtocol;
00022 class XrdCmsRRData;
00023 
00024 class XrdCmsJob : public XrdJob
00025 {
00026 public:
00027 
00028 static XrdCmsJob      *Alloc(XrdCmsProtocol *, XrdCmsRRData *);
00029 
00030        void            DoIt();
00031 
00032        void            Recycle();
00033 
00034        XrdCmsJob() : XrdJob("cms request job"), JobLink(0) {}
00035       ~XrdCmsJob() {}
00036 
00037 private:
00038 
00039 static XrdSysMutex     JobMutex;
00040 static XrdCmsJob      *JobStack;
00041        XrdCmsJob      *JobLink;
00042 
00043        XrdCmsProtocol *theProto;
00044        XrdCmsRRData   *theData;
00045 };
00046 #endif

Generated on Tue Jul 5 14:46:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1