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 |
|
/** |
57 |
|
public boolean startData() { |
58 |
|
if(_dataHandler == null) { |
59 |
|
// create a new DataHandler |
60 |
< |
CorbaDataHandler dh = new CorbaDataHandler(_client); |
60 |
> |
CorbaDataHandler dh = new CorbaDataHandler(_client, this); |
61 |
|
// register the Queue |
62 |
|
_packetSorter.register(dh.getQueue(), _hostList); |
63 |
|
try { |
126 |
|
stopData(); |
127 |
|
// disconnect from the ORB |
128 |
|
try { |
129 |
< |
org.omg.CORBA.Object objRef = _refman.getRootPOA().servant_to_reference(this); |
130 |
< |
_refman.getORB().disconnect(objRef); |
129 |
> |
byte[] oid = _refman.getRootPOA().servant_to_id(this); |
130 |
> |
_refman.getRootPOA().deactivate_object(oid); |
131 |
|
} catch(Exception e) { |
132 |
|
_logger.write(this.toString(), Logger.ERROR, "disconnect failed: "+e); |
133 |
|
} |
137 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
138 |
|
* method to provide clean logging (every class should have this). |
139 |
|
* |
140 |
< |
* This uses the uk.ac.ukc.iscream.util.NameFormat class |
140 |
> |
* This uses the uk.org.iscream.util.NameFormat class |
141 |
|
* to format the toString() |
142 |
|
* |
143 |
|
* @return the name of this class and its CVS revision |
150 |
|
} |
151 |
|
|
152 |
|
//---PRIVATE METHODS--- |
153 |
+ |
|
154 |
+ |
/** |
155 |
+ |
* Overridden for debugging purposes |
156 |
+ |
* to see when an instance of this class |
157 |
+ |
* is destroyed |
158 |
+ |
*/ |
159 |
+ |
protected void finalize() throws Throwable { |
160 |
+ |
_logger.write(this.toString(), Logger.DEBUG, "finalized by GC"); |
161 |
+ |
} |
162 |
|
|
163 |
|
//---ACCESSOR/MUTATOR METHODS--- |
164 |
|
|