|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.survivor.impl.DefaultSurvivorStrategy
Default survivor strategy class. Selects the field from the system specified in the initialization parameter
Constructor Summary | |
DefaultSurvivorStrategy()
Creates new MySurvivalStrategy |
Method Summary | |
java.lang.Object |
clone()
|
void |
init(java.util.Collection parameters)
|
SystemField |
selectField(java.lang.String candidateId,
SystemFieldListMap fields)
Selects the field from the system specified in the initialization parameter |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSurvivorStrategy()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface SurvivorStrategyInterface
java.lang.CloneNotSupportedException
- cloning is not supportedpublic void init(java.util.Collection parameters) throws StrategyCreationException
SurvivorStrategyInterface
init
in interface SurvivorStrategyInterface
parameters
- The parameters given in the Best Record configuration file.
void
- None.
StrategyCreationException
- Thrown if the strategy cannot be
initialized.SurvivorStrategyInterface.selectField(java.lang.String, com.sun.mdm.index.survivor.SystemFieldListMap)
public SystemField selectField(java.lang.String candidateId, SystemFieldListMap fields) throws SurvivorCalculationException
selectField
in interface SurvivorStrategyInterface
candidateId
- The candidate field name.fields
- The mapping of a system fields list to a system key.
SystemField
- The value of the field that has been
selected to populate the SBR. This method returns
null if the new value cannot be determined and the original
candidate value should be used.
SurvivorCalculationException
- Thrown if there is an error
with the calculation configuration.SurvivorStrategyInterface.selectField(java.lang.String, com.sun.mdm.index.survivor.SystemFieldListMap)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.