|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DefaultDisambiguationUpdateStrategies>
org.rhq.enterprise.server.resource.disambiguation.DefaultDisambiguationUpdateStrategies
public enum DefaultDisambiguationUpdateStrategies
This enumerates different strategies that can be used to update the results to produce disambiguated list.
| Enum Constant Summary | |
|---|---|
EXACT
The disambiguation policy is followed precisely. |
|
KEEP_ALL_PARENTS
All parents are preserved no matter what the policy says. |
|
KEEP_AT_LEAST_ONE_PARENT
Even if the disambiguation policy determined that parents are not needed to disambiguate the results, at least one of them is kept in the report. |
|
KEEP_PARENTS_TO_TOPMOST_SERVERS
The parentage of the report is retained at least up to the server/service directly under platform. |
|
| Method Summary | ||
|---|---|---|
EnumSet<ResourceResolution> |
alwaysRepartitionableResolutions()
|
|
static DefaultDisambiguationUpdateStrategies |
getDefault()
|
|
EnumSet<ResourceResolution> |
resourceLevelRepartitionableResolutions()
|
|
static
|
updateResources(DisambiguationPolicy policy,
MutableDisambiguationReport<T> report,
boolean honorAmbiguousTypeNamesList,
boolean pushDownPluginInfo)
This updates the resources in the report according to the resolutions contained in the policy. |
|
static DefaultDisambiguationUpdateStrategies |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static DefaultDisambiguationUpdateStrategies[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
|
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.rhq.enterprise.server.resource.disambiguation.DisambiguationUpdateStrategy |
|---|
partitionFurther, update |
| Enum Constant Detail |
|---|
public static final DefaultDisambiguationUpdateStrategies EXACT
public static final DefaultDisambiguationUpdateStrategies KEEP_AT_LEAST_ONE_PARENT
public static final DefaultDisambiguationUpdateStrategies KEEP_PARENTS_TO_TOPMOST_SERVERS
public static final DefaultDisambiguationUpdateStrategies KEEP_ALL_PARENTS
| Method Detail |
|---|
public static DefaultDisambiguationUpdateStrategies[] values()
for (DefaultDisambiguationUpdateStrategies c : DefaultDisambiguationUpdateStrategies.values()) System.out.println(c);
public static DefaultDisambiguationUpdateStrategies valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public static <T> void updateResources(DisambiguationPolicy policy,
MutableDisambiguationReport<T> report,
boolean honorAmbiguousTypeNamesList,
boolean pushDownPluginInfo)
DisambiguationUpdateStrategy.update(DisambiguationPolicy, MutableDisambiguationReport)
implementations in this enum before the individual enums modify the parent list as they see fit.
This method is left public because it is generic enough to be reused by other potential implementations of the
DisambiguationUpdateStrategy interface.
T - policy - report - honorAmbiguousTypeNamesList - whether to honor the list of ambiguous type names as listed in the policy when updating the resources.pushDownPluginInfo - if true, the plugin information is pushed down as low in the resource hierarchy as possible. This means that if
some parent needs plugin disambiguation or is of an ambiguous type and the resource comes from the same plugin, the plugin info is preserved
on the resource rather than on the parent. This is mainly useful for the display purposes, because it just
looks nicer to have that info at a resource than somewhere in the location string.public EnumSet<ResourceResolution> resourceLevelRepartitionableResolutions()
resourceLevelRepartitionableResolutions in interface DisambiguationUpdateStrategypublic EnumSet<ResourceResolution> alwaysRepartitionableResolutions()
alwaysRepartitionableResolutions in interface DisambiguationUpdateStrategyresourceLevelRepartitionableResolutions().public static DefaultDisambiguationUpdateStrategies getDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||