W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1998

Extending Jigsaw and Cloning!

From: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
Date: Mon, 9 Feb 1998 08:59:19 +0100
Message-ID: <036601bd3530$a04e72c0$1cea1b81@kopernikus.iaik.tu-graz.ac.at>
To: "Jigsaw Mailinglist" <www-jigsaw@w3.org>

I am extending the class httpd to add the functionality I need and then I
want to use some clones of the new httpd class. But there are a few

1) the method initializeProperties() is private which doesn't allow the
subclass to use its own defined properties in a configuration file. This
method shall be protected.

2) Clones of httpd share some important resources: they only have one
indexer, one realm catalog and one logger. If the user is going to shutdown
one clone the method cleanup shuts down the indexer, the realm catalog and
the logger which is not really good for the remaining main-server.

I suggest the following solution to this problem:

protected static int clones = 0;

public ServerHandler clone(...) {

protected void cleanup(boolean restart) {
    if (logger != null && clones == 0)

    if (restart)
        clones--;     // this clone never comes back

public void initialize(...) {

    if (clones == 0)        // otherwise a logger already extists


The problems are the same in Jigsaw1beta2 and Jigsaw2alpha1.

Wolfgang Platzer

Dipl.-Ing. Wolfgang Platzer
Technische Universitaet Graz - University of Technology Graz
Institut für Angewandte Informationsverarbeitung
und Kommunikationstechnologien
Klosterwiesgasse 32/I, A-8010 Graz,
Tel: ++43 316 873-5527,Fax: ++43 316 873-5520
URL <http://www.iaik.tu-graz.ac.at/index.html>

Received on Monday, 9 February 1998 03:00:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:23 UTC