1 7 8 package com.sun.corba.se.spi.protocol; 9 10 import org.omg.PortableInterceptor.ObjectReferenceTemplate ; 11 import org.omg.PortableInterceptor.Interceptor ; 12 import org.omg.PortableInterceptor.Current ; 13 import org.omg.PortableInterceptor.PolicyFactory ; 14 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ; 15 16 import org.omg.CORBA.NVList ; 17 import org.omg.CORBA.Any ; 18 import org.omg.CORBA.Policy ; 19 import org.omg.CORBA.PolicyError ; 20 21 import org.omg.CORBA.portable.RemarshalException ; 22 23 import com.sun.corba.se.spi.oa.ObjectAdapter ; 24 25 import com.sun.corba.se.spi.protocol.CorbaMessageMediator ; 26 27 import com.sun.corba.se.spi.ior.ObjectKeyTemplate ; 28 29 import com.sun.corba.se.impl.corba.RequestImpl ; 31 import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage ; 32 33 36 public interface PIHandler { 37 42 public void initialize() ; 43 44 public void destroyInterceptors() ; 45 46 50 51 57 void objectAdapterCreated( ObjectAdapter oa ) ; 58 59 66 void adapterManagerStateChanged( int managerId, 67 short newState ) ; 68 69 76 void adapterStateChanged( ObjectReferenceTemplate [] templates, 77 short newState ) ; 78 79 83 84 89 void disableInterceptorsThisThread() ; 90 91 96 void enableInterceptorsThisThread() ; 97 98 105 void invokeClientPIStartingPoint() 106 throws RemarshalException ; 107 108 123 Exception invokeClientPIEndingPoint( 124 int replyStatus, Exception exception ) ; 125 126 135 void initiateClientPIRequest( boolean diiRequest ) ; 136 137 143 void cleanupClientPIRequest() ; 144 145 150 void setClientPIInfo( RequestImpl requestImpl ) ; 151 152 155 void setClientPIInfo(CorbaMessageMediator messageMediator) ; 156 157 161 162 171 void invokeServerPIStartingPoint() ; 172 173 182 void invokeServerPIIntermediatePoint() ; 183 184 195 void invokeServerPIEndingPoint( ReplyMessage replyMessage ) ; 196 197 204 void initializeServerPIInfo( CorbaMessageMediator request, 205 ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp ) ; 206 207 218 void setServerPIInfo( java.lang.Object servant, 219 String targetMostDerivedInterface ) ; 220 221 224 void setServerPIInfo( Exception exception ) ; 225 226 231 void setServerPIInfo( NVList arguments ) ; 232 233 238 void setServerPIExceptionInfo( Any exception ) ; 239 240 245 void setServerPIInfo( Any result ) ; 246 247 253 void cleanupServerPIRequest() ; 254 255 Policy create_policy( int type, Any val ) throws PolicyError ; 256 257 void register_interceptor( Interceptor interceptor, int type ) 258 throws DuplicateName ; 259 260 Current getPICurrent() ; 261 262 void registerPolicyFactory( int type, PolicyFactory factory ) ; 263 264 int allocateServerRequestId() ; 265 } 266 | Popular Tags |