hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ProcFileSystem.h
Go to the documentation of this file.
1
#ifndef PROCFILESYSTEM
2
#define PROCFILESYSTEM
3
#include <stdlib.h>
4
#include <stdio.h>
5
#include <sys/types.h>
6
#include <
string.h
>
7
8
class
ProcFileSystem
9
{
10
public
:
11
ProcFileSystem
()
12
{
13
}
14
~ProcFileSystem
()
15
{
16
}
17
char
*
getUptime
();
18
unsigned
long
long
getTotalMem
();
19
unsigned
long
long
getFreeMem
();
20
unsigned
long
long
getFreeMemSelf
();
21
unsigned
long
long
getRunTime
();
22
unsigned
long
getUTime
();
23
unsigned
long
getSTime
();
24
char
*
getHostName
();
25
int
setHostName
(
char
*hostname);
26
unsigned
long
long
getShmAll
();
27
int
setShmAll
(
unsigned
long
long
);
28
unsigned
long
long
getShmMax
();
29
int
setShmMax
(
unsigned
long
long
);
30
unsigned
long
long
getVmSize
();
31
unsigned
long
long
getVmRSS
();
32
private
:
33
char
*file_get_contents(
const
char
*filename,
size_t
& size);
34
int
fast_str_pos(
const
char
*str,
const
char
*pattern);
35
};
36
#endif
sources
utils
applicationFramework
src
ProcFileSystem.h
Generated on Tue Jun 30 2015 19:42:10 for hce-node application by
1.8.1.2