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 |
|
|
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 |
|
/** |
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 |
|
|