Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.cluster
Interface ClusterPolicy

All Superinterfaces:
IDLEntity, Object, Policy, PolicyOperations, Serializable

public interface ClusterPolicy
extends Policy

Policy used to specify Load balancing or Fail Over for POA objects.

To create a cluster Policy:

  Any cpAny = orb.create_any();
  cpAny.insert_Value(new ClusterPolicyValue(...));
  ClusterPolicy cPolicy = (ClusterPolicy) orb.create_policy(
      ClusterPolicy.POLICY_TYPE, cpAny);
 
The Clustering policy should only be used with LifespanPolicy=TRANSIENT and IdAssignmentPolicy=USER_ID.

Since:
jBroker ORB 4.0
See Also:
LifespanPolicy, IdAssignmentPolicy

Field Summary
static int POLICY_TYPE
          Policy Type.
 
Method Summary
 ClusterPolicyValue value()
          Get the Policy value.
 
Methods inherited from interface org.omg.CORBA.PolicyOperations
copy, destroy, policy_type
 
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

POLICY_TYPE

public static final int POLICY_TYPE
Policy Type.

See Also:
PolicyOperations.policy_type(), Constant Field Values
Method Detail

value

public ClusterPolicyValue value()
Get the Policy value.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.