public class PromotionPolicyKey extends java.lang.Object implements XMLizable, NumericKey, com.ibm.websphere.cache.Sizeable
StoreKey
and the policy name.
XML Snippet for the PromotionPolicyKey
.
<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)
key
- The StoreKey.aPolicyName
- The name of the promotion policy.public PromotionPolicyKey(org.w3c.dom.Node promotionPolicyKeyNode)
promotionPolicyKeyNode
- The node.public long getObjectSize()
getObjectSize
in interface com.ibm.websphere.cache.Sizeable
public java.lang.String getPolicyName()
public boolean equals(java.lang.Object aObject)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
fromXML
in interface XMLizable
node
- the XML node based on which a promotion policy key will be builtDeXMLizationException
- when parse of this XML to build a promotion key object failspublic java.lang.String toXML() throws XMLizationException
toXML
in interface XMLizable
XMLizationException
- when the XMLization process failsXMLizable.toXML()
public java.lang.Number getNumericKey()
getNumericKey
in interface NumericKey
public void setNumericKey(java.lang.Number aNumericKey)
aNumericKey
- The numericKey to setpublic boolean isNumericKeySet()
NumericKey
isNumericKeySet
in interface NumericKey
NumericKey.isNumericKeySet()
public StoreKey getStoreKey()
public void setStoreKey(StoreKey aStoreKey)
aStoreKey
- The storeKey to setpublic java.lang.String toString()
toString
in class java.lang.Object