comp.lang.ada
 help / color / mirror / Atom feed
* Shutting down a Dist. Systems server...
@ 1997-07-12  0:00 Dale Stanbrough
  1997-07-14  0:00 ` Laurent Pautet
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Stanbrough @ 1997-07-12  0:00 UTC (permalink / raw)



I am currently building a small distributed system which has clients
dynamically querying a server. Using glade i have specified a main
procedure for the server. When this procedure terminates, and all the
client partitions have terminated, the server stops.

Is there any way to shut the server down, so that it doesn't have
to wait for clients to terminate? Presumably the clients would get a
System.RPC.Communication_Error exception in any further communication
with the server.

Dale




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Shutting down a Dist. Systems server...
  1997-07-12  0:00 Shutting down a Dist. Systems server Dale Stanbrough
@ 1997-07-14  0:00 ` Laurent Pautet
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pautet @ 1997-07-14  0:00 UTC (permalink / raw)



>>>>> "Dale" == Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU> writes:

    Dale> I am currently building a small distributed system which has
    Dale> clients dynamically querying a server. Using glade i have
    Dale> specified a main procedure for the server. When this
    Dale> procedure terminates, and all the client partitions have
    Dale> terminated, the server stops.

    Dale> Is there any way to shut the server down, so that it doesn't
    Dale> have to wait for clients to terminate? Presumably the
    Dale> clients would get a System.RPC.Communication_Error exception
    Dale> in any further communication with the server.

    Dale> Dale

If you look at the client / server Bank example (in GLADE-1.02), the
way to configure the termiantion is described. Basically, you want the
client to terminate when all its tasks can terminate and you want the
server to terminate when all the tasks of all the partitions can
terminate. For the cleint, use :

   for Client'Termination use Local_Termination;

in the configuration file.

For the server, there is no problem as the default termination is the
distributed termination detection.

The problem with the solution described in your second paragraph is
that some clients can be killed by the server in the middle of their
sessions if the server stops without deconnecting the clients. Anyway,
if you want to do that, add in your server a task which only job is to
wait for the shutdown signal and use the termination mode of the
clients (terminates when local termination is detected.)

-- 
-- Laurent




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-07-14  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-12  0:00 Shutting down a Dist. Systems server Dale Stanbrough
1997-07-14  0:00 ` Laurent Pautet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox