public interface ReferenceFactoryManager extends Object, IDLEntity
An instance of this interface can be obtained from an ORB by calling resolve_initial_references( "ReferenceFactoryManager" ). The ORB will have an instance of this available if it is started with the property ORBConstants.USER_CONFIGURATOR_PREFIX + "com.sun.corba.ee.impl.oa.rfm.ReferenceManagerConfigurator" set to a value (usually we use "1" as the value, but that does not matter). This will cause the configurator to set up the ORB so that the ReferenceFactoryManager is available, so long as the configurator class is available. Since this code is in the optional package, this just means that the optional ORB package contents must be in the classpath.
Note that this interface is a simulated IDL local interface, but there is no actual IDL for this interface.
Note that the suspend and resume methods must be called from the same thread in order for the thread synchronization to be handled correctly. Calling either of the restart() methods guarantees this, but disallows more complex ORB configuration changes.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReferenceFactoryManager.RFMState |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Must be called before any other operation.
|
ReferenceFactory |
create(String name,
String repositoryId,
List<Policy> policies,
ServantLocator manager)
Create a new reference factory with the given policies.
|
ReferenceFactory |
find(String name)
Find the ReferenceFactory with the given name.
|
ReferenceFactory |
find(String[] adapterName)
Get the ReferenceFactory name from a String[] adapterName, if
adapterName is the name of a ReferenceFactory.
|
ReferenceFactoryManager.RFMState |
getState()
The state of the ReferenceFactoryManager.
|
boolean |
isRfmName(String[] adapterName) |
void |
restart()
Restart all ReferenceFactories.
|
void |
restart(Map<String,org.glassfish.pfl.basic.contain.Pair<ServantLocator,List<Policy>>> updates)
Restart all ReferenceFactories.
|
void |
restartFactories()
Restart all ReferenceFactories.
|
void |
restartFactories(Map<String,org.glassfish.pfl.basic.contain.Pair<ServantLocator,List<Policy>>> updates)
Restart all ReferenceFactories.
|
void |
resume()
Resume all CORBA request processing on all references created
by ReferenceFactory instances that were created by this
ReferenceFactoryManager.
|
void |
suspend()
Suspend all CORBA request processing on all references created
by ReferenceFactory instances that were created by this
ReferenceFactoryManager.
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overrideReferenceFactoryManager.RFMState getState()
void activate()
void suspend()
void resume()
ReferenceFactory create(String name, String repositoryId, List<Policy> policies, ServantLocator manager)
name - is the name of this ReferenceFactory. This is a
simple flat name, not a hierarchical name.repositoryId - is the repoid to be used when this reference factory
creates a new CORBA Object reference.policies - are the policies to be used to create the underlying POA.ReferenceFactory find(String[] adapterName)
ReferenceFactory find(String name)
void restartFactories(Map<String,org.glassfish.pfl.basic.contain.Pair<ServantLocator,List<Policy>>> updates)
updates - is a map giving the updated policies for
some or all of the ReferenceFactory instances in this ReferenceFactoryManager.
This parameter must not be null.void restartFactories()
void restart(Map<String,org.glassfish.pfl.basic.contain.Pair<ServantLocator,List<Policy>>> updates)
suspend() ;
try {
restartFactories( updates ) ;
} finally {
resume() ;
}
updates - is a map giving the updated policies for
some or all of the ReferenceFactory instances in this ReferenceFactoryManager.
This parameter must not be null.void restart()
boolean isRfmName(String[] adapterName)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.