No Matches
Go to the documentation of this file.
1#ifndef __XRDFRMMONITOR__
2#define __XRDFRMMONITOR__
4/* */
5/* X r d F r m M o n i t o r . h h */
6/* */
7/* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */
8/* All Rights Reserved */
9/* Produced by Andrew Hanushevsky for Stanford University under contract */
10/* DE-AC02-76-SFO0515 with the Department of Energy */
11/* */
12/* This file is part of the XRootD software suite. */
13/* */
14/* XRootD is free software: you can redistribute it and/or modify it under */
15/* the terms of the GNU Lesser General Public License as published by the */
16/* Free Software Foundation, either version 3 of the License, or (at your */
17/* option) any later version. */
18/* */
19/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22/* License for more details. */
23/* */
24/* You should have received a copy of the GNU Lesser General Public License */
25/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27/* */
28/* The copyright holder's institutional names and contributor's names may not */
29/* be used to endorse or promote products derived from this software without */
30/* specific prior written permission of the institution or contributor. */
33#include <cinttypes>
34#include <ctime>
35#include <sys/types.h>
38#include "XProtocol/XPtypes.hh"
40#define XROOTD_MON_INFO 1
41#define XROOTD_MON_STAGE 2
42#define XROOTD_MON_MIGR 4
43#define XROOTD_MON_PURGE 8
45class XrdNetMsg;
51static void Defaults(char *dest1, int m1, char *dest2, int m2,
52 int iTime);
54static void Ident();
56static int Init(const char *iHost, const char *iProg,
57 const char *iName);
59static kXR_unt32 Map(char code, const char *uname, const char *path);
61static char monMIGR;
62static char monPURGE;
63static char monSTAGE;
70 const char id, int size);
71static int Send(int mmode, void *buff, int size);
73static char *Dest1;
74static int monMode1;
76static char *Dest2;
77static int monMode2;
80static int isEnabled;
81static char *idRec;
82static int idLen;
83static int sidSize;
84static char *sidName;
85static int idTime;
int kXR_int32
Definition XPtypes.hh:89
unsigned int kXR_unt32
Definition XPtypes.hh:90
Definition XrdFrmMonitor.hh:48
static char monPURGE
Definition XrdFrmMonitor.hh:62
static void Ident()
static int idLen
Definition XrdFrmMonitor.hh:82
static XrdNetMsg * InetDest2
Definition XrdFrmMonitor.hh:78
static XrdNetMsg * InetDest1
Definition XrdFrmMonitor.hh:75
static char * sidName
Definition XrdFrmMonitor.hh:84
static char * Dest2
Definition XrdFrmMonitor.hh:76
static int Init(const char *iHost, const char *iProg, const char *iName)
static int Send(int mmode, void *buff, int size)
static char monMIGR
Definition XrdFrmMonitor.hh:61
static void fillHeader(XrdXrootdMonHeader *hdr, const char id, int size)
static int monMode2
Definition XrdFrmMonitor.hh:77
static void Defaults(char *dest1, int m1, char *dest2, int m2, int iTime)
static int monMode1
Definition XrdFrmMonitor.hh:74
static int sidSize
Definition XrdFrmMonitor.hh:83
static char * idRec
Definition XrdFrmMonitor.hh:81
static int idTime
Definition XrdFrmMonitor.hh:85
static kXR_int32 startTime
Definition XrdFrmMonitor.hh:79
static kXR_unt32 Map(char code, const char *uname, const char *path)
static int isEnabled
Definition XrdFrmMonitor.hh:80
static char monSTAGE
Definition XrdFrmMonitor.hh:63
static char * Dest1
Definition XrdFrmMonitor.hh:73
Definition XrdNetMsg.hh:50
Definition XrdXrootdMonData.hh:40