33 |
|
* Creates a new CorbaClientListenerServant. |
34 |
|
* |
35 |
|
* @param packetSorter a reference to the PacketSorter object being used |
36 |
– |
* @param queueMonitorInterval the interval at which to monitor the Queue |
36 |
|
*/ |
37 |
< |
public CorbaClientListenerServant(PacketSorter packetSorter, int queueMonitorInterval) { |
37 |
> |
public CorbaClientListenerServant(PacketSorter packetSorter) { |
38 |
|
_packetSorter = packetSorter; |
40 |
– |
_queueMonitorInterval = queueMonitorInterval; |
39 |
|
_logger.write(toString(), Logger.SYSINIT, "created"); |
40 |
|
} |
41 |
|
|
45 |
|
* Allows a CORBA client to connect to the server. |
46 |
|
* |
47 |
|
* @param client a reference to the "servant" part of the connecting client. |
48 |
+ |
* @param name a name to identify the client. |
49 |
|
* @return a CorbaControlHandler reference. |
50 |
|
*/ |
51 |
< |
public CorbaControlHandler connect(Client client) { |
52 |
< |
CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client, _queueMonitorInterval); |
51 |
> |
public CorbaControlHandler connect(Client client, String name) { |
52 |
> |
CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client, name); |
53 |
|
org.omg.CORBA.Object objRef; |
54 |
|
try { |
55 |
|
objRef = _refman.getRootPOA().servant_to_reference(cchServant); |
109 |
|
* A reference to the PacketSorter. |
110 |
|
*/ |
111 |
|
private PacketSorter _packetSorter; |
113 |
– |
|
114 |
– |
/** |
115 |
– |
* The interval at which to monitor Queues. |
116 |
– |
*/ |
117 |
– |
private int _queueMonitorInterval; |
112 |
|
|
113 |
|
//---STATIC ATTRIBUTES--- |
114 |
|
|