org.ow2.carol.cmi.info
Class ClusteredObjectInfo

java.lang.Object
  extended by 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 replicated)
          Constructs informations for a clustered object with the default strategy for the given LB policy.
 
Method Summary
 java.lang.Class<? extends javax.ejb.EJBObject> getBusinessClass()
           
 java.lang.String getClusterName()
           
 java.lang.Class<?> getItfClass()
           
 int getMaxPoolSize()
           
 int getMinPoolSize()
           
 java.lang.Class<? extends ILBPolicy> getPolicyType()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 java.lang.Class<? extends ILBStrategy> getStrategyType()
           
 boolean isReplicated()
          Return true if this object is replicated for high-availability (the module 'ha' is required)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 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 implements
businessName - the name of the business interface (only for ejb2)
clusterName - a name of cluster
minPoolSize - a minimal size for the pool of CMIReferenceable
maxPoolSize - a maximal size for the pool of CMIReferenceable
policyType - a type of policy for load-balancing
strategyType - a type of strategy for load-balancing
properties - properties of the policy
replicated - true if this object is replicated for high-availability (the module 'ha' is required)
Method Detail

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.

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.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

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.