/[gomd]/gomd/daemon/constants.h
ViewVC logotype

Log of /gomd/daemon/constants.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Mon Mar 29 21:19:34 2004 UTC (20 years, 1 month ago) by rejected
Branch: MAIN
CVS Tags: HEAD
Changes since 1.30: +2 -1 lines
Diff to previous 1.30
NOTE: now the configuration for LoadLimit support is correctly read & parsed. :)

IN constants.h
(+) added new MAX_CHARS_TO_READ constant (set to 256). This var is used in utils::parseSpecialFile() function

IN utils.cpp
(+) in parseSpecialFile() function: using new MAX_CHARS_TO_READ constant.


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Sun Mar 28 18:54:07 2004 UTC (20 years, 1 month ago) by rejected
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29
IN constants.h
(+) added 2 new constants used by llSupport class: LOADLIMIT_CONF_FILE constant (set to "/etc/gomd/llsupport.conf") and LOADLIMIT_HPC_FILE (set to "/proc/hpc/admin/loadlimit").


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sun Mar 28 18:43:52 2004 UTC (20 years, 1 month ago) by rejected
Branch: MAIN
Changes since 1.28: +10 -6 lines
Diff to previous 1.28
IN etc/llsupport.conf
(+) added configuration file fo LoadLimit feature support.

IN llSupport.cpp
(-) added isLLEnabled() function to check if loadlimit support is enabled.

IN Makefile.no_libgtop/Makefile.with_libgtop
(+) added etc/llsupport.conf file to installation

IN globalInitializer.h/globalInitilializer.cpp
(+) added llSupport class initialization stuff.


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Sun Jan 11 20:19:55 2004 UTC (20 years, 3 months ago) by rejected
Branch: MAIN
Changes since 1.27: +6 -2 lines
Diff to previous 1.27
IN constants.h
(+) added INFINITE_TIME constant

IN utils.h/utils.cpp
(r) renamed executeCommandAndGetChildOutput()
 as executeCommandAndReturnChildOutput()
(+) in executeCommandAndReturnChildOutput(): added INFINITE_TIME as default value => we'll wait for natural program exit instead of killing it after a specified non-infinite TTL.


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sat Jan 3 23:09:41 2004 UTC (20 years, 3 months ago) by rejected
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26
(N) commit by: rejected

IN constants.h
(+) added PROCESS_TIME_TO_LIVE constant (set to 30)

IN utils.cpp
(+) added child-process time-to-live handling in execCommandAndGetChildOutput() function: if you invoke a command that takes a long time (>= PROCESS_TIME_TO_LIVE seconds), the process will be automagically killed and its ouput returned to the client.
(+) added sigAlarmHandler() function to handle SIGVTALRM signal (raised when the child-process TTL expires)
(+) added lots of comments
(+) some cleanups


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Fri Dec 26 20:57:26 2003 UTC (20 years, 4 months ago) by uid68045
Branch: MAIN
Changes since 1.25: +4 -1 lines
Diff to previous 1.25
IN constants.h
(+) added XML_LOG_FILE macro (to set the output file for xml-based logging => STILL NOT FULLY IMPLEMENTED!)


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Thu Nov 6 22:37:45 2003 UTC (20 years, 5 months ago) by rejected
Branch: MAIN
Changes since 1.24: +13 -7 lines
Diff to previous 1.24
NOTE: new import for chpoxSupport class (cleanups, start support for default behaviours)

IN chpsupport.conf
(+) added new configuration file sample

IN chpoxSupport.h/chpoxSupport.cpp
(+) added step #9 in run() function. It will invoke the re-appending of a PID if the process is included in the new chpox support configuration map.
(+) added chpox status check in appendToPendingDumpsQueue() function.
(+) added fillChpSupportConfiguration() function to fill the new m_chpSupportConfiguration map.
(+) added printChpSupportConfiguration() fuction to pront the contents of m_chpSupportConfiguration map.
(+) added stringToAutodumpType() functin to convert a string into its equivalent chpox_autodump_t.

IN constants.h
(+) added new constants:
#define CHPOX_DUMP_ONCE 0 => dump once teh process
#define CHPOX_DUMP_PERSISTENT 1 => dump periodically the process
#define CHPOX_ALL_APPS 10 => default behaviour for all apps

IN csCollector.cpp
(+) added calls to new chpoxSupport::fillChpSupportConfiguration() e chpoxSupport::printChpSupportConfiguration() functions (to read the chpox support configuration file)

IN Makefile.with_libgtop/Makefile.no_libgtop
(+) added chpsupport.conf to "make install" and "make cw_install"

IN utils.h/utils.cpp
(+) added stringToLong() function (type #2).


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Sun Nov 2 12:33:05 2003 UTC (20 years, 5 months ago) by rejected
Branch: MAIN
Changes since 1.23: +5 -3 lines
Diff to previous 1.23
NOTE: mayor update for chpoxSupport class

IN chpoxProc.cpp
(m) change from CHPOX_MAX_DUMPS to CHPOX_MAX_DUMPS_PER_PROCESS

IN chpoxSupport.h/chpoxSupport.cpp
(+) added dumpRegisteredProces() function => this function invoked process dump (==checkpointing).
(+) in registerProcess() function => lots of changes (clenaups, checkpoint call, check is dump file was correctly generated, wait before checking for dump file,...)
(+) in printRegisteredProcList() => cosmetics
(+) tons of comments.

IN constants.h
(+) added #define CHPOX_DUMP_SIGNAL (signal id for checkpointing)
(m) changed #define CHPOX_MAX_DUMPS to CHPOX_MAX_DUMPS_PER_PROCESS
(m) changed #define CHPOX_DUMP_DIR /var/tmp to /tmp

IN csCollector.h/csCollector.cpp
(+) now the user will be asked for a valid PID to test the testRegisterProcess() function.

OUTPUT EXAMPLE:

[...]

***************************************
*    TESTING CHPOX SUPPORT (ALPHA)    *
***************************************

[TST]: this code is experimental! :)
[TST]: please enter the PID of process to be checkpointed: 17719

[TST]: round #1
[TST]: try registering process with pid=17719
[CHP]: pid: [17719] cmdline: [/bin/bash]
[CHP]: registering the libs needed by program /bin/bash.
       => /lib/libdl.so.2
       => /lib/libc.so.6
       => /lib/ld-linux.so.2
[CHP]: the program needs 3 libs.
[CHP]: registering the app....
       => 17719:31:9:/tmp/bash_20031102_123131_17719.dump
[CHP]: dump signal (31) succesfully sent to target process (pid=17719)
[CHP]: wait 10 seconds before continuing...
[CHP]: dump file correctly created (file=/tmp/bash_20031102_123131_17719.dump)
[CHP]: added a new entry to the list of registered procs.
[CHP]: number of saved dumps for the registered proc: 1
[CHP]: the list of registered procs contains 1 entries.

[TST]: round #2
[TST]: try registering again process with pid=17719
           to test the saved-procs linked list.
[CHP]: pid: [17719] cmdline: [/bin/bash]
[CHP]: registering the libs needed by program /bin/bash.
       => /lib/libdl.so.2
       => /lib/libc.so.6
       => /lib/ld-linux.so.2
[CHP]: the program needs 3 libs.
[CHP]: registering the app....
       => 17719:31:9:/tmp/bash_20031102_123141_17719.dump
[CHP]: dump signal (31) succesfully sent to target process (pid=17719)
[CHP]: wait 10 seconds before continuing...
[CHP]: dump file correctly created (file=/tmp/bash_20031102_123141_17719.dump)
[CHP]: proc yet registered.
[CHP]: updated the proc entry.
[CHP]: number of saved dumps for the registered proc: 2

[TST]: round #3
[TST]: try registering again process with pid=17719
           to test the saved-procs linked list.
[CHP]: pid: [17719] cmdline: [/bin/bash]
[CHP]: registering the libs needed by program /bin/bash.
       => /lib/libdl.so.2
[CHP]: the program needs 1 libs.
[CHP]: registering the app....
       => 17719:31:9:/tmp/bash_20031102_123151_17719.dump
[CHP]: dump signal (31) succesfully sent to target process (pid=17719)
[CHP]: wait 10 seconds before continuing...
[CHP]: dump file correctly created (file=/tmp/bash_20031102_123151_17719.dump)
[CHP]: proc yet registered.
[CHP]: updated the proc entry.
[CHP]: number of saved dumps for the registered proc: 3

[TST]: results...
[TST]: you should see just one entry with 3 dumps
       => Entry #1
          Required libs (3 libs found):
          - /lib/libdl.so.2
          - /lib/libc.so.6
          - /lib/ld-linux.so.2
          Dump filenames (3 dump files found):
          - /tmp/bash_20031102_123131_17719.dump
          - /tmp/bash_20031102_123141_17719.dump
          - /tmp/bash_20031102_123151_17719.dump

[TST]: notice we waited 10 seconds between a round and another one.
[TST]: test end.


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Sun Nov 2 00:27:56 2003 UTC (20 years, 5 months ago) by rejected
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22
NOTE: new import for chpoxSupport class (added check for yet
registered procs)

IN chpoxProc.h/chpoxProc.cpp
(+) added setRequiredLibs() function to set the libs required by the program
(+) added setNewDump() function to add a new dump to the list of dump filenames.

IN chpoxSupport.h/chpoxSupport.cpp
(+) now registerProcess() function can handle also yet registered procs.
(+) added updateList() function: creates a new entry for every new registered process or updates the entry for process already registered.
(+) added printRegisteredProcList() to show the contents of the list of saved (==yet registered) procs.

IN constants.h
(+) added new #define CHPOX_MAX_DUMPS to set a max number of dumps per-process

IN csCollector.h/csCollector.cpp
(+) added testRegisterProcess() from main.cpp file.
(+) testRegisterProcess() now registers three times the INIT process (PID=1) as test.

IN main.cpp
(+) moved testRegisterProcess() to csCollector class.

IN utils.h/util.cpp
(+) added new cloneStringLinkedLists() to copy a string linked list on another one.


(N) EXAMPLE OF USE:
- Launch gomd with --test-chpox/-tc command line option:
# gomd -nd -tc      (-nd is used to block gomd daemonizing)

- Example of output (for the chpox-support test only):
...
***************************************
*    TESTING CHPOX SUPPORT (ALPHA)    *
***************************************

[TST]: this code is experimental! :)

[TST]: round #1
[TST]: try registering INIT process (pid=1)
[CHP]: pid: [1] cmdline: [/sbin/init]
[CHP]: registering the libs needed by program /sbin/init.
       => /lib/libc.so.6
       => /lib/ld-linux.so.2
[CHP]: the program needs 2 libs.
[CHP]: registering the app....
       => 1:31:9:/var/tmp/init_20031102_002433_1.dump
[CHP]: added a new entry to the list of registered procs.
[CHP]: the list of registered procs contains 0 entries.
[CHP]: number of saved dumps for the registered proc: 1

[TST]: round #2
[TST]: try registering again INIT process (pid=1)
           to test the saved-procs linked list.
[CHP]: pid: [1] cmdline: [/sbin/init]
[CHP]: registering the libs needed by program /sbin/init.
       => /lib/libc.so.6
[CHP]: the program needs 1 libs.
[CHP]: registering the app....
       => 1:31:9:/var/tmp/init_20031102_002433_1.dump
[CHP]: proc yet registered.
[CHP]: updated the proc object.
[CHP]: number of saved dumps for the registered proc: 2

[TST]: round #3
[TST]: try registering again INIT process (pid=1)
           to test the saved-procs linked list.
[CHP]: pid: [1] cmdline: [/sbin/init]
[CHP]: registering the libs needed by program /sbin/init.
       => /lib/libc.so.6
[CHP]: the program needs 1 libs.
[CHP]: registering the app....
       => 1:31:9:/var/tmp/init_20031102_002433_1.dump
[CHP]: proc yet registered.
[CHP]: updated the proc object.
[CHP]: number of saved dumps for the registered proc: 3

[TST]: results...
[TST]: you should see just one entry with 3 dumps
       => Entry #1
          Required libs:
          - /lib/libc.so.6
          - /lib/ld-linux.so.2
          Dump filenames:
          - 1:31:9:/var/tmp/init_20031102_002433_1.dump
          - 1:31:9:/var/tmp/init_20031102_002433_1.dump
          - 1:31:9:/var/tmp/init_20031102_002433_1.dump

[TST]: notice the dumps have identical name:
[TST]: this code is really fast (maybe too fast)!!! :))).

(Maybe this is due to Linux time() function)


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Fri Oct 31 00:32:57 2003 UTC (20 years, 5 months ago) by rejected
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21
NOTE: new import for chpoxSupport class

IN chpoxProc.h/chpoxProc.cpp
(+) added new class to save the each registerd proc+libs.

IN chpoxSupport.h/chpoxSupport.cpp
(+) now registerProcess works! This function starts looking for libs needed by a given proc then register the proc and the libs. Then the functions saves the infos about the proc (and libs) in a chpoxProc instance and, finally, adds the new object to a list of registered procs (this list will be used to easily unregister the procs, checks the status,...).

IN constants.h
(+) added new #define CHPOX_REGISTER_MECHANISM "9" and
      #define CHPOX_DUMP_DIR "/var/tmp" constants.

IN main.cpp
(+) added new --test-chpox/-tc command line option to test registering the init proc + all required libs. ;)

IN Makefile.with_libgtop/Makefile.no_libgtop
(+) added new chpoxProc class to compilation line.


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Thu Oct 30 17:26:46 2003 UTC (20 years, 5 months ago) by rejected
Branch: MAIN
Changes since 1.20: +5 -4 lines
Diff to previous 1.20
NOTE: added new chpoxSupport class

IN chpoxSupport.h/chpoxSupport.cpp
(N) first import of this new class => here is the code to support the nice chpox app.
(+) added isChpoxEnabled() function to see if chpox is installed and running

IN constants.h
(+) added new #define CHPOX_INFO_FILE "/proc/chpox/info" (used to check if chpox is enabled)

IN csCollector.cpp
(+) added check for chpox (to see if it's enabled)
(+) added destructor (to do a cleanup at exit)

IN Makefile.with_libgtop/Makefile.no_libgtop
(+) added chpoxSupport class to compilation line


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sun Oct 19 20:29:03 2003 UTC (20 years, 6 months ago) by rejected
Branch: MAIN
Changes since 1.19: +9 -3 lines
Diff to previous 1.19
NOTE: from this release the daemon can be forced to read the (legacy) openMosix map file (/etc/[open]mosix.map) and use it instead of using the autodiscovery facility.
Check the new daemon command line option: "--readmap/-rm".

IN utils.h/utils.cpp
(+) added containsLetters() function to check if a string contains letters => used in gomdSearcher::

IN constants.h
(+) added new #define OM_NODESMAP_FILE to set the path to the openMosix map file

IN csCollector.cpp
(+) added readOpenMosixMapFile() to enable the start parsing of the (legacy) openMosix map file

IN gomdSearcher.h/gomdSearcher.cpp
(+) added getIPByHostname function to do a DNS lookup and to get the IP of a machine (given the hostname)
(+) added getHostnameByIP() function to do a DNS reverse lookup and to get the hostName of a machine (given the IP)
(+) added parseOmMapFileAndFillKnownGomdsMap() function to parse the (legacy) openMosix map file (/etc/[open]mosix.map)
(+) added createKnownGomdMapEntry() to translate each line of /legacy) oM map file to a valid entry for the knownGomdMap (used in the whole gomdSearcher class)

IN main.cpp
(+) added new command line option "--readmap/-rm" => this option force to read the (legacy) openMosix map file (/etc/[open]mosix.map) and use it instead of using the autodiscovery facility


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sat Oct 4 11:43:38 2003 UTC (20 years, 6 months ago) by rejected
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18
IN aclRulebook.cpp
(+) added comments

IN chSupport.cpp
(+) added comments


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Mon Sep 15 07:54:51 2003 UTC (20 years, 7 months ago) by rejected
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17
NOTE: first release for the full SCX facility (with 2 security layers).
- added cluster-wide support
- linked to SCX command-check facility (1 security layer)
- linked to updated checks of security class (2 security layer => require strict security mode enabled)

The request processing sequence:
- request is parsed, analyzed, splitted and finally executed (connHandler class)
- if the security is set to strict mode, the parsed command is checked to see if it is blacklisted (security class)
- the parsed command is checked to see if it is a valid, listed command (scxCmdsbook class).

IN chSupport.h/chSupport.cpp
(N) this new class ("ch" stands for "connHandler") contains 3 functions moved from the "official"
      connHandler class. These functions are not important for the life of connHandler and they
      are thread-safe by nature because they can be only read.
      The object (just one!) is created in csCollector (the global "service provider" for gomd) so each
      connHandler object shares it and can use it.
(+) added 3 functions:
      - chSupport() => (was fillRulesArray()
      - showHelp()
      - showErrorCodes()

IN connHandler.h/connHandler.cpp
(+) added support for the full SCX mode.
(+) huge cleanups
(+) added string securityChecks() to perform common checks.
(-) moved fillRulesArray(), showHelp() and showErrorCodes() to new chSupport class.
(f) fixed huge bug while requesting node list with oM not started!

IN constants.h
(+) added SEC_FAKE_DIR constant used in security class.

IN csCollector.h/csCollector.cpp
(+) added support for chSupport.

IN main.cpp
(-) moved security class stuff to csCollector

IN security.h/security.cpp
(N) the updated security class includes some new security checks.
      To enable them, launch gomd with the -s/--security option.
(+) added 3 new functions:
      - changeCurrWorkingDir() =>change the current working directory for gomd to a fake
                                                directory defined in constants.h (so commands executed by SCX
                                                are banished in this fake directory)
      - isOMEnabled() => check if oM is enabled and/or the node is properly configured
      - setStrictSecurity() => do perform all the checks
(+) updated

PS: I've just notice some small bugs => they will be corrected ASAP.
PS#2: this is an huge update => the new stuff needs lots of tests. ASAP I'll provide an extended stress test (something like an test unit).


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sat Sep 13 21:51:29 2003 UTC (20 years, 7 months ago) by rejected
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16
IN connHandler.h/connHandler.cpp
(+) added executeCommand(string command) and generateSnapshot() functions.
(+) added new param type support for a client request in analyzeOption() function: STRING.
(+) changed info #103 format => [exec] cmd/xc/103 STRING (where STRING is a command+arguments like "ls /usr"). Notice [exec] is optional => short format handled in fixShortFormatRequest().
(+) huge cleanup in analyzeOption()

IN constants.h
(+) added new STRING macro


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Fri Sep 12 21:34:27 2003 UTC (20 years, 7 months ago) by rejected
Branch: MAIN
Changes since 1.15: +34 -10 lines
Diff to previous 1.15
NOTE: first import for preliminar Secured Cluster-wide eXecution (SCX) support.
Actually:
- the security check is not linked
- the command ("cat /etc/fstab") is hardcoded => ASAP the complete implementation. By the way: SCX supports "short" or "long" process.
- the cluster-wide support must be added

IN connHandler.cpp
(+) added new info: exec cmd/xc/103 => starts a simple SCX test (no security check is performed, ATM).
(+) cleanups
(-) removed the ACL objects stuff => we'll use the all-inclusive updated csCollector class.

IN csCollector.h/csCollector.cpp
(+) now the object contains all the cool stuff (ACL, new SCX,..) => threads (connHandler objects) will use
(+) cleanups

IN scxCheck.h/scxCheck.cpp
(N) used to check and execute command. Commands are executed in separate (child) process. We get the child process ouput and send it to the client.
(+) added new checkCommand(), parseCommand(), execCommandAndGetChildOutput() functions.
(+) cleanups

IN scxRulebook.h/scxRulebook.cpp
(N) used to read the list (book) of allowed commands.
(+) added new getScxMap(), fillScxMap(), printScxMap() functions.

IN main.cpp
(+) updated to support the changed connHandler class

IN supported_cmds
(+) added new info entry: exec cmd/xc/103.


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Aug 23 09:54:51 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.14: +8 -7 lines
Diff to previous 1.14
IN Makefile.no_libgtop/Makefile.with_libgtop
(+) now gomd conf file are installed in /etc/gomd directory
(+) cleanups

IN constants.h
(+) gomd runs loads file from /etc/gomd directory


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri Aug 22 22:25:48 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.13: +8 -2 lines
Diff to previous 1.13
IN connHandler.h/connHandler.cpp
(+) added new showErrorCodes() function for the new option "get errorcodes/ec/102"

IN constants.h
(+) added error codes

IN omInfo.cpp/utils.cpp/gomdSearcher.cpp
(+) using the new error codes defined in constants.h

IN supported_cmds
(+) added new available option: "get errorcodes/ec/102"


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Wed Aug 20 15:10:59 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
IN constants.h
(m) default highest IP to search for clusterSnapshot now is set to 10 (#define GOMD_SEARCHER_IP_TO_PING 10)


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Mon Aug 18 08:31:06 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11
*** empty log message ***


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Wed Aug 13 13:10:44 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.10: +10 -2 lines
Diff to previous 1.10
IN connHandler.h/connHandler.cpp
(+) added support for HTML snapshot in option #34 handling


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Fri Aug 1 20:21:37 2003 UTC (20 years, 8 months ago) by rejected
Branch: MAIN
Changes since 1.9: +7 -4 lines
Diff to previous 1.9
IN constants.h
(+) added KNOWN_COMGDS_FILE constant to specify how to save the list of known gomds
(+) added GOMD_SEARCHER_IP_TO_PING constant to specify the upper value for range IP (to be "pinged")

IN connHandler.h/connHandler.cpp
(+) added support for new "start autodiscovery/ad/100" option (used to invoke gomd autodiscovery facility)

IN gomdSearcher.h/gomdSearcher.cpp
(+) added setLocalIP() function to set the IP used to get the subnet address
(+) added saveKnownGomdsMapToFile() function to save the list of the discovered gomds to a file

IN main.cpp
(+) cosmetics

IN supported_cmds
(+) added new entry for the autodiscovery facility ("start autodiscovery/ad/100")

IN utils.h/utils.cpp
(+) added openFile(), writeToOpenFile() and closeOpen() functions to get full write control on a file
      (used in saveKnownGomdsMapToFile() function to avoid opening/closing file to write a single line :) )

IN README
(u) updated the commoncpp release note to .13 (latest available release)


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Sat Jul 12 22:36:59 2003 UTC (20 years, 9 months ago) by rejected
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8
NOTE: from this release I renamed important files (gomd.h/gomd.cpp)
(r) renamed gomd.h to connHandler.h
(r) renamed gomd.cpp to connHandler.cpp
I made this change to avoid confusion about the program (before this change word "gomd" referred to the project, to the daemon and the class
implementing the client conn => ugly!) .

IN Makefile.with_libgtop/Makefile.no_libgtop/main.cpp
(m) modified #include and objects to support connHandler.h/connHandler.cpp (they were gomd.h/gopmd.cpp)

IN constants.h
(+) cosmetics

IN compile.sh
(m) modify compilation order: now library and examples will be built before the daemon (as the daemon, in afuture,
      will depend on the library)
(r) renamed locateLibgtop() to findLibgtop()
(r) renamed locateCommoncpp() to findCommoncpp()
(m) findLibgtop() and findCommoncpp() now use std UNIX "find" program to look for dependencies

IN README
(m) modified the note about the use of "locate" as the program now used "find".


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Jul 2 22:09:12 2003 UTC (20 years, 9 months ago) by rejected
Branch: MAIN
Changes since 1.7: +8 -1 lines
Diff to previous 1.7
IN all .h/.cpp of the daemon
(+) added some notes about license,...

IN all .h
(+) added #ifndef checks

IN gomd.cpp
(+) added new option "get xcpuinfo/xci/41" to get /proc/cpuinfo formatted contents
(m) modified the opption "get xcpuload/xcl/40" to get cpu load
(m) moved system-infos related options to a new help page, #5 (available only if gomd was built with libgtop support)

IN main.cpp
(+) added support for the two new options (get xcpuinfo and get xcpuload)

IN supported_cmds
(+) added two new option entries (command is the usual "get"; each option has a "x" prefix that stands for eXtra)
     - Get cpu                             "xcpuload"  	"xcl"	"40"	N.A.
     - Get /proc/cpuinfo contents  "xcpuinfo"	"xci"	"41"	N.A.


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Tue Jun 24 21:29:10 2003 UTC (20 years, 10 months ago) by rejected
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6
IN main.cpp
(+) added two new command line options: --version/-v (prints program version then exits) and --help/-h. (prints program help then exits).
(f) now uses new GOMD_VERSION definition instead of "simple" VERSION (the #define is included in constants.h file).

IN constants.h
(+) ranamed VERSION definition to GOMD_VERSION (for coherency with other definitions)


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Jun 1 21:32:33 2003 UTC (20 years, 10 months ago) by rejected
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5
(N)changed the format for gomd answers (I need comments about this)

Example:
REQUEST: get load 1-3

OLD ANSWER FORMAT
Node load (1) : -101
Node load (2) : 1
Node load (3) : <ERROR>

NEW ANSWER FORMAT
(1:-101) (2:1) (3:<ERROR>)

This change has a lot of pros:
- new format is compact
- client will wait for just a single line (while with the old format, a clients doesn't know how many lines it has to wait for)
- when the single line arrives, client gets all the value
- format is standard -> (TYPE_OR_ID:VALUE) so can be parsed more easily
  Where:
  * TYPE is the type of information or a node ID
  * VALUE is the value related to the type of information or a specific node

IN main.cpp
(+) added m_answerBuffer string to support the new format: this buffer will contain the answer to the client's request.
If the client's request contains more inner-requests => each answer to a inner-request will be appended to this variable => the variable will be sent to the client (a single line for all inner-requests)
(c) old format code was commented
(f) now we use std ANSI-C++ erase() function to cleanup string variables
(f) a lot of cleanups

IN gomd.cpp/gomd.h
(+) added socketTimeout in gomd constructor (as second param)
(T) TODO: fix socket timeout handling (uses new constnt CLIENT_TIMEOUT)
(f) now we use std ANSI-C++ erase() function to cleanup string variables
(f) a lot of cleanups

IN constants.h
(+) added CLIENT_TIMEOUT constant

IN utils.h/utils.cpp
(+) added trim() function to trim std ANSI-C++ strings


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun May 25 07:21:22 2003 UTC (20 years, 11 months ago) by rejected
Branch: MAIN
Changes since 1.4: +1 -4 lines
Diff to previous 1.4
IN gomd.cpp/gomd.h
(N) from now uses C++ strings instead of "pure" C ones (i.e. char*, char[],...): C++ strings are more secure and make the program more readable
(N) from now uses C++ references instead of pointers (where possible)
(+) added om_repeatLastRequest function to handle new option lastrequest|lr|30
(+) added om_repeatUpRequest, om_repeatDownRequest functions to scroll up and down the history but they are buggy so they are not usable yet.
(+) added om_fixShortFormatRequests function to handle short-format for some commands (help & quit)
     examples:
     quit == get quit
     help 1 == get help 1
(+) help option without helpPage number now shows first page, so:
     help == get help == help 1 == get help 1
(f) now om_parseRequest() function uses commoncpp's StringTokenizer to parse the request ("old" ANSI-C strtok will be used no more).

IN constants.h
(-) removed constants: MAX_CMD_LENGTH, MAX_REQUEST_LENGTH, MAX_PARAM_LENGTH. Now they are unuseful

IN requestHistory.cpp/requestHistory.h
(+) added getLast function to handle new option lastrequest|lr|30
(+) added getUp, getDown functions to scroll up and down the history but they are buggy so they are not usable yet.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Fri May 23 01:07:26 2003 UTC (20 years, 11 months ago) by rejected
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3
(f) renamed COMMAND_HISTORY_MAX_REQUEST to more readable/intelligible COMMAND_HISTORY_SIZE


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Fri May 23 00:40:24 2003 UTC (20 years, 11 months ago) by rejected
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2
(+) added COMMAND_HISTORY_MAX_REQUEST to specify the size for requestHistory objects (used in gomd class)


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Wed May 21 22:33:56 2003 UTC (20 years, 11 months ago) by rejected
Branch: MAIN
Changes since 1.1: +15 -7 lines
Diff to previous 1.1
(N) cleanup


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Wed May 21 22:10:49 2003 UTC (20 years, 11 months ago) by mcaserta
Branch: MAIN
first import


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26