ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java (file contents):
Revision 1.4 by ajm, Wed Dec 13 12:57:38 2000 UTC vs.
Revision 1.10 by tdb, Mon Jan 22 02:57:38 2001 UTC

# Line 2 | Line 2
2   package uk.ac.ukc.iscream.clientinterface;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
5 > import uk.ac.ukc.iscream.componentmanager.*;
6   import uk.ac.ukc.iscream.core.*;
7 + import uk.ac.ukc.iscream.util.*;
8  
9   /**
10   * This class starts the real time clients
# Line 15 | Line 16 | import uk.ac.ukc.iscream.core.*;
16   * @author  $Author$
17   * @version $Id$
18   */
19 < public class ClientInterfaceMain implements uk.ac.ukc.iscream.util.Component {
19 > public class ClientInterfaceMain implements Component {
20  
21   //---FINAL ATTRIBUTES---
22  
# Line 63 | Line 64 | public class ClientInterfaceMain implements uk.ac.ukc.
64          NAME = ourName;
65          
66          _logger.write(toString(), Logger.SYSINIT, "configured");
67 <                
67 >        
68 >        // Setup a Queue
69 >        Queue queue = new Queue();
70 >        
71          // ClientInterfaceServant start (for inbound data)
72          _logger.write(toString(), Logger.DEBUG, "starting servant for inbound data");
73 <        ClientInterfaceServant ciServant = new ClientInterfaceServant();
73 >        ClientInterfaceServant ciServant = new ClientInterfaceServant(queue);
74          _refman.bindToOrb(ciServant, "iscream.ClientInterface." + ClientInterfaceMain.NAME);
75          
76 <        ClientListener clientListener = new ClientListener(listenPort, ciServant);
77 <        clientListener.start();
76 >        TCPClientListener tcpClientListener = new TCPClientListener(listenPort, queue);
77 >        tcpClientListener.start();
78          
79          _logger.write(toString(), Logger.SYSINIT, "started");
80      }
# Line 86 | Line 90 | public class ClientInterfaceMain implements uk.ac.ukc.
90       */
91      public String toString() {
92          return FormatName.getName(
93 <            _name,
93 >            NAME,
94              getClass().getName(),
95              REVISION);
96      }
# Line 96 | Line 100 | public class ClientInterfaceMain implements uk.ac.ukc.
100   //---ACCESSOR/MUTATOR METHODS---
101  
102   //---ATTRIBUTES---
99
100    /**
101     * This is the friendly identifier of the
102     * component this class is running in.
103     * eg, a Filter may be called "filter1",
104     * If this class does not have an owning
105     * component,  a name from the configuration
106     * can be placed here.  This name could also
107     * be changed to null for utility classes.
108     */
109    private String _name = ClientInterfaceMain.NAME;
103  
104      /**
105       * This holds a reference to the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines