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.13
Committed: Thu Jan 18 23:17:05 2001 UTC (23 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.12: +4 -3 lines
Log Message:
Changes to reflect move of Component, ComponentStartException, and the
ReferenceManager from util to componentmanager.

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