|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.carol.cmi.lb.data.LBPolicyData
@ThreadSafe public final class LBPolicyData
Contains data for a policy of load-balancing.
| Constructor Summary | |
|---|---|
LBPolicyData(java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties)
Constructs data for load-balancing with the specified policy, strategy and properties. |
|
LBPolicyData(java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
long dateOfProperties)
Constructs data for load-balancing with the specified policy, strategy and properties. |
|
| Method Summary | |
|---|---|
LBPolicyData |
clone()
|
boolean |
equals(java.lang.Object object)
|
long |
getDateOfProperties()
|
java.lang.String |
getPolicyType()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns the value of the property with the given name. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the value of the property with the given name. |
java.lang.String |
getStrategyType()
|
void |
setPolicyType(java.lang.String lbPolicyType)
Sets the type of policy. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Set new properties to the policy (remove the previous). |
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Adds a property to the policy. |
void |
setStrategyType(java.lang.String lbStrategyType)
Sets the type of strategy. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LBPolicyData(java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties)
policyType - a type of LB policystrategyType - a type of LB strategyproperties - properties for the given LB policy
public LBPolicyData(java.lang.String policyType,
java.lang.String strategyType,
java.util.Map<java.lang.String,java.lang.Object> properties,
long dateOfProperties)
policyType - a type of LB policystrategyType - a type of LB strategyproperties - properties for the given LB policydateOfProperties - a date of properties| Method Detail |
|---|
public java.lang.String getPolicyType()
public void setPolicyType(java.lang.String lbPolicyType)
lbPolicyType - a type of policypublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String propertyName)
propertyName - a name of a property
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties - properties
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
propertyName - a name of a propertypropertyValue - a value of a propertypublic long getDateOfProperties()
public java.lang.String getStrategyType()
public void setStrategyType(java.lang.String lbStrategyType)
lbStrategyType - a type of policypublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public LBPolicyData clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||