Global Positioning System Reference
In-Depth Information
delegate individual responsibilities to sample information and propagate
and store warnings; if a connection is lost the SO can try to call back the
related RO, etc.
Before identify(client) returns a ServerInfo() response the server
creates the \client record." Instead of a normal constructor,
new ServerObject( client, ... )
the method
ServerObject createServerObject( RemoteObject client )
has the sole purpose of creating a server object. If the construction of
a server object were hard-coded inside the server, the application would
be restricted to the pre-implemented server object; the protected method
can be overridden to create any object extending the server object! This
will become clearer when the server is extended by an application (see
page 173).
Server profile. The two phases identify and enter of the login process are
more than the usual ID and password combination on most websites. This
is due to the fact that a profile stored on a website is persistent and static,
while a RO is alive. Each ROServer should be able to keep dynamic profiles
of its RO clients.
From the developer's perspective, inheritance is another term for
reusability in similar environments. One intention of the ServerObject is
to store the profile, history, and behavior of the RO client. By inheriting
ServerObject extends RealObject
the SO automatically gains the ability to record, store, and play back a
live trace. The live trace can be time-stamped with the server time and
can be played back in server space in a synchronized manner with the
other RO client records. Also, the built-in ability to be published as a new
RealObject , reachable as RemoteObject from other participating objects and
servers, is part of the server design process. This also makes a lot of sense
from the software maintenance aspect
The method
connectedClients.put(client, candidate);
maps the unique client RO to its dedicated SO.
The next step is the actual identification to become a candidate of the
server environment to enter the scenario.
 
Search WWH ::




Custom Search