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