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.12 by tdb, Tue Jan 2 03:20:05 2001 UTC

# Line 31 | Line 31 | class RootFilterServant extends FilterPOA {
31      /**
32       * Creates a new RootFilter.
33       *
34 <     * @param logger a Logger to use
34 >     * @param queue a Queue to use
35       */
36 <    public RootFilterServant(ClientInterface[] clientInterfaces) {
37 <        _clientInterfaces = clientInterfaces;
36 >    public RootFilterServant(Queue queue) {
37 >        _queue = queue;
38          _logger.write(toString(), Logger.SYSINIT, "created");
39      }
40  
# Line 43 | Line 43 | class RootFilterServant extends FilterPOA {
43      /**
44       * Method to receive a string over corba.
45       *
46 <     * @param xml the String of XML to print out
46 >     * @param xml the String of XML to send on
47       */
48      public void receiveXML(String xml) {
49 <        for (int x = 0; x < _clientInterfaces.length; x++) {
50 <            RootFilterThread t = new RootFilterThread(_clientInterfaces[x], xml);
51 <            t.start();
52 <        }
49 >        _queue.add(xml);
50      }
51      
52      /**
# Line 104 | Line 101 | class RootFilterServant extends FilterPOA {
101      private Logger _logger = ReferenceManager.getInstance().getLogger();
102      
103      /**
104 <     * An array of client interface that incoming
105 <     * data should be passed to
106 <     */  
110 <    private ClientInterface[] _clientInterfaces;
104 >     * A reference to the Queue being used.
105 >     */
106 >    private Queue _queue;
107      
108   //---STATIC ATTRIBUTES---
109  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines