public class SpecificOriginRetentionPolicy extends AbstractOriginRetentionPolicy
OriginRetentionPolicyKind.SPECIFIC. Two specific
retention policies are united by uniting the underlying sets. Instead of calculating the union set,
however, the two policies are chained together using an implicit union/or operator to provide a
higher flexibility.| Modifier | Constructor and Description |
|---|---|
protected |
SpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins) |
| Modifier and Type | Method and Description |
|---|---|
static SpecificOriginRetentionPolicy |
createInstance(java.util.Set<?> selectedOrigins)
Factory method for the specific origin retention policy.
|
boolean |
dependsOn(IOriginRetentionPolicy policy)
Checks whether this origin retention policy depends on the given policy.
|
<T> void |
handleOrigin(AbstractGraphElement<T> element,
T origin)
Handles a given origin for the given graph element.
|
IOriginRetentionPolicy |
uniteWith(IOriginRetentionPolicy other)
Unites this retention policy with another one and returns the resulting policy.
|
getKind, isCompatibleWithprotected SpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins)
public boolean dependsOn(IOriginRetentionPolicy policy)
AbstractOriginRetentionPolicydependsOn in interface IOriginRetentionPolicydependsOn in class AbstractOriginRetentionPolicypolicy - The policy to check for dependenciesTrue if the policy depends on the given policy, false otherwisepublic IOriginRetentionPolicy uniteWith(IOriginRetentionPolicy other)
IOriginRetentionPolicyother - The retention policy to unite this policy withpublic <T> void handleOrigin(AbstractGraphElement<T> element, T origin)
IOriginRetentionPolicyT - The type of the entity within the graph element.element - The graph element to handle the origin fororigin - The origin to handlepublic static SpecificOriginRetentionPolicy createInstance(java.util.Set<?> selectedOrigins)
selectedOrigins - The origins to retainCopyright 2020 Kieker Project, http://kieker-monitoring.net