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 |
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 |
|
|
70 |
|
ClientInterfaceServant ciServant = new ClientInterfaceServant(); |
71 |
|
_refman.bindToOrb(ciServant, "iscream.ClientInterface." + ClientInterfaceMain.NAME); |
72 |
|
|
73 |
< |
ClientListener clientListener = new ClientListener(listenPort, ciServant); |
74 |
< |
clientListener.start(); |
73 |
> |
TCPClientListener tcpClientListener = new TCPClientListener(listenPort, ciServant); |
74 |
> |
tcpClientListener.start(); |
75 |
|
|
76 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
77 |
|
} |
87 |
|
*/ |
88 |
|
public String toString() { |
89 |
|
return FormatName.getName( |
90 |
< |
_name, |
90 |
> |
NAME, |
91 |
|
getClass().getName(), |
92 |
|
REVISION); |
93 |
|
} |
97 |
|
//---ACCESSOR/MUTATOR METHODS--- |
98 |
|
|
99 |
|
//---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; |
100 |
|
|
101 |
|
/** |
102 |
|
* This holds a reference to the |