acs::Cluster method send (public)

 <instance of acs::Cluster[i]> 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 $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: