corba/src/share/classes/com/sun/corba/se/impl/transport/CorbaTransportManagerImpl.java
author katleman
Wed, 25 May 2011 13:31:02 -0700
changeset 9737 6fcd25d0c401
parent 7579 cf90ea1653fb
permissions -rw-r--r--
7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles Reviewed-by: ohair, trims
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
9737
6fcd25d0c401 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles
katleman
parents: 7579
diff changeset
     2
 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
package com.sun.corba.se.impl.transport;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
import java.net.ServerSocket;
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import java.util.ArrayList;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
import java.util.Collection;
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
import java.util.HashMap;
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
import java.util.Iterator;
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
import java.util.List;
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
import java.util.Map;
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
import org.omg.CORBA.INITIALIZE;
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
import org.omg.CORBA.INTERNAL;
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
import org.omg.CORBA.CompletionStatus;
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
import com.sun.corba.se.pept.transport.Acceptor;
7579
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
    41
import com.sun.corba.se.pept.transport.ConnectionCache;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
import com.sun.corba.se.pept.transport.ByteBufferPool;
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
import com.sun.corba.se.pept.transport.ContactInfo;
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
import com.sun.corba.se.pept.transport.InboundConnectionCache;
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
import com.sun.corba.se.pept.transport.OutboundConnectionCache;
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
import com.sun.corba.se.pept.transport.Selector;
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
import com.sun.corba.se.spi.ior.IORTemplate;
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
import com.sun.corba.se.spi.ior.ObjectAdapterId;
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
import com.sun.corba.se.spi.orb.ORB;
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
import com.sun.corba.se.spi.transport.CorbaAcceptor;
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
import com.sun.corba.se.spi.transport.CorbaTransportManager;
7579
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
    53
import com.sun.corba.se.pept.transport.Connection;
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
    54
import com.sun.corba.se.pept.transport.ConnectionCache;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
// REVISIT - impl/poa specific:
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
import com.sun.corba.se.impl.oa.poa.Policies;
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
import com.sun.corba.se.impl.orbutil.ORBUtility;
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
 * @author Harold Carr
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
public class CorbaTransportManagerImpl
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
    implements
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
        CorbaTransportManager
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
{
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
    protected ORB orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
    protected List acceptors;
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
    protected Map outboundConnectionCaches;
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
    protected Map inboundConnectionCaches;
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
    protected Selector selector;
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
    public CorbaTransportManagerImpl(ORB orb)
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
        this.orb = orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
        acceptors = new ArrayList();
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
        outboundConnectionCaches = new HashMap();
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
        inboundConnectionCaches = new HashMap();
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
        selector = new SelectorImpl(orb);
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
    ////////////////////////////////////////////////////
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
    // pept TransportManager
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
    public ByteBufferPool getByteBufferPool(int id)
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
        throw new RuntimeException();
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
    public OutboundConnectionCache getOutboundConnectionCache(
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
        ContactInfo contactInfo)
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
        synchronized (contactInfo) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
            if (contactInfo.getConnectionCache() == null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
                OutboundConnectionCache connectionCache = null;
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
                synchronized (outboundConnectionCaches) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
                    connectionCache = (OutboundConnectionCache)
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
                        outboundConnectionCaches.get(
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
                            contactInfo.getConnectionCacheType());
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
                    if (connectionCache == null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
                        // REVISIT: Would like to be able to configure
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
                        // the connection cache type used.
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
                        connectionCache =
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
                            new CorbaOutboundConnectionCacheImpl(orb,
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
                                                                 contactInfo);
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
                        outboundConnectionCaches.put(
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
                            contactInfo.getConnectionCacheType(),
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
                            connectionCache);
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
                    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
                contactInfo.setConnectionCache(connectionCache);
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
            return contactInfo.getConnectionCache();
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
    public Collection getOutboundConnectionCaches()
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
        return outboundConnectionCaches.values();
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
    public InboundConnectionCache getInboundConnectionCache(
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
        Acceptor acceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
        synchronized (acceptor) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
            if (acceptor.getConnectionCache() == null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
                InboundConnectionCache connectionCache = null;
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
                synchronized (inboundConnectionCaches) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
                    connectionCache = (InboundConnectionCache)
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
                        inboundConnectionCaches.get(
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
                            acceptor.getConnectionCacheType());
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
                    if (connectionCache == null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
                        // REVISIT: Would like to be able to configure
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
                        // the connection cache type used.
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
                        connectionCache =
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
                            new CorbaInboundConnectionCacheImpl(orb,
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
                                                                acceptor);
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
                        inboundConnectionCaches.put(
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
                            acceptor.getConnectionCacheType(),
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
                            connectionCache);
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
                    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
                acceptor.setConnectionCache(connectionCache);
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
            return acceptor.getConnectionCache();
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
    public Collection getInboundConnectionCaches()
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
        return inboundConnectionCaches.values();
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
    public Selector getSelector(int id)
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
        return selector;
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
    public synchronized void registerAcceptor(Acceptor acceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
        if (orb.transportDebugFlag) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
            dprint(".registerAcceptor->: " + acceptor);
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
        acceptors.add(acceptor);
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
        if (orb.transportDebugFlag) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
            dprint(".registerAcceptor<-: " + acceptor);
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
    public Collection getAcceptors()
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
        return getAcceptors(null, null);
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
    public synchronized void unregisterAcceptor(Acceptor acceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
        acceptors.remove(acceptor);
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
    public void close()
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
            if (orb.transportDebugFlag) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
                dprint(".close->");
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
            }
7579
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   188
            for (Object cc : outboundConnectionCaches.values()) {
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   189
                ((ConnectionCache)cc).close() ;
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   190
            }
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   191
            for (Object cc : inboundConnectionCaches.values()) {
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   192
                ((ConnectionCache)cc).close() ;
cf90ea1653fb 6714797: InitialContext.close does not close NIO socket connections
skoppar
parents: 5555
diff changeset
   193
            }
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
            getSelector(0).close();
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
        } finally {
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
            if (orb.transportDebugFlag) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
                dprint(".close<-");
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
    ////////////////////////////////////////////////////
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
    // CorbaTransportManager
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
    public Collection getAcceptors(String objectAdapterManagerId,
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
                                   ObjectAdapterId objectAdapterId)
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
        // REVISIT - need to filter based on arguments.
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
        // REVISIT - initialization will be moved to OA.
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
        // Lazy initialization of acceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
        Iterator iterator = acceptors.iterator();
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
        while (iterator.hasNext()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
            Acceptor acceptor = (Acceptor) iterator.next();
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
            if (acceptor.initialize()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
                if (acceptor.shouldRegisterAcceptEvent()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
                    orb.getTransportManager().getSelector(0)
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
                        .registerForEvent(acceptor.getEventHandler());
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
        return acceptors;
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
    // REVISIT - POA specific policies
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
    public void addToIORTemplate(IORTemplate iorTemplate,
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
                                 Policies policies,
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
                                 String codebase,
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
                                 String objectAdapterManagerId,
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
                                 ObjectAdapterId objectAdapterId)
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
        Iterator iterator =
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
            getAcceptors(objectAdapterManagerId, objectAdapterId).iterator();
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
        while (iterator.hasNext()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
            CorbaAcceptor acceptor = (CorbaAcceptor) iterator.next();
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
            acceptor.addToIORTemplate(iorTemplate, policies, codebase);
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
    ////////////////////////////////////////////////////
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
    // implemenation
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
    protected void dprint(String msg)
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
        ORBUtility.dprint("CorbaTransportManagerImpl", msg);
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
}
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
// End of file.