00001 /*****************************************************************************/ 00002 /* */ 00003 /* XrdMonCtrAdmin.hh */ 00004 /* */ 00005 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */ 00006 /* All Rights Reserved */ 00007 /* Produced by Jacek Becla for Stanford University under contract */ 00008 /* DE-AC02-76SF00515 with the Department of Energy */ 00009 /*****************************************************************************/ 00010 00011 // $Id: XrdMonCtrAdmin.hh 22437 2008-03-04 14:35:16Z rdm $ 00012 00013 #ifndef XRDMONCTRADMIN_HH 00014 #define XRDMONCTRADMIN_HH 00015 00016 #include "XrdMon/XrdMonCommon.hh" 00017 #include "XrdMon/XrdMonHeader.hh" 00018 00019 // class responsible for interpreting admin packets 00020 // and taking appropriete action 00021 00022 class XrdMonCtrAdmin { 00023 00024 public: 00025 static bool isAdminPacket(const XrdMonHeader& header) { 00026 return header.packetType() == PACKET_TYPE_ADMIN; 00027 } 00028 00029 static void doIt(kXR_int16 command, kXR_int16 arg); 00030 00031 static void decodeAdminPacket(const char* packet, 00032 kXR_int16& command, 00033 kXR_int16& arg); 00034 }; 00035 00036 #endif /* XRDMONCTRADMIN_HH */