nsmcp::ServerRuntime method mode (protected)

 <instance of nsmcp::ServerRuntime[i]> mode arguments

Defined in /usr/local/ns/tcl/nsmcp/lib/stats-tools.tcl

Parameters:
arguments (required)

Testcases:
No testcase defined.
Source code:
if {[lindex $arguments 1] ne "object"} {
    error "Expected arguments object"
}
set mode snapshot
foreach {key type value} [lindex $arguments 2] {
    if {$key ne "mode" || $type ne "string" || $value ni {snapshot sample}} {
        error "Supply only mode snapshot or sample"
    }
    set mode $value
}
return $mode
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: