acs::Cluster method send (public)
<instance of acs::Cluster> send [ -delivery delivery ] location \ args [ args... ]
Defined in packages/acs-tcl/tcl/cluster-procs.tcl
Send a command by different means to the cluster node for intra-server talk. Valid delivery methods are - ns_http (for HTTP and HTTPS) - connchan (for HTTP and HTTPS) - udp (plain UDP only)
- Switches:
- -delivery (optional, defaults to
"ns_http"
)- Parameters:
- location (required)
- args (required)
- Testcases:
- No testcase defined.
Source code: :log "outgoing request to $location // $args" set t0 [clock clicks -microseconds] switch $delivery { #connchan - #udp - ns_http {set result [:${delivery}_send $location {*}$args]} default {error "unknown delivery method '$delivery'"} } ns_log notice "-cluster: $location $args sent" "total [expr {([clock clicks -microseconds] - $t0)/1000.0}]ms" return $resultXQL Not present: Generic, PostgreSQL, Oracle