org.ow2.carol.cmi.info
Class ClusteredObjectInfo
java.lang.Object
org.ow2.carol.cmi.info.ClusteredObjectInfo
@NotThreadSafe
public final class ClusteredObjectInfo
- extends java.lang.Object
Contain informations on a clustered object.
- Author:
- The new CMI team
- See Also:
ClusteredObject,
CMIInfoExtractor
|
Constructor Summary |
ClusteredObjectInfo(java.lang.String itfName,
java.lang.String businessName,
java.lang.String clusterName,
int minPoolSize,
int maxPoolSize,
java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean replicated)
Constructs informations for a clustered object with the default strategy for the given LB policy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClusteredObjectInfo
public ClusteredObjectInfo(java.lang.String itfName,
java.lang.String businessName,
java.lang.String clusterName,
int minPoolSize,
int maxPoolSize,
java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean replicated)
- Constructs informations for a clustered object with the default strategy for the given LB policy.
- Parameters:
itfName - a name of interface that the object implementsbusinessName - the name of the business interface (only for ejb2)clusterName - a name of clusterminPoolSize - a minimal size for the pool of CMIReferenceablemaxPoolSize - a maximal size for the pool of CMIReferenceablepolicyType - a type of policy for load-balancingstrategyType - a type of strategy for load-balancingproperties - properties of the policyreplicated - true if this object is replicated for high-availability (the module 'ha' is required)
getClusterName
public java.lang.String getClusterName()
- Returns:
- a name of the cluster where is deployed this object
getItfName
public java.lang.String getItfName()
- Returns:
- Name of the interface that the object implements.
getMaxPoolSize
public int getMaxPoolSize()
- Returns:
- the maximal size for the pool of CMIReferenceable
getMinPoolSize
public int getMinPoolSize()
- Returns:
- the minimal size for the pool of CMIReferenceable
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Returns:
- the lbProperties
getPolicyType
public java.lang.String getPolicyType()
- Returns:
- the lbPolicyType
getStrategyType
public java.lang.String getStrategyType()
- Returns:
- the lbStrategyType
getBusinessName
public java.lang.String getBusinessName()
- Returns:
- the businessName
isReplicated
public boolean isReplicated()
- Return true if this object is replicated for high-availability (the module 'ha' is required)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007 OW2 Consortium. All Rights Reserved.