1 |
tdb |
1.1 |
//---PACKAGE DECLARATION--- |
2 |
tdb |
1.7 |
package uk.ac.ukc.iscream.rootfilter; |
3 |
tdb |
1.1 |
|
4 |
|
|
//---IMPORTS--- |
5 |
|
|
import uk.ac.ukc.iscream.core.*; |
6 |
|
|
import uk.ac.ukc.iscream.filter.*; |
7 |
tdb |
1.8 |
import uk.ac.ukc.iscream.util.*; |
8 |
tdb |
1.1 |
|
9 |
|
|
/** |
10 |
|
|
* A test RootFilterServant, just prints it out. |
11 |
|
|
* |
12 |
tdb |
1.2 |
* @author $Author: tdb1 $ |
13 |
tdb |
1.9 |
* @version $Id: RootFilterServant.java,v 1.8 2000/11/30 02:42:56 tdb1 Exp $ |
14 |
tdb |
1.1 |
*/ |
15 |
|
|
class RootFilterServant extends FilterPOA { |
16 |
|
|
|
17 |
|
|
//---FINAL ATTRIBUTES--- |
18 |
|
|
|
19 |
|
|
/** |
20 |
|
|
* The current CVS revision of this class |
21 |
|
|
*/ |
22 |
tdb |
1.9 |
public final String REVISION = "$Revision: 1.8 $"; |
23 |
tdb |
1.1 |
|
24 |
|
|
//---STATIC METHODS--- |
25 |
|
|
|
26 |
|
|
//---CONSTRUCTORS--- |
27 |
|
|
|
28 |
|
|
/** |
29 |
|
|
* Creates a new RootFilter. |
30 |
|
|
* |
31 |
|
|
* @param logger a Logger to use |
32 |
|
|
*/ |
33 |
tdb |
1.8 |
public RootFilterServant() { |
34 |
|
|
_logger.write(this.toString(), Logger.DEBUG, "created"); |
35 |
tdb |
1.1 |
} |
36 |
|
|
|
37 |
|
|
//---PUBLIC METHODS--- |
38 |
|
|
|
39 |
|
|
/** |
40 |
|
|
* Method to receive a string over corba. |
41 |
|
|
* |
42 |
|
|
* @param xml the String of XML to print out |
43 |
|
|
*/ |
44 |
|
|
public void receiveXML(String xml) { |
45 |
tdb |
1.8 |
RootFilterThread t = new RootFilterThread(xml); |
46 |
tdb |
1.4 |
t.start(); |
47 |
tdb |
1.3 |
} |
48 |
|
|
|
49 |
|
|
public String getUDPPort() { |
50 |
|
|
return null; |
51 |
|
|
} |
52 |
|
|
|
53 |
|
|
public String getTCPPort() { |
54 |
|
|
return null; |
55 |
|
|
} |
56 |
|
|
|
57 |
|
|
public String getHostName() { |
58 |
|
|
return null; |
59 |
tdb |
1.1 |
} |
60 |
|
|
|
61 |
|
|
/** |
62 |
|
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
63 |
|
|
* method to provide clean logging (every class should have this). |
64 |
|
|
* |
65 |
|
|
* @return the name of this class and its CVS revision |
66 |
|
|
*/ |
67 |
|
|
public String toString() { |
68 |
|
|
return this.getClass().getName() + "{" + _name + "}(" + REVISION.substring(11, REVISION.length() - 2) + ")"; |
69 |
|
|
} |
70 |
|
|
|
71 |
|
|
//---PRIVATE METHODS--- |
72 |
|
|
|
73 |
|
|
//---ACCESSOR/MUTATOR METHODS--- |
74 |
|
|
|
75 |
|
|
//---ATTRIBUTES--- |
76 |
|
|
|
77 |
|
|
/** |
78 |
|
|
* Reference to a Logger |
79 |
|
|
*/ |
80 |
tdb |
1.8 |
private Logger _logger = ReferenceManager.getInstance().getLogger(); |
81 |
tdb |
1.1 |
|
82 |
|
|
/** |
83 |
|
|
* Our name |
84 |
|
|
*/ |
85 |
tdb |
1.8 |
private String _name = ReferenceManager.getInstance().getName(); |
86 |
tdb |
1.1 |
|
87 |
|
|
//---STATIC ATTRIBUTES--- |
88 |
|
|
|
89 |
|
|
} |