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:
which creates instances of this
|
Constructor Summary |
ClusteredObjectInfo(java.lang.Class<?> itfClass,
java.lang.Class<? extends javax.ejb.EJBObject> businessClass,
java.lang.String clusterName,
org.ow2.util.pool.api.IPoolConfiguration poolConfiguration,
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
ClusteredObjectInfo
public ClusteredObjectInfo(java.lang.Class<?> itfClass,
java.lang.Class<? extends javax.ejb.EJBObject> businessClass,
java.lang.String clusterName,
org.ow2.util.pool.api.IPoolConfiguration poolConfiguration,
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:
itfClass - interface implemented by the objectbusinessClass - Business interface (only for ejb2)clusterName - a name of clusterpoolConfiguration - configuration 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
getPoolConfiguration
public org.ow2.util.pool.api.IPoolConfiguration getPoolConfiguration()
- Returns:
- the configuration 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
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008 OW2 Consortium. All Rights Reserved.