xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdMon
XrdMonSndStageEntry.hh
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* */
3
/* XrdMonSndStageEntry.hh */
4
/* */
5
/* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
6
/* All Rights Reserved */
7
/* Produced by Jacek Becla for Stanford University under contract */
8
/* DE-AC02-76SF00515 with the Department of Energy */
9
/*****************************************************************************/
10
11
// $Id$
12
#ifndef STAGEENTRY_HH
13
#define STAGEENTRY_HH
14
15
#include "
XrdMon/XrdMonTypes.hh
"
16
#include "
XrdSys/XrdSysHeaders.hh
"
17
18
#include <string>
19
using
std::ostream;
20
using
std::string;
21
22
// <user>.<pid>:<fd>@<host>\n&sz=bytes&tm=secs
23
class
XrdMonSndStageEntry
{
24
public
:
25
struct
CompactEntry
{
26
kXR_int32
id
;
27
string
others
;
// <user>.<pid>:<fd>@<host>\n&sz=bytes&tm=secs
28
kXR_int16
size
()
const
{
return
4 +
others
.size();}
29
};
30
31
XrdMonSndStageEntry
(
string
u,
32
kXR_int16
pid,
33
kXR_int16
fd,
34
string
host,
35
string
path,
36
kXR_int32
bytes,
37
kXR_int32
secs,
38
kXR_int32
tod,
39
kXR_int32
id
);
40
41
CompactEntry
code
();
42
43
private
:
44
string
_user
;
45
kXR_int16
_pid
;
46
kXR_int16
_fd
;
47
string
_host
;
48
string
_path
;
49
kXR_int32
_bytes
;
50
kXR_int32
_secs
;
51
kXR_int32
_tod
;
52
53
kXR_int32
_myId
;
54
55
friend
ostream&
operator<<
(ostream& o,
56
const
XrdMonSndStageEntry
& m);
57
};
58
59
#endif
/* STAGEENTRY_HH */
Generated by
1.8.3.1