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.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.
 
Method Summary
 java.lang.String getBusinessName()
           
 java.lang.String getClusterName()
           
 java.lang.String getItfName()
           
 int getMaxPoolSize()
           
 int getMinPoolSize()
           
 java.lang.String getPolicyType()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 java.lang.String 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.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 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

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.