xrootd
XrdFrmXfrAgent.hh
Go to the documentation of this file.
00001 #ifndef __FRMXFRAGENT_H__
00002 #define __FRMXFRAGENT_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                     X r d F r m X f r A g e n t . h h                      */
00006 /*                                                                            */
00007 /*                                                                            */
00008 /* (c) 2010 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 /* This file is part of the XRootD software suite.                            */
00014 /*                                                                            */
00015 /* XRootD is free software: you can redistribute it and/or modify it under    */
00016 /* the terms of the GNU Lesser General Public License as published by the     */
00017 /* Free Software Foundation, either version 3 of the License, or (at your     */
00018 /* option) any later version.                                                 */
00019 /*                                                                            */
00020 /* XRootD is distributed in the hope that it will be useful, but WITHOUT      */
00021 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      */
00022 /* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public       */
00023 /* License for more details.                                                  */
00024 /*                                                                            */
00025 /* You should have received a copy of the GNU Lesser General Public License   */
00026 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file  */
00027 /* COPYING (GPL license).  If not, see <http://www.gnu.org/licenses/>.        */
00028 /*                                                                            */
00029 /* The copyright holder's institutional names and contributor's names may not */
00030 /* be used to endorse or promote products derived from this software without  */
00031 /* specific prior written permission of the institution or contributor.       */
00032 /******************************************************************************/
00033 
00034 #include "XrdFrc/XrdFrcReqAgent.hh"
00035 
00036 class XrdOucStream;
00037 
00038 class XrdFrmXfrAgent
00039 {
00040 public:
00041 
00042 static void Process(XrdOucStream &Request);
00043 
00044 static int  Start();
00045 
00046            XrdFrmXfrAgent() {}
00047           ~XrdFrmXfrAgent() {}
00048 
00049 private:
00050 
00051 static void Add (XrdOucStream &Request, char *Tok, XrdFrcReqAgent &Server);
00052 static XrdFrcReqAgent *Agent(char bType);
00053 static void Del (XrdOucStream &Request, char *Tok, XrdFrcReqAgent &Server);
00054 static void List(XrdOucStream &Request, char *Tok);
00055 
00056 static XrdFrcReqAgent GetAgent;
00057 static XrdFrcReqAgent PutAgent;
00058 static XrdFrcReqAgent MigAgent;
00059 static XrdFrcReqAgent StgAgent;
00060 };
00061 #endif