ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilterServant.java
Revision: 1.12
Committed: Tue Jan 2 03:20:05 2001 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.11: +10 -14 lines
Log Message:
Added the Queue features, and removed references to a RootFilterThread.

File Contents

# Content
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.clientinterface.*;
8 import uk.ac.ukc.iscream.util.*;
9
10 /**
11 * A root filter servant has an array
12 * of client interfaces where data should be
13 * piped.
14 *
15 * @author $Author: ajm4 $
16 * @version $Id: RootFilterServant.java,v 1.11 2000/12/12 19:54:55 ajm4 Exp $
17 */
18 class RootFilterServant extends FilterPOA {
19
20 //---FINAL ATTRIBUTES---
21
22 /**
23 * The current CVS revision of this class
24 */
25 public final String REVISION = "$Revision: 1.11 $";
26
27 //---STATIC METHODS---
28
29 //---CONSTRUCTORS---
30
31 /**
32 * Creates a new RootFilter.
33 *
34 * @param queue a Queue to use
35 */
36 public RootFilterServant(Queue queue) {
37 _queue = queue;
38 _logger.write(toString(), Logger.SYSINIT, "created");
39 }
40
41 //---PUBLIC METHODS---
42
43 /**
44 * Method to receive a string over corba.
45 *
46 * @param xml the String of XML to send on
47 */
48 public void receiveXML(String xml) {
49 _queue.add(xml);
50 }
51
52 /**
53 * Overrides the {@link java.lang.Object#toString() Object.toString()}
54 * method to provide clean logging (every class should have this).
55 *
56 * This uses the uk.ac.ukc.iscream.util.NameFormat class
57 * to format the toString()
58 *
59 * @return the name of this class and its CVS revision
60 */
61 public String toString() {
62 return FormatName.getName(
63 _name,
64 getClass().getName(),
65 REVISION);
66 }
67
68 //---PRIVATE METHODS---
69
70 //---ACCESSOR/MUTATOR METHODS---
71
72 public String getUDPPort() {
73 return null;
74 }
75
76 public String getTCPPort() {
77 return null;
78 }
79
80 public String getHostName() {
81 return null;
82 }
83
84 //---ATTRIBUTES---
85
86 /**
87 * This is the friendly identifier of the
88 * component this class is running in.
89 * eg, a Filter may be called "filter1",
90 * If this class does not have an owning
91 * component, a name from the configuration
92 * can be placed here. This name could also
93 * be changed to null for utility classes.
94 */
95 private String _name = RootFilter.NAME;
96
97 /**
98 * This holds a reference to the
99 * system logger that is being used.
100 */
101 private Logger _logger = ReferenceManager.getInstance().getLogger();
102
103 /**
104 * A reference to the Queue being used.
105 */
106 private Queue _queue;
107
108 //---STATIC ATTRIBUTES---
109
110 }