|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.cmi.lb.data.PolicyData
@ThreadSafe public final class PolicyData
Contains data for a policy of load-balancing.
| Constructor Summary | |
|---|---|
PolicyData(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. |
|
PolicyData(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 | |
|---|---|
PolicyData |
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()
|
int |
hashCode()
|
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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyData(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 PolicyData(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 int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public PolicyData 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 | |||||||||