01: package org.jacorb.poa;
02:
03: /*
04: * JacORB - a free Java ORB
05: *
06: * Copyright (C) 1997-2004 Gerald Brose.
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Library General Public License for more details.
17: *
18: * You should have received a copy of the GNU Library General Public
19: * License along with this library; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21: */
22:
23: import org.jacorb.poa.util.*;
24: import org.jacorb.orb.dsi.ServerRequest;
25:
26: import org.omg.PortableServer.Servant;
27:
28: /**
29: * The adapter which can receives poa events. It implements all poa related
30: * listener interfaces. The methods in this class are empty.
31: * This class is provided as a convenience for easily creating poa listeners
32: * by extending this class and overriding only the methods of interest.
33: *
34: * @author Reimo Tiedemann, FU Berlin
35: * @version 1.01, 06/20/99, RT
36: */
37: abstract public class POAAdapter implements AOMListener, POAListener,
38: RequestQueueListener, RPPoolManagerListener {
39: public void objectActivated(byte[] oid, Servant servant,
40: int aom_size) {
41: }
42:
43: public void objectDeactivated(byte[] oid, Servant servant,
44: int aom_size) {
45: }
46:
47: public void poaCreated(POA poa) {
48: }
49:
50: public void poaStateChanged(POA poa, int new_state) {
51: }
52:
53: public void processorAddedToPool(RequestProcessor processor,
54: int pool_count, int pool_size) {
55: }
56:
57: public void processorRemovedFromPool(RequestProcessor processor,
58: int pool_count, int pool_size) {
59: }
60:
61: public void referenceCreated(org.omg.CORBA.Object object) {
62: /* reference creation will not propagated in this version */
63: }
64:
65: public void requestAddedToQueue(ServerRequest request,
66: int queue_size) {
67: }
68:
69: public void requestRemovedFromQueue(ServerRequest request,
70: int queue_size) {
71: }
72:
73: public void servantEtherialized(byte[] oid, Servant servant) {
74: }
75:
76: public void servantIncarnated(byte[] oid, Servant servant) {
77: }
78: }
|