Class VirtualAddressAgentImpl
- java.lang.Object
-
- org.omg.CORBA.LocalObject
-
- com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl
-
- All Implemented Interfaces:
ORBConfigurator
,java.io.Serializable
,Object
,IDLEntity
,Interceptor
,InterceptorOperations
,IORInterceptor
,IORInterceptor_3_0
,IORInterceptor_3_0Operations
,IORInterceptorOperations
,ORBInitializer
,ORBInitializerOperations
public class VirtualAddressAgentImpl extends LocalObject implements ORBConfigurator, ORBInitializer, IORInterceptor_3_0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
VirtualAddressAgentImpl.AddressParser
private class
VirtualAddressAgentImpl.SpecialIIOPProfileImpl
private class
VirtualAddressAgentImpl.SpecialIIOPProfileTemplateImpl
-
Field Summary
Fields Modifier and Type Field Description private IIOPAddress
addr
private java.lang.String
host
private ORBInitializer[]
newOrbInits
private ORB
orb
private int
port
private static long
serialVersionUID
static java.lang.String
VAA_HOST_PROPERTY
static java.lang.String
VAA_PORT_PROPERTY
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description VirtualAddressAgentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adapter_manager_state_changed(int id, short state)
Called whenever the state of an adapter manager changes.void
adapter_state_changed(ObjectReferenceTemplate[] templates, short state)
Called whenever the state of an object adapter changes, and the state change is not caused by an adapter manager.private void
agentAddress(IIOPAddress addr)
void
components_established(IORInfo info)
The components_established method is invoked on all registered IORInterceptor_3_0 instances after establish_components has been invoked on all registered IORInterceptor instances.void
configure(DataCollector dc, ORB orb)
void
destroy()
Provides an opportunity to destroy this interceptor.void
establish_components(IORInfo info)
A server side ORB calls theestablish_components
operation on all registeredIORInterceptor
instances when it is assembling the list of components that will be included in the profile or profiles of an object reference.private TaggedProfileTemplate
makeCopy(TaggedProfileTemplate temp)
java.lang.String
name()
Returns the name of the interceptor.void
post_init(ORBInitInfo info)
Called during ORB initialization.void
pre_init(ORBInitInfo info)
Called during ORB initialization.-
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
VAA_HOST_PROPERTY
public static final java.lang.String VAA_HOST_PROPERTY
- See Also:
- Constant Field Values
-
VAA_PORT_PROPERTY
public static final java.lang.String VAA_PORT_PROPERTY
- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
host
private java.lang.String host
-
port
private int port
-
orb
private ORB orb
-
addr
private IIOPAddress addr
-
newOrbInits
private ORBInitializer[] newOrbInits
-
-
Method Detail
-
agentAddress
@InfoMethod private void agentAddress(IIOPAddress addr)
-
configure
public void configure(DataCollector dc, ORB orb)
- Specified by:
configure
in interfaceORBConfigurator
-
pre_init
public void pre_init(ORBInitInfo info)
Description copied from interface:ORBInitializerOperations
Called during ORB initialization. If it is expected that initial services registered by an interceptor will be used by other interceptors, then those initial services shall be registered at this point via calls toORBInitInfo.register_initial_reference
.- Specified by:
pre_init
in interfaceORBInitializerOperations
- Parameters:
info
- provides initialization attributes and operations by which Interceptors can be registered.
-
post_init
public void post_init(ORBInitInfo info)
Description copied from interface:ORBInitializerOperations
Called during ORB initialization. If a service must resolve initial references as part of its initialization, it can assume that all initial references will be available at this point.Calling the
post_init
operations is not the final task of ORB initialization. The final task, following thepost_init
calls, is attaching the lists of registered interceptors to the ORB. Therefore, the ORB does not contain the interceptors during calls topost_init
. If an ORB-mediated call is made from withinpost_init
, no request interceptors will be invoked on that call. Likewise, if an operation is performed which causes an IOR to be created, no IOR interceptors will be invoked.- Specified by:
post_init
in interfaceORBInitializerOperations
- Parameters:
info
- provides initialization attributes and operations by which Interceptors can be registered.
-
establish_components
public void establish_components(IORInfo info)
Description copied from interface:IORInterceptorOperations
A server side ORB calls theestablish_components
operation on all registeredIORInterceptor
instances when it is assembling the list of components that will be included in the profile or profiles of an object reference. This operation is not necessarily called for each individual object reference. In the case of the POA, this operation is called each time POA::create_POA is called. In any case,establish_components
is guaranteed to be called at least once for each distinct set of server policies.An implementation of
establish_components
must not throw exceptions. If it does, the ORB shall ignore the exception and proceed to call the next IOR Interceptor'sestablish_components
operation.- Specified by:
establish_components
in interfaceIORInterceptorOperations
- Parameters:
info
- TheIORInfo
instance used by the ORB service to query applicable policies and add components to be included in the generated IORs.
-
makeCopy
private TaggedProfileTemplate makeCopy(TaggedProfileTemplate temp)
-
components_established
public void components_established(IORInfo info)
Description copied from interface:IORInterceptor_3_0Operations
The components_established method is invoked on all registered IORInterceptor_3_0 instances after establish_components has been invoked on all registered IORInterceptor instances. The adapter_template is available in info during this call. The current_factory may be get or set in info during this call.Any exception thrown from this method is handled by the Object Adapter that called this interceptor. In the case of the POA, an exception results in a OBJ_ADAPTER exception with an OMG standard minor code of 6.
- Specified by:
components_established
in interfaceIORInterceptor_3_0Operations
- Parameters:
info
- The IORInfo for the object adapter being created.
-
adapter_manager_state_changed
public void adapter_manager_state_changed(int id, short state)
Description copied from interface:IORInterceptor_3_0Operations
Called whenever the state of an adapter manager changes. For the POA, that is the POAManager. If the state change is reported throughadapter_manager_state_changed
, it is not reported throughadapter_state_changed
.- Specified by:
adapter_manager_state_changed
in interfaceIORInterceptor_3_0Operations
- Parameters:
id
- the adapter manager id of the adapter manager that changed statestate
- the new state of the adapter manager
-
adapter_state_changed
public void adapter_state_changed(ObjectReferenceTemplate[] templates, short state)
Description copied from interface:IORInterceptor_3_0Operations
Called whenever the state of an object adapter changes, and the state change is not caused by an adapter manager. Such changes are reported to all registeredIORInterceptor_3_0
instances.- Specified by:
adapter_state_changed
in interfaceIORInterceptor_3_0Operations
- Parameters:
templates
- the sequence ofObjectReferenceTemplate
instances on which this state change occurred.state
- the newAdapterState
shared by all of the templates.
-
name
public java.lang.String name()
Description copied from interface:InterceptorOperations
Returns the name of the interceptor.Each Interceptor may have a name that may be used administratively to order the lists of Interceptors. Only one Interceptor of a given name can be registered with the ORB for each Interceptor type. An Interceptor may be anonymous, i.e., have an empty string as the name attribute. Any number of anonymous Interceptors may be registered with the ORB.
- Specified by:
name
in interfaceInterceptorOperations
- Returns:
- the name of the interceptor.
-
destroy
public void destroy()
Description copied from interface:InterceptorOperations
Provides an opportunity to destroy this interceptor. The destroy method is called duringORB.destroy
. When an application callsORB.destroy
, the ORB:- waits for all requests in progress to complete
- calls the
Interceptor.destroy
operation for each interceptor - completes destruction of the ORB
Interceptor.destroy
on object references for objects implemented on the ORB being destroyed result in undefined behavior. However, method invocations on objects implemented on an ORB other than the one being destroyed are permitted. (This means that the ORB being destroyed is still capable of acting as a client, but not as a server.)- Specified by:
destroy
in interfaceInterceptorOperations
-
-