public class PolicyManager extends _PolicyManagerLocalBase
Constructor and Description |
---|
PolicyManager(Configuration config)
public c'tor
|
Modifier and Type | Method and Description |
---|---|
Policy[] |
get_policy_overrides(int[] ts)
Returns a PolicyList containing the overridden Polices for the
requested PolicyTypes.
|
void |
set_policy_overrides(Policy[] policies,
SetOverrideType set_add)
Modifies the current set of overrides with the requested list
of Policy overrides.
|
_ids
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_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
public PolicyManager(Configuration config)
public Policy[] get_policy_overrides(int[] ts)
ts
- a sequence of overridden policy types identifying the
policies that are to be retrieved.public void set_policy_overrides(Policy[] policies, SetOverrideType set_add) throws InvalidPolicies
Invoking set_policy_overrides with an empty sequence of policies and a mode of SET_OVERRIDE removes all overrides from a PolicyManager. Only certain policies that pertain to the invocation of an operation at the client end can be overridden using this operation. Attempts to override any other policy will result in the raising of the CORBA::NO_PERMISSION exception. If the request would put the set of overriding policies for the target PolicyManager in an inconsistent state, no policies are changed or added, and the exception InvalidPolicies is raised. There is no evaluation of compatibility with policies set within other PolicyManagers.
policies
- a sequence of Policy objects that are to be
associated with the PolicyManager object.set_add
- whether the association is in addition to
(ADD_OVERRIDE) or as a replacement of (SET_OVERRIDE) any
existing overrides already associated with the PolicyManager
object. If the value of this parameter is SET_OVERRIDE, the
supplied policies completely replace all existing overrides
associated with the PolicyManager object. If the value of this
parameter is ADD_OVERRIDE, the supplied policies are added to
the existing overrides associated with the PolicyManager
object, except that if a supplied Policy object has the same
PolicyType value as an existing override, the supplied Policy
object replaces the existing override.InvalidPolicies
- a list of indices identifying the
position in the input policies list that are occupied by
invalid policiesBAD_PARAM
- if the sequence contains two or more Policy
objects with the same PolicyType value, the operation raises
the standard sytem exception BAD_PARAM with standard minor code
30.Copyright © 2017 JacORB. All rights reserved.