1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
|
// **********************************************************************
//
// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
package Ice;
public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapter
{
public String
getName()
{
//
// No mutex lock necessary, _name is immutable.
//
return _name;
}
public synchronized Communicator
getCommunicator()
{
checkForDeactivation();
return _communicator;
}
public void
activate()
{
Ice.LocatorRegistryPrx locatorRegistry = null;
boolean registerProcess = false;
String serverId = "";
Communicator communicator = null;
boolean printAdapterReady = false;
synchronized(this)
{
checkForDeactivation();
if(!_printAdapterReadyDone)
{
if(_locatorInfo != null && _id.length() > 0)
{
locatorRegistry = _locatorInfo.getLocatorRegistry();
}
registerProcess = _instance.properties().getPropertyAsInt(_name + ".RegisterProcess") > 0;
serverId = _instance.properties().getProperty("Ice.ServerId");
printAdapterReady = _instance.properties().getPropertyAsInt("Ice.PrintAdapterReady") > 0;
if(registerProcess && locatorRegistry == null)
{
_instance.logger().warning("object adapter `" + _name + "' cannot register the process " +
"without a locator registry");
registerProcess = false;
}
else if(registerProcess && serverId.length() == 0)
{
_instance.logger().warning("object adapter `" + _name + "' cannot register the process " +
"without a value for Ice.ServerId");
registerProcess = false;
}
communicator = _communicator;
_printAdapterReadyDone = true;
}
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
factory.activate();
}
}
//
// We must call on the locator registry outside the thread
// synchronization, to avoid deadlocks.
//
if(locatorRegistry != null)
{
//
// TODO: This might throw if we can't connect to the
// locator. Shall we raise a special exception for the
// activate operation instead of a non obvious network
// exception?
//
try
{
Identity ident = new Identity();
ident.category = "";
ident.name = "dummy";
locatorRegistry.setAdapterDirectProxy(_id, createDirectProxy(ident));
}
catch(ObjectAdapterDeactivatedException ex)
{
// IGNORE: The object adapter is already inactive.
}
catch(AdapterNotFoundException ex)
{
NotRegisteredException ex1 = new NotRegisteredException();
ex1.id = _id;
ex1.kindOfObject = "object adapter";
throw ex1;
}
catch(AdapterAlreadyActiveException ex)
{
ObjectAdapterIdInUseException ex1 = new ObjectAdapterIdInUseException();
ex1.id = _id;
throw ex1;
}
if(registerProcess)
{
try
{
Process servant = new ProcessI(communicator);
ProcessPrx proxy = ProcessPrxHelper.uncheckedCast(addWithUUID(servant));
locatorRegistry.setServerProcessProxy(serverId, proxy);
}
catch(ObjectAdapterDeactivatedException ex)
{
// IGNORE: The object adapter is already inactive.
}
catch(ServerNotFoundException ex)
{
NotRegisteredException ex1 = new NotRegisteredException();
ex1.id = serverId;
ex1.kindOfObject = "server";
throw ex1;
}
}
}
if(printAdapterReady)
{
System.out.println(_name + " ready");
}
}
public synchronized void
hold()
{
checkForDeactivation();
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
factory.hold();
}
}
public synchronized void
waitForHold()
{
checkForDeactivation();
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
factory.waitUntilHolding();
}
}
public synchronized void
deactivate()
{
//
// Ignore deactivation requests if the object adapter has
// already been deactivated.
//
if(_deactivated)
{
return;
}
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
factory.destroy();
}
_instance.outgoingConnectionFactory().removeAdapter(this);
_deactivated = true;
notifyAll();
}
public void
waitForDeactivate()
{
synchronized(this)
{
//
// First we wait for deactivation of the adapter itself, and
// for the return of all direct method calls using this
// adapter.
//
while(!_deactivated || _directCount > 0)
{
try
{
wait();
}
catch(InterruptedException ex)
{
}
}
//
// If some other thread is currently deactivating, we wait
// until this thread is finished.
//
while(_waitForDeactivate)
{
try
{
wait();
}
catch(InterruptedException ex)
{
}
}
_waitForDeactivate = true;
}
//
// Now we wait for until all incoming connection factories are
// finished.
//
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
factory.waitUntilFinished();
}
//
// Now it's also time to clean up our servants and servant
// locators.
//
if(_servantManager != null)
{
_servantManager.destroy();
}
//
// Destroy the thread pool.
//
if(_threadPool != null)
{
_threadPool.destroy();
_threadPool.joinWithAllThreads();
}
synchronized(this)
{
//
// Signal that waiting is complete.
//
_waitForDeactivate = false;
notifyAll();
//
// We're done, now we can throw away all incoming connection
// factories.
//
_incomingConnectionFactories.clear();
//
// Remove object references (some of them cyclic).
//
_instance = null;
_threadPool = null;
_servantManager = null;
_communicator = null;
}
}
public ObjectPrx
add(Ice.Object object, Identity ident)
{
return addFacet(object, ident, "");
}
public synchronized ObjectPrx
addFacet(Ice.Object object, Identity ident, String facet)
{
checkForDeactivation();
checkIdentity(ident);
//
// Create a copy of the Identity argument, in case the caller
// reuses it.
//
Identity id = new Identity();
id.category = ident.category;
id.name = ident.name;
_servantManager.addServant(object, id, facet);
return newProxy(id, facet);
}
public ObjectPrx
addWithUUID(Ice.Object object)
{
return addFacetWithUUID(object, "");
}
public ObjectPrx
addFacetWithUUID(Ice.Object object, String facet)
{
Identity ident = new Identity();
ident.category = "";
ident.name = Util.generateUUID();
return addFacet(object, ident, facet);
}
public Ice.Object
remove(Identity ident)
{
return removeFacet(ident, "");
}
public synchronized Ice.Object
removeFacet(Identity ident, String facet)
{
checkForDeactivation();
checkIdentity(ident);
return _servantManager.removeServant(ident, facet);
}
public synchronized java.util.Map
removeAllFacets(Identity ident)
{
checkForDeactivation();
checkIdentity(ident);
return _servantManager.removeAllFacets(ident);
}
public Ice.Object
find(Identity ident)
{
return findFacet(ident, "");
}
public synchronized Ice.Object
findFacet(Identity ident, String facet)
{
checkForDeactivation();
checkIdentity(ident);
return _servantManager.findServant(ident, facet);
}
public synchronized java.util.Map
findAllFacets(Identity ident)
{
checkForDeactivation();
checkIdentity(ident);
return _servantManager.findAllFacets(ident);
}
public synchronized Ice.Object
findByProxy(ObjectPrx proxy)
{
checkForDeactivation();
IceInternal.Reference ref = ((ObjectPrxHelperBase)proxy).__reference();
return findFacet(ref.getIdentity(), ref.getFacet());
}
public synchronized void
addServantLocator(ServantLocator locator, String prefix)
{
checkForDeactivation();
_servantManager.addServantLocator(locator, prefix);
}
public synchronized ServantLocator
findServantLocator(String prefix)
{
checkForDeactivation();
return _servantManager.findServantLocator(prefix);
}
public synchronized ObjectPrx
createProxy(Identity ident)
{
checkForDeactivation();
checkIdentity(ident);
return newProxy(ident, "");
}
public synchronized ObjectPrx
createDirectProxy(Identity ident)
{
checkForDeactivation();
checkIdentity(ident);
return newDirectProxy(ident, "");
}
public synchronized ObjectPrx
createReverseProxy(Identity ident)
{
checkForDeactivation();
checkIdentity(ident);
//
// Get all incoming connections for this object adapter.
//
java.util.LinkedList connections = new java.util.LinkedList();
final int sz = _incomingConnectionFactories.size();
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
ConnectionI[] conns = factory.connections();
for(int j = 0; j < conns.length; ++j)
{
connections.add(conns[j]);
}
}
//
// Create a reference and return a reverse proxy for this
// reference.
//
IceInternal.Endpoint[] endpoints = new IceInternal.Endpoint[0];
ConnectionI[] arr = new ConnectionI[connections.size()];
connections.toArray(arr);
IceInternal.Reference ref = _instance.referenceFactory().create(ident, new java.util.HashMap(), "",
IceInternal.Reference.ModeTwoway, arr);
return _instance.proxyFactory().referenceToProxy(ref);
}
public synchronized void
addRouter(RouterPrx router)
{
checkForDeactivation();
IceInternal.RouterInfo routerInfo = _instance.routerManager().get(router);
if(routerInfo != null)
{
//
// Add the router's server proxy endpoints to this object
// adapter.
//
ObjectPrxHelperBase proxy = (ObjectPrxHelperBase)routerInfo.getServerProxy();
IceInternal.Endpoint[] endpoints = proxy.__reference().getEndpoints();
for(int i = 0; i < endpoints.length; ++i)
{
_routerEndpoints.add(endpoints[i]);
}
java.util.Collections.sort(_routerEndpoints); // Must be sorted.
for(int i = 0; i < _routerEndpoints.size() - 1; ++i)
{
java.lang.Object o1 = _routerEndpoints.get(i);
java.lang.Object o2 = _routerEndpoints.get(i + 1);
if(o1.equals(o2))
{
_routerEndpoints.remove(i);
}
}
//
// Associate this object adapter with the router. This way,
// new outgoing connections to the router's client proxy will
// use this object adapter for callbacks.
//
routerInfo.setAdapter(this);
//
// Also modify all existing outgoing connections to the
// router's client proxy to use this object adapter for
// callbacks.
//
_instance.outgoingConnectionFactory().setRouter(routerInfo.getRouter());
}
}
public synchronized void
setLocator(LocatorPrx locator)
{
checkForDeactivation();
_locatorInfo = _instance.locatorManager().get(locator);
}
public synchronized LocatorPrx
getLocator()
{
checkForDeactivation();
LocatorPrx locator = null;
if(_locatorInfo != null)
{
locator = _locatorInfo.getLocator();
}
return locator;
}
public synchronized boolean
isLocal(ObjectPrx proxy)
{
checkForDeactivation();
IceInternal.Reference ref = ((ObjectPrxHelperBase)proxy).__reference();
final IceInternal.Endpoint[] endpoints = ref.getEndpoints();
try
{
IceInternal.IndirectReference ir = (IceInternal.IndirectReference)ref;
if(ir.getAdapterId().length() != 0)
{
//
// Proxy is local if the reference adapter id matches this
// adapter name.
//
return ir.getAdapterId().equals(_id);
}
}
catch(ClassCastException e)
{
}
//
// Proxies which have at least one endpoint in common with the
// endpoints used by this object adapter's incoming connection
// factories are considered local.
//
for(int i = 0; i < endpoints.length; ++i)
{
final int sz = _incomingConnectionFactories.size();
for(int j = 0; j < sz; j++)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(j);
if(factory.equivalent(endpoints[i]))
{
return true;
}
}
}
//
// Proxies which have at least one endpoint in common with the
// router's server proxy endpoints (if any), are also considered
// local.
//
for(int i = 0; i < endpoints.length; ++i)
{
if(java.util.Collections.binarySearch(_routerEndpoints, endpoints[i]) >= 0) // _routerEndpoints is sorted.
{
return true;
}
}
return false;
}
public void
flushBatchRequests()
{
java.util.ArrayList f;
synchronized(this)
{
f = new java.util.ArrayList(_incomingConnectionFactories);
}
java.util.Iterator i = f.iterator();
while(i.hasNext())
{
((IceInternal.IncomingConnectionFactory)i.next()).flushBatchRequests();
}
}
public synchronized void
incDirectCount()
{
checkForDeactivation();
assert(_directCount >= 0);
++_directCount;
}
public synchronized void
decDirectCount()
{
// Not check for deactivation here!
assert(_instance != null); // Must not be called after waitForDeactivate().
assert(_directCount > 0);
if(--_directCount == 0)
{
notifyAll();
}
}
public IceInternal.ThreadPool
getThreadPool()
{
// No mutex lock necessary, _threadPool and _instance are
// immutable after creation until they are removed in
// waitForDeactivate().
// Not check for deactivation here!
assert(_instance != null); // Must not be called after waitForDeactivate().
if(_threadPool != null)
{
return _threadPool;
}
else
{
return _instance.serverThreadPool();
}
}
public IceInternal.ServantManager
getServantManager()
{
// No mutex lock necessary, _threadPool and _instance are
// immutable after creation until they are removed in
// waitForDeactivate().
// Not check for deactivation here!
assert(_instance != null); // Must not be called after waitForDeactivate().
return _servantManager;
}
//
// Only for use by IceInternal.ObjectAdapterFactory
//
public
ObjectAdapterI(IceInternal.Instance instance, Communicator communicator, String name)
{
_deactivated = false;
_instance = instance;
_communicator = communicator;
_servantManager = new IceInternal.ServantManager(instance, name);
_printAdapterReadyDone = false;
_name = name;
_id = instance.properties().getProperty(name + ".AdapterId");
_directCount = 0;
_waitForDeactivate = false;
try
{
//
// Parse the endpoints, but don't store them in the adapter.
// The connection factory might change it, for example, to
// fill in the real port number.
//
String endpts = _instance.properties().getProperty(name + ".Endpoints");
java.util.ArrayList endpoints = parseEndpoints(endpts);
for(int i = 0; i < endpoints.size(); ++i)
{
IceInternal.Endpoint endp = (IceInternal.Endpoint)endpoints.get(i);
_incomingConnectionFactories.add(new IceInternal.IncomingConnectionFactory(instance, endp, this));
}
//
// Parse published endpoints. These are used in proxies
// instead of the connection factory endpoints.
//
endpts = _instance.properties().getProperty(name + ".PublishedEndpoints");
_publishedEndpoints = parseEndpoints(endpts);
String router = _instance.properties().getProperty(name + ".Router");
if(router.length() > 0)
{
addRouter(RouterPrxHelper.uncheckedCast(_instance.proxyFactory().stringToProxy(router)));
}
String locator = _instance.properties().getProperty(name + ".Locator");
if(locator.length() > 0)
{
setLocator(LocatorPrxHelper.uncheckedCast(_instance.proxyFactory().stringToProxy(locator)));
}
else
{
setLocator(_instance.referenceFactory().getDefaultLocator());
}
if(!_instance.threadPerConnection())
{
int size = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.Size");
int sizeMax = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.SizeMax");
if(size > 0 || sizeMax > 0)
{
_threadPool = new IceInternal.ThreadPool(_instance, _name + ".ThreadPool", 0);
}
}
}
catch(LocalException ex)
{
deactivate();
waitForDeactivate();
throw ex;
}
}
protected void
finalize()
throws Throwable
{
if(!_deactivated)
{
_instance.logger().warning("object adapter `" + _name + "' has not been deactivated");
}
else if(_instance != null)
{
_instance.logger().warning("object adapter `" + _name + "' deactivation had not been waited for");
}
else
{
assert(_threadPool == null);
assert(_servantManager == null);
assert(_communicator == null);
assert(_incomingConnectionFactories.isEmpty());
assert(_directCount == 0);
assert(!_waitForDeactivate);
}
super.finalize();
}
private ObjectPrx
newProxy(Identity ident, String facet)
{
if(_id.length() == 0)
{
return newDirectProxy(ident, facet);
}
else
{
//
// Create a reference with the adapter id and return a
// proxy for the reference.
//
IceInternal.Endpoint[] endpoints = new IceInternal.Endpoint[0];
ConnectionI[] connections = new ConnectionI[0];
IceInternal.Reference reference =
_instance.referenceFactory().create(ident, new java.util.HashMap(), facet,
IceInternal.Reference.ModeTwoway, false, _id, null,
_locatorInfo, true);
return _instance.proxyFactory().referenceToProxy(reference);
}
}
private ObjectPrx
newDirectProxy(Identity ident, String facet)
{
IceInternal.Endpoint[] endpoints;
//
// Use the published endpoints, otherwise use the endpoints from all
// incoming connection factories.
//
int sz = _publishedEndpoints.size();
if(sz > 0)
{
endpoints = new IceInternal.Endpoint[sz + _routerEndpoints.size()];
_publishedEndpoints.toArray(endpoints);
}
else
{
sz = _incomingConnectionFactories.size();
endpoints = new IceInternal.Endpoint[sz + _routerEndpoints.size()];
for(int i = 0; i < sz; ++i)
{
IceInternal.IncomingConnectionFactory factory =
(IceInternal.IncomingConnectionFactory)_incomingConnectionFactories.get(i);
endpoints[i] = factory.endpoint();
}
}
//
// Now we also add the endpoints of the router's server proxy, if
// any. This way, object references created by this object adapter
// will also point to the router's server proxy endpoints.
//
for(int i = 0; i < _routerEndpoints.size(); ++i)
{
endpoints[sz + i] = (IceInternal.Endpoint)_routerEndpoints.get(i);
}
//
// Create a reference and return a proxy for this reference.
//
ConnectionI[] connections = new ConnectionI[0];
IceInternal.Reference reference =
_instance.referenceFactory().create(ident, new java.util.HashMap(), facet, IceInternal.Reference.ModeTwoway,
false, endpoints, null, true);
return _instance.proxyFactory().referenceToProxy(reference);
}
private void
checkForDeactivation()
{
if(_deactivated)
{
ObjectAdapterDeactivatedException ex = new ObjectAdapterDeactivatedException();
ex.name = _name;
throw ex;
}
}
private static void
checkIdentity(Identity ident)
{
if(ident.name == null || ident.name.length() == 0)
{
IllegalIdentityException e = new IllegalIdentityException();
try
{
e.id = (Identity)ident.clone();
}
catch(CloneNotSupportedException ex)
{
assert(false);
}
throw e;
}
if(ident.category == null)
{
ident.category = "";
}
}
private java.util.ArrayList
parseEndpoints(String endpts)
{
endpts = endpts.toLowerCase();
int beg;
int end = 0;
final String delim = " \t\n\r";
java.util.ArrayList endpoints = new java.util.ArrayList();
while(end < endpts.length())
{
beg = IceUtil.StringUtil.findFirstNotOf(endpts, delim, end);
if(beg == -1)
{
break;
}
end = endpts.indexOf(':', beg);
if(end == -1)
{
end = endpts.length();
}
if(end == beg)
{
++end;
continue;
}
String s = endpts.substring(beg, end);
IceInternal.Endpoint endp = _instance.endpointFactoryManager().create(s);
endpoints.add(endp);
++end;
}
return endpoints;
}
private static class ProcessI extends _ProcessDisp
{
ProcessI(Communicator communicator)
{
_communicator = communicator;
}
public void
shutdown(Ice.Current current)
{
_communicator.shutdown();
}
public void
writeMessage(String message, int fd, Ice.Current current)
{
switch(fd)
{
case 1:
{
System.out.println(message);
break;
}
case 2:
{
System.err.println(message);
break;
}
}
}
private Communicator _communicator;
}
private boolean _deactivated;
private IceInternal.Instance _instance;
private Communicator _communicator;
private IceInternal.ThreadPool _threadPool;
private IceInternal.ServantManager _servantManager;
private boolean _printAdapterReadyDone;
final private String _name;
final private String _id;
private java.util.ArrayList _incomingConnectionFactories = new java.util.ArrayList();
private java.util.ArrayList _routerEndpoints = new java.util.ArrayList();
private java.util.ArrayList _publishedEndpoints;
private IceInternal.LocatorInfo _locatorInfo;
private int _directCount;
private boolean _waitForDeactivate;
}
|