Mon, 15 Nov 2010 10:47:48 -0800
6763340: memory leak in com.sun.corba.se.* classes
6873605: Missing finishedDispatch() call in ORBImpl causes test failures after 5u20 b04
Summary: Reviewed by Ken Cavanaugh
Reviewed-by: coffeys
duke@1 | 1 | /* |
ohair@158 | 2 | * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@158 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | |
duke@1 | 26 | package com.sun.corba.se.impl.interceptors; |
duke@1 | 27 | |
duke@1 | 28 | import java.io.IOException; |
duke@1 | 29 | |
duke@1 | 30 | import org.omg.CORBA.Any; |
duke@1 | 31 | import org.omg.CORBA.NVList; |
duke@1 | 32 | |
duke@1 | 33 | import org.omg.IOP.CodecFactory; |
duke@1 | 34 | |
duke@1 | 35 | import org.omg.CORBA.portable.RemarshalException; |
duke@1 | 36 | |
duke@1 | 37 | import org.omg.PortableInterceptor.ObjectReferenceTemplate ; |
duke@1 | 38 | import org.omg.PortableInterceptor.ForwardRequest; |
duke@1 | 39 | import org.omg.PortableInterceptor.Interceptor; |
duke@1 | 40 | import org.omg.PortableInterceptor.PolicyFactory; |
duke@1 | 41 | import org.omg.PortableInterceptor.Current; |
duke@1 | 42 | |
duke@1 | 43 | import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ; |
duke@1 | 44 | |
duke@1 | 45 | import com.sun.corba.se.pept.encoding.OutputObject; |
duke@1 | 46 | |
duke@1 | 47 | import com.sun.corba.se.spi.ior.ObjectKeyTemplate; |
duke@1 | 48 | |
duke@1 | 49 | import com.sun.corba.se.spi.oa.ObjectAdapter; |
duke@1 | 50 | |
duke@1 | 51 | import com.sun.corba.se.spi.orb.ORB; |
duke@1 | 52 | |
duke@1 | 53 | import com.sun.corba.se.spi.protocol.PIHandler; |
duke@1 | 54 | import com.sun.corba.se.spi.protocol.ForwardException; |
duke@1 | 55 | import com.sun.corba.se.spi.protocol.CorbaMessageMediator; |
duke@1 | 56 | |
duke@1 | 57 | import com.sun.corba.se.impl.corba.RequestImpl; |
duke@1 | 58 | |
duke@1 | 59 | import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage; |
duke@1 | 60 | |
duke@1 | 61 | /** |
duke@1 | 62 | * This is No-Op implementation of PIHandler. It is used in ORBConfigurator |
duke@1 | 63 | * to initialize a piHandler before the Persistent Server Activation. This |
duke@1 | 64 | * PIHandler implementation will be replaced by the real PIHandler in |
duke@1 | 65 | * ORB.postInit( ) call. |
duke@1 | 66 | */ |
duke@1 | 67 | public class PINoOpHandlerImpl implements PIHandler |
duke@1 | 68 | { |
duke@1 | 69 | public PINoOpHandlerImpl( ) { |
duke@1 | 70 | } |
duke@1 | 71 | |
duke@1 | 72 | public void initialize() { |
duke@1 | 73 | } |
duke@1 | 74 | |
duke@1 | 75 | public void destroyInterceptors() { |
duke@1 | 76 | } |
duke@1 | 77 | |
duke@1 | 78 | public void objectAdapterCreated( ObjectAdapter oa ) |
duke@1 | 79 | { |
duke@1 | 80 | } |
duke@1 | 81 | |
duke@1 | 82 | public void adapterManagerStateChanged( int managerId, |
duke@1 | 83 | short newState ) |
duke@1 | 84 | { |
duke@1 | 85 | } |
duke@1 | 86 | |
duke@1 | 87 | public void adapterStateChanged( ObjectReferenceTemplate[] |
duke@1 | 88 | templates, short newState ) |
duke@1 | 89 | { |
duke@1 | 90 | } |
duke@1 | 91 | |
duke@1 | 92 | |
duke@1 | 93 | public void disableInterceptorsThisThread() { |
duke@1 | 94 | } |
duke@1 | 95 | |
duke@1 | 96 | public void enableInterceptorsThisThread() { |
duke@1 | 97 | } |
duke@1 | 98 | |
duke@1 | 99 | public void invokeClientPIStartingPoint() |
duke@1 | 100 | throws RemarshalException |
duke@1 | 101 | { |
duke@1 | 102 | } |
duke@1 | 103 | |
duke@1 | 104 | public Exception invokeClientPIEndingPoint( |
duke@1 | 105 | int replyStatus, Exception exception ) |
duke@1 | 106 | { |
duke@1 | 107 | return null; |
duke@1 | 108 | } |
duke@1 | 109 | |
robm@215 | 110 | public Exception makeCompletedClientRequest( |
robm@215 | 111 | int replyStatus, Exception exception ) { |
robm@215 | 112 | return null; |
robm@215 | 113 | } |
robm@215 | 114 | |
duke@1 | 115 | public void initiateClientPIRequest( boolean diiRequest ) { |
duke@1 | 116 | } |
duke@1 | 117 | |
duke@1 | 118 | public void cleanupClientPIRequest() { |
duke@1 | 119 | } |
duke@1 | 120 | |
duke@1 | 121 | public void setClientPIInfo(CorbaMessageMediator messageMediator) |
duke@1 | 122 | { |
duke@1 | 123 | } |
duke@1 | 124 | |
duke@1 | 125 | public void setClientPIInfo( RequestImpl requestImpl ) |
duke@1 | 126 | { |
duke@1 | 127 | } |
duke@1 | 128 | |
duke@1 | 129 | final public void sendCancelRequestIfFinalFragmentNotSent() |
duke@1 | 130 | { |
duke@1 | 131 | } |
duke@1 | 132 | |
duke@1 | 133 | |
duke@1 | 134 | public void invokeServerPIStartingPoint() |
duke@1 | 135 | { |
duke@1 | 136 | } |
duke@1 | 137 | |
duke@1 | 138 | public void invokeServerPIIntermediatePoint() |
duke@1 | 139 | { |
duke@1 | 140 | } |
duke@1 | 141 | |
duke@1 | 142 | public void invokeServerPIEndingPoint( ReplyMessage replyMessage ) |
duke@1 | 143 | { |
duke@1 | 144 | } |
duke@1 | 145 | |
duke@1 | 146 | public void setServerPIInfo( Exception exception ) { |
duke@1 | 147 | } |
duke@1 | 148 | |
duke@1 | 149 | public void setServerPIInfo( NVList arguments ) |
duke@1 | 150 | { |
duke@1 | 151 | } |
duke@1 | 152 | |
duke@1 | 153 | public void setServerPIExceptionInfo( Any exception ) |
duke@1 | 154 | { |
duke@1 | 155 | } |
duke@1 | 156 | |
duke@1 | 157 | public void setServerPIInfo( Any result ) |
duke@1 | 158 | { |
duke@1 | 159 | } |
duke@1 | 160 | |
duke@1 | 161 | public void initializeServerPIInfo( CorbaMessageMediator request, |
duke@1 | 162 | ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp ) |
duke@1 | 163 | { |
duke@1 | 164 | } |
duke@1 | 165 | |
duke@1 | 166 | public void setServerPIInfo( java.lang.Object servant, |
duke@1 | 167 | String targetMostDerivedInterface ) |
duke@1 | 168 | { |
duke@1 | 169 | } |
duke@1 | 170 | |
duke@1 | 171 | public void cleanupServerPIRequest() { |
duke@1 | 172 | } |
duke@1 | 173 | |
duke@1 | 174 | public void register_interceptor( Interceptor interceptor, int type ) |
duke@1 | 175 | throws DuplicateName |
duke@1 | 176 | { |
duke@1 | 177 | } |
duke@1 | 178 | |
duke@1 | 179 | public Current getPICurrent( ) { |
duke@1 | 180 | return null; |
duke@1 | 181 | } |
duke@1 | 182 | |
duke@1 | 183 | public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val) |
duke@1 | 184 | throws org.omg.CORBA.PolicyError |
duke@1 | 185 | { |
duke@1 | 186 | return null; |
duke@1 | 187 | } |
duke@1 | 188 | |
duke@1 | 189 | public void registerPolicyFactory( int type, PolicyFactory factory ) { |
duke@1 | 190 | } |
duke@1 | 191 | |
duke@1 | 192 | public int allocateServerRequestId () |
duke@1 | 193 | { |
duke@1 | 194 | return 0; |
duke@1 | 195 | } |
duke@1 | 196 | } |