public class PromotionPolicyKey extends java.lang.Object implements XMLizable, NumericKey, com.ibm.websphere.cache.Sizeable
<PromotionPolicyKey> <PolicyName>Unique Name for the policy</PolicyName> <StoreKey> <DN>o=root organization</DN> <Identifier>BlueStore 202</Identifier> </StoreKey> </PromotionPolicyKey>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | TAG_PROMOTION_POLICY_KEY
Promotion policy key tag.
|
static java.lang.String | TAG_PROMOTION_POLICY_NAME
Promotion policy name tag.
|
static java.lang.String | TAG_STORE_NAME
The tag of store name, which this promotion policy belongs to.
|
static java.lang.String | TAG_STORE_OWNER_DN
The tag of store owner's Distinguished Name.
|
Constructor and Description |
---|
PromotionPolicyKey()
Default constructor
|
PromotionPolicyKey(org.w3c.dom.Node promotionPolicyKeyNode)
Constructor based on one XML node, which represent a promotion policy key.
|
PromotionPolicyKey(StoreKey key, java.lang.String aPolicyName)
Constructor for PromotionPolicyKey.
|
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object aObject)
This method checks for equality.
|
void | fromXML(org.w3c.dom.Node node)
Build itself from one XML representation.
|
java.lang.Number | getNumericKey()
Returns the numericKey.
|
long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
java.lang.String | getPolicyName()
Returns the policyName.
|
StoreKey | getStoreKey()
Returns the storeKey.
|
int | hashCode()
This method returns the hash code.
|
boolean | isNumericKeySet()
Checks to see if the numeric key is set or not.
|
void | setNumericKey(java.lang.Number aNumericKey)
Sets the numericKey.
|
void | setStoreKey(StoreKey aStoreKey)
Sets the storeKey.
|
java.lang.String | toString()
Give a String presentation of this Promotion Policy key.
|
java.lang.String | toXML()
Generate an XML representation for this promotion policy key.
|
public static final java.lang.String TAG_PROMOTION_POLICY_KEY
public static final java.lang.String TAG_PROMOTION_POLICY_NAME
public static final java.lang.String TAG_STORE_NAME
public static final java.lang.String TAG_STORE_OWNER_DN
public PromotionPolicyKey()
public PromotionPolicyKey(StoreKey key, java.lang.String aPolicyName)
public PromotionPolicyKey(org.w3c.dom.Node promotionPolicyKeyNode)
public long getObjectSize()
public java.lang.String getPolicyName()
public boolean equals(java.lang.Object aObject)
public int hashCode()
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException
public java.lang.Number getNumericKey()
public void setNumericKey(java.lang.Number aNumericKey)
public boolean isNumericKeySet()
public StoreKey getStoreKey()
public void setStoreKey(StoreKey aStoreKey)
public java.lang.String toString()