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
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilterServant.java (file contents):
Revision 1.11 by ajm, Tue Dec 12 19:54:55 2000 UTC vs.
Revision 1.15 by tdb, Wed Mar 14 23:25:29 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.rootfilter;
2 > package uk.org.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.*;
5 > import uk.org.iscream.core.*;
6 > import uk.org.iscream.componentmanager.*;
7 > import uk.org.iscream.filter.*;
8 > import uk.org.iscream.clientinterface.*;
9 > import uk.org.iscream.util.*;
10  
11   /**
12   * A root filter servant has an array
# Line 31 | Line 32 | class RootFilterServant extends FilterPOA {
32      /**
33       * Creates a new RootFilter.
34       *
35 <     * @param logger a Logger to use
35 >     * @param queue a Queue to use
36       */
37 <    public RootFilterServant(ClientInterface[] clientInterfaces) {
38 <        _clientInterfaces = clientInterfaces;
37 >    public RootFilterServant(Queue queue) {
38 >        _queue = queue;
39          _logger.write(toString(), Logger.SYSINIT, "created");
40      }
41  
# Line 43 | Line 44 | class RootFilterServant extends FilterPOA {
44      /**
45       * Method to receive a string over corba.
46       *
47 <     * @param xml the String of XML to print out
47 >     * @param xml the String of XML to send on
48       */
49      public void receiveXML(String xml) {
50 <        for (int x = 0; x < _clientInterfaces.length; x++) {
50 <            RootFilterThread t = new RootFilterThread(_clientInterfaces[x], xml);
51 <            t.start();
52 <        }
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
57 >     * This uses the uk.org.iscream.util.NameFormat class
58       * to format the toString()
59       *
60       * @return the name of this class and its CVS revision
# Line 72 | Line 70 | class RootFilterServant extends FilterPOA {
70  
71   //---ACCESSOR/MUTATOR METHODS---
72  
73 +    /**
74 +     * This method is provided because the RootFilter appears
75 +     * as another Filter to the rest of the Filter tree. This
76 +     * method is required by the interface, although it actually
77 +     * returns null.
78 +     *
79 +     * @return null
80 +     */
81      public String getUDPPort() {
82          return null;
83      }
84      
85 +    /**
86 +     * This method is provided because the RootFilter appears
87 +     * as another Filter to the rest of the Filter tree. This
88 +     * method is required by the interface, although it actually
89 +     * returns null.
90 +     *
91 +     * @return null
92 +     */
93      public String getTCPPort() {
94          return null;
95      }
96      
97 +    /**
98 +     * This method is provided because the RootFilter appears
99 +     * as another Filter to the rest of the Filter tree. This
100 +     * method is required by the interface, although it actually
101 +     * returns null.
102 +     *
103 +     * @return null
104 +     */
105      public String getHostName() {
106          return null;
107      }
# Line 104 | Line 126 | class RootFilterServant extends FilterPOA {
126      private Logger _logger = ReferenceManager.getInstance().getLogger();
127      
128      /**
129 <     * An array of client interface that incoming
130 <     * data should be passed to
131 <     */  
110 <    private ClientInterface[] _clientInterfaces;
129 >     * A reference to the Queue being used.
130 >     */
131 >    private Queue _queue;
132      
133   //---STATIC ATTRIBUTES---
134  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines