public class TrackedFinding extends IndexFinding implements java.io.Serializable, java.lang.Comparable<TrackedFinding>
DetachedFinding
by additional
attributes that are calculated via tracking.
This class is used for communication with IDE clients (via the
org.conqat.engine.service.shared.client.IdeServiceClient
), so special
care has to be taken when changing its signature!Modifier and Type | Class and Description |
---|---|
static class |
TrackedFinding.TrackedFindingComparator
A basic comparator used for TrackedFindings.
|
NO_TIMESTAMP, STABLE_INDEX_FINDING_COMPARATOR, TYPE_ID_SEPARATOR
CATEGORY_NAME_PROPERTY, GROUP_NAME_PROPERTY, LOCATION_PROPERTY, MESSAGE_PROPERTY
Modifier | Constructor and Description |
---|---|
|
TrackedFinding(IndexFinding finding,
java.lang.String id,
CommitDescriptor birthCommit,
java.lang.String findingIndexPartition) |
|
TrackedFinding(IndexFinding finding,
java.lang.String id,
CommitDescriptor birth,
java.lang.String findingIndexPartition,
CommitDescriptor death) |
|
TrackedFinding(java.lang.String groupName,
java.lang.String categoryName,
java.lang.String message,
ElementLocation location,
java.lang.String id,
CommitDescriptor birthCommit,
CommitDescriptor deathCommit) |
protected |
TrackedFinding(TrackedFinding other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TrackedFinding other) |
boolean |
equals(java.lang.Object obj) |
CommitDescriptor |
getBirthCommit()
Returns the birth commit.
|
CommitDescriptor |
getDeathCommit()
Returns the death commit (or null for findings that are still alive).
|
java.lang.String |
getFindingIndexPartition()
Returns the partition in the findings index of this finding.
|
java.lang.String |
getId()
Returns the id of this finding.
|
java.lang.String |
getQualifiedGroupName()
Returns the qualified group name, i.e.
|
int |
hashCode() |
boolean |
isAlive()
Returns whether this finding is still alive.
|
void |
setDeathCommit(CommitDescriptor death)
Sets the death commit.
|
void |
setId(java.lang.String id) |
asRealtimeFinding, getAnalysisTimestamp, getTypeId, isRealTime, makeFindingTypeId, setAnalysisTimestamp
addSecondaryLocation, addSecondaryLocations, addSiblingFinding, addSiblingFindings, addSiblingLocation, addSiblingLocations, getAssessment, getCategoryName, getGroupName, getLocation, getLocationString, getMessage, getProperties, getSecondaryLocations, getSiblingLocations, getStatementPath, hasSiblings, removeMatchingSiblingLocations, setAssessment, setCategoryName, setGroupName, setLocation, setMessage, setProperty, setStatementPath, toString
public TrackedFinding(IndexFinding finding, java.lang.String id, CommitDescriptor birthCommit, java.lang.String findingIndexPartition)
public TrackedFinding(IndexFinding finding, java.lang.String id, CommitDescriptor birth, java.lang.String findingIndexPartition, CommitDescriptor death)
protected TrackedFinding(TrackedFinding other)
public TrackedFinding(java.lang.String groupName, java.lang.String categoryName, java.lang.String message, ElementLocation location, java.lang.String id, CommitDescriptor birthCommit, CommitDescriptor deathCommit)
public java.lang.String getId()
public void setId(java.lang.String id)
public CommitDescriptor getBirthCommit()
public java.lang.String getFindingIndexPartition()
public CommitDescriptor getDeathCommit()
public void setDeathCommit(CommitDescriptor death)
null
to indicate that it is still
alive.public boolean isAlive()
public int compareTo(TrackedFinding other)
Sorts by ID.
compareTo
in interface java.lang.Comparable<TrackedFinding>
public java.lang.String getQualifiedGroupName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object