public interface PIHandler
| Modifier and Type | Method and Description |
|---|---|
void |
adapterManagerStateChanged(int managerId,
short newState)
Called whenever a state change occurs in an adapter manager.
|
void |
adapterStateChanged(ObjectReferenceTemplate[] templates,
short newState)
Called whenever a state change occurs in an object adapter that was not
caused by an adapter manager state change.
|
int |
allocateServerRequestId() |
void |
cleanupClientPIRequest()
Invoked when a request is about to be cleaned up.
|
void |
cleanupServerPIRequest()
Invoked when a request is about to be cleaned up.
|
Policy |
create_policy(int type,
Any val) |
void |
destroyInterceptors() |
void |
disableInterceptorsThisThread()
Called for pseudo-ops to temporarily disable portable interceptor hooks
for calls on this thread.
|
void |
enableInterceptorsThisThread()
Called for pseudo-ops to re-enable portable interceptor hooks for calls
on this thread.
|
Current |
getPICurrent() |
void |
initialize()
Complete the initialization of the PIHandler.
|
void |
initializeServerPIInfo(CorbaMessageMediator request,
ObjectAdapter oa,
byte[] objectId,
ObjectKeyTemplate oktemp)
Notifies PI to start a new server request and set initial information for
server-side interceptors.
|
void |
initiateClientPIRequest(boolean diiRequest)
Invoked when a request is about to be created.
|
Exception |
invokeClientPIEndingPoint(int replyStatus,
Exception exception)
Called when the appropriate client ending interception point is to be
invoked for all apporpriate client-side request interceptors.
|
void |
invokeClientPIStartingPoint()
Called when the send_request or send_poll portable interception point is
to be invoked for all appropriate client-side request interceptors.
|
void |
invokeServerPIEndingPoint(ReplyMessage replyMessage)
Called when the appropriate server ending interception point is to be
invoked for all appropriate server-side request interceptors.
|
void |
invokeServerPIIntermediatePoint()
Called when the appropriate server intermediate interception point is to
be invoked for all appropriate server-side request interceptors.
|
void |
invokeServerPIStartingPoint()
Called when the appropriate server starting interception point is to be
invoked for all appropriate server-side request interceptors.
|
void |
objectAdapterCreated(ObjectAdapter oa)
Called when a new object adapter is created.
|
void |
register_interceptor(Interceptor interceptor,
int type) |
void |
registerPolicyFactory(int type,
PolicyFactory factory) |
void |
setClientPIInfo(CorbaMessageMediator messageMediator)
Notify PI of the MessageMediator for the request.
|
void |
setClientPIInfo(RequestImpl requestImpl)
Notifies PI of additional information for client-side interceptors.
|
void |
setServerPIExceptionInfo(Any exception)
Notifies PI of additional information for server-side interceptors.
|
void |
setServerPIInfo(Any result)
Notifies PI of additional information for server-side interceptors.
|
void |
setServerPIInfo(Exception exception)
Notifies PI of additional information required for ServerRequestInfo.
|
void |
setServerPIInfo(NVList arguments)
Notifies PI of additional information for server-side interceptors.
|
void |
setServerPIInfo(Object servant,
String targetMostDerivedInterface)
Notifies PI of additional information reqired for ServerRequestInfo.
|
void initialize()
void destroyInterceptors()
void objectAdapterCreated(ObjectAdapter oa)
oa - The adapter associated with the interceptors to be invoked.void adapterManagerStateChanged(int managerId,
short newState)
managerId - managerId The adapter manager idnewState - newState The new state of the adapter manager, and by
implication of all object adapters managed by this manager.void adapterStateChanged(ObjectReferenceTemplate[] templates, short newState)
templates - The templates that are changing state.newState - The new state of the adapters identified by the templates.void disableInterceptorsThisThread()
void enableInterceptorsThisThread()
void invokeClientPIStartingPoint()
throws RemarshalException
RemarhsalException - - Thrown when this request needs to be retried.RemarshalExceptionException invokeClientPIEndingPoint(int replyStatus, Exception exception)
replyStatus - One of the constants in iiop.messages.ReplyMessage indicating
which reply status to set.exception - The exception before ending interception points have been
invoked, or null if no exception at the moment.void initiateClientPIRequest(boolean diiRequest)
diiRequest - True if this is to be a DII request, or false if it is a
"normal" request. In the DII case, initiateClientPIRequest is
called twice and we need to ignore the second one.void cleanupClientPIRequest()
void setClientPIInfo(RequestImpl requestImpl)
void setClientPIInfo(CorbaMessageMediator messageMediator)
void invokeServerPIStartingPoint()
ForwardException - Thrown if an interceptor raises ForwardRequest. This is an
unchecked exception so that we need not modify the entire
execution path to declare throwing ForwardException.void invokeServerPIIntermediatePoint()
ForwardException - Thrown if an interceptor raises ForwardRequest. This is an
unchecked exception so that we need not modify the entire
execution path to declare throwing ForwardException.void invokeServerPIEndingPoint(ReplyMessage replyMessage)
replyMessage - The iiop.messages.ReplyMessage containing the reply status.ForwardException - Thrown if an interceptor raises ForwardRequest. This is an
unchecked exception so that we need not modify the entire
execution path to declare throwing ForwardException.void initializeServerPIInfo(CorbaMessageMediator request, ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp)
void setServerPIInfo(Object servant, String targetMostDerivedInterface)
servant - The servant. This is java.lang.Object because in the POA case,
this will be a org.omg.PortableServer.Servant whereas in the
ServerRequestDispatcher case this will be an ObjectImpl.targetMostDerivedInterface - . The most derived interface. This is passed in instead of
calculated when needed because it requires extra information
in the POA case that we didn't want to bother creating extra
methods for to pass in.void setServerPIInfo(Exception exception)
void setServerPIInfo(NVList arguments)
void setServerPIExceptionInfo(Any exception)
void setServerPIInfo(Any result)
void cleanupServerPIRequest()
Policy create_policy(int type, Any val) throws PolicyError
PolicyErrorvoid register_interceptor(Interceptor interceptor, int type) throws DuplicateName
DuplicateNameCurrent getPICurrent()
void registerPolicyFactory(int type,
PolicyFactory factory)
int allocateServerRequestId()
Copyright © 2020 ADDC Infotech GmbH. All rights reserved.