::nsmcp::ServerRuntime ::nsmcp::ServerRuntime execute mode validate ::nsmcp::StatsTool ::nsmcp::StatsTool available encode unavailable ::nsmcp::ServerRuntime->::nsmcp::StatsTool ::nsmcp::ServerTopology ::nsmcp::ServerTopology execute ::nsmcp::ServerTopology->::nsmcp::StatsTool ::nsmcp::ServerHistory ::nsmcp::ServerHistory execute options validate ::nsmcp::ServerHistory->::nsmcp::StatsTool ::nsmcp::Tool ::nsmcp::Tool describe execute name permission validate ::nsmcp::StatsTool->::nsmcp::Tool

Class ::nsmcp::ServerTopology

::nsmcp::ServerTopology[i] create ... \
           [ -command (default "::ns_stats") ] \
           [ -description (default "Describe NaviServer topology via ns_stats. Virtual-server pools and bindings are restricted to the authenticated server. Process information and network drivers are process-wide. Does not start sampling. Reports available=false on installations without ns_stats.") ] \
           [ -inputSchema (default "{} object {type string object properties object {} additionalProperties boolean false}") ] \
           [ -name (default "server_topology") ] \
           [ -outputSchema (default "") ] \
           [ -permission (default "diagnostics.runtime.read") ]

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

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::StatsTool[i]
::nx::Class create ::nsmcp::ServerTopology \
     -superclass ::nsmcp::StatsTool

Methods (to be applied on instances)

  • execute (scripted, public)

     <instance of nsmcp::ServerTopology[i]> execute context arguments
    Parameters:
    context (required)
    arguments (required)

    Testcases:
    No testcase defined.
    if {![:available]} {
        return [:unavailable $context]
    }
    set data [${:command} describe -server [$context server]]
    return [list {} object [list server string [$context server] available boolean true  topology object [:encode topology $data]]]