ComputeClient.mesa
The Compute Client interface. This interface is between the Client (the rest of the Cedar world) and the Client code for the Summoner on the workstation, and thus is not an RPC interface. It is a variant of the ComputeServerClient.mesa interface, but is faster since it avoids one level of procedure call.
Last Edited by: Bob Hagmann, May 15, 1985 8:39:41 am PDT
Copyright © 1985 by Xerox Corporation. All rights reserved.
DIRECTORY
ComputeServerClient,
IO,
Rope,
RPC;
ComputeClient: CEDAR DEFINITIONS =
BEGIN
ROPE: TYPE = Rope.ROPE;
StartService: ComputeServerClient.StartServiceProc ;
Identical to ComputeServerClient.StartService, but for use only when the client knows that the Compute Server "Server" code is running on the workstation. An example of this is a request that occurs inside a server process: the only way to get the server process is to have the Compute Server "Server" code is running.
Attempt to start the command named "service". If "version" is specified, only this version of the software will be used. "cmdLine" is a ROPE that will be given to the command. If "in" and/or "out" are specified and non-NIL, a pup byte stream is created and given to the command on the server. This stream is buffered and bytes are delivered or accepted from "in" and/or "out" as appropriate. "queueService" requests the Controller to do queueing and find a server that will handle the request. The request will be queued by the Controller for "timeToWait" seconds or until it is accepted by a server. If FALSE, the Controller selects a server, but the Client's machine is responsible for contacting the server and asking for the request to be handled. Any server may refuse such a request. "retries" is the number of times to retry to overcome (apparently) transient errors. If successful, "serverInstance" is the Pup Address expressed as a ROPE of the server that performed the command.
BestServerStats: ComputeServerClient.BestServerStatsProc ;
Identical to ComputeServerClient.StartService, but for use only when the client knows that the Compute Server "Server" code is running on the workstation.
Ask the controller which machine has the best figure of merit (FOM). FOM is in the range 0.0 to 1.0 with 0.0 being idle. FOM is left otherwise undefined.
END.