apm::read_files (private)

 apm::read_files path file_list

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Read the contents from a list of files at a certain path. Return the data to the caller as a big string.

Parameters:
path (required)
file_list (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm::metrics_internal apm::metrics_internal (private) apm::read_files apm::read_files apm::metrics_internal->apm::read_files

Testcases:
No testcase defined.
Source code:
    set data ""
    foreach file $file_list {
        if {![catch {set fp [open ${path}/${file} r]} err]} {
            append data [read $fp]
            close $fp
        }
    }
    return $data
Generic XQL file:
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: