ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/CorbaControlHandlerServant.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/CorbaControlHandlerServant.java (file contents):
Revision 1.9 by tdb, Tue Mar 13 20:55:59 2001 UTC vs.
Revision 1.13 by tdb, Sat Mar 17 03:57:17 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.clientinterface;
2 > package uk.org.iscream.clientinterface;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
6 < import uk.ac.ukc.iscream.componentmanager.*;
7 < import uk.ac.ukc.iscream.core.*;
8 < import uk.ac.ukc.iscream.client.*;
5 > import uk.org.iscream.util.*;
6 > import uk.org.iscream.componentmanager.*;
7 > import uk.org.iscream.core.*;
8 > import uk.org.iscream.client.*;
9  
10  
11   /**
12   * Acts as a Control Handler to a CORBA based client.
13   *
14 * !!! FUNDAMENTAL DESIGN PROBLEM !!!
15 * !!! Need a way to "shutdown" this class !!!
16 *
14   * @author  $Author$
15   * @version $Id$
16   */
# Line 57 | Line 54 | class CorbaControlHandlerServant extends CorbaControlH
54      public boolean startData() {
55          if(_dataHandler == null) {
56              // create a new DataHandler
57 <            CorbaDataHandler dh = new CorbaDataHandler(_client);
57 >            CorbaDataHandler dh = new CorbaDataHandler(_client, this);
58              // register the Queue
59              _packetSorter.register(dh.getQueue(), _hostList);
60              try {
# Line 137 | Line 134 | class CorbaControlHandlerServant extends CorbaControlH
134       * Overrides the {@link java.lang.Object#toString() Object.toString()}
135       * method to provide clean logging (every class should have this).
136       *
137 <     * This uses the uk.ac.ukc.iscream.util.NameFormat class
137 >     * This uses the uk.org.iscream.util.NameFormat class
138       * to format the toString()
139       *
140       * @return the name of this class and its CVS revision
# Line 150 | Line 147 | class CorbaControlHandlerServant extends CorbaControlH
147      }
148  
149   //---PRIVATE METHODS---
150 +
151 +    /**
152 +     * Overridden for debugging purposes
153 +     * to see when an instance of this class
154 +     * is destroyed
155 +     */
156 +    protected void finalize() throws Throwable {
157 +        _logger.write(this.toString(), Logger.DEBUG, "finalized by GC");
158 +    }
159  
160   //---ACCESSOR/MUTATOR METHODS---
161  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines