public class CorrelationIdentifier extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CorrelationIdentifier.Scope
This enumerated value represents the scope of the correlation identifier.
|
| Constructor and Description |
|---|
CorrelationIdentifier() |
CorrelationIdentifier(CorrelationIdentifier.Scope scope,
String value) |
CorrelationIdentifier(CorrelationIdentifier.Scope scope,
String value,
int duration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDuration() |
CorrelationIdentifier.Scope |
getScope() |
String |
getValue() |
int |
hashCode() |
protected static boolean |
isOverlap(long baseTime1,
int duration1,
long baseTime2,
int duration2)
This method determines whether there is an overlap between the time periods represented by
the two base times and their durations.
|
boolean |
match(long thisBaseTime,
CorrelationIdentifier cid,
long cidBaseTime)
This method determines whether the supplied correlation identifier,
associated with a base time, matches this correlation identifier
associated with its own base time.
|
void |
setDuration(int duration) |
void |
setScope(CorrelationIdentifier.Scope scope) |
void |
setValue(String value) |
String |
toString() |
public CorrelationIdentifier()
public CorrelationIdentifier(CorrelationIdentifier.Scope scope, String value)
public CorrelationIdentifier(CorrelationIdentifier.Scope scope, String value, int duration)
public String getValue()
public void setValue(String value)
value - the value to setpublic CorrelationIdentifier.Scope getScope()
public void setScope(CorrelationIdentifier.Scope scope)
scope - the scope to setpublic int getDuration()
public void setDuration(int duration)
duration - the duration to setpublic boolean match(long thisBaseTime,
CorrelationIdentifier cid,
long cidBaseTime)
thisBaseTime - This correlation id's base timecid - The correlation id to match againstcidBaseTime - The base time of the correlation id to matchprotected static boolean isOverlap(long baseTime1,
int duration1,
long baseTime2,
int duration2)
baseTime1 - Base time 1duration1 - Duration 1baseTime2 - Base time 2duration2 - Duration 2Copyright © 2015 Red Hat, Inc.. All rights reserved.