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.Class<?> itfName,
java.lang.Class<? extends javax.ejb.EJBObject> businessName,
java.lang.String clusterName,
int minPoolSize,
int maxPoolSize,
java.lang.Class<? extends ILBPolicy> policyType,
java.lang.Class<? extends ILBStrategy> strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean stateful,
boolean replicated,
java.util.Set<java.lang.String> applicationExceptionNames)
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.Class<?> itfName,
java.lang.Class<? extends javax.ejb.EJBObject> businessName,
java.lang.String clusterName,
int minPoolSize,
int maxPoolSize,
java.lang.Class<? extends ILBPolicy> policyType,
java.lang.Class<? extends ILBStrategy> strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean stateful,
boolean replicated,
java.util.Set<java.lang.String> applicationExceptionNames)
- 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 policystateful - true if this object has a statereplicated - true if the state of this object is replicated for high-availabilityapplicationExceptionNames - classnames of the application exceptions
getClusterName
public java.lang.String getClusterName()
- Returns:
- a name of the cluster where is deployed this object
getItfClass
public java.lang.Class<?> getItfClass()
- Returns:
- Name of the interface that the object implements.
getPolicyType
public java.lang.Class<? extends ILBPolicy> getPolicyType()
- Returns:
- the lbPolicyType
getStrategyType
public java.lang.Class<? extends ILBStrategy> getStrategyType()
- Returns:
- the lbStrategyType
getBusinessClass
public java.lang.Class<? extends javax.ejb.EJBObject> getBusinessClass()
- Returns:
- the businessName
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Returns:
- the lbProperties
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
hasState
public boolean hasState()
- Return true if this object has a state
isReplicated
public boolean isReplicated()
- Returns:
- true if the state of this object is replicated for high-availability
getApplicationExceptionNames
public java.util.Set<java.lang.String> getApplicationExceptionNames()
- Returns:
- classnames of the application exceptions
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008 OW2 Consortium. All Rights Reserved.