Skip to content

Commit

Permalink
Updating java docs for stats classes
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <sagar.upadhyaya.121@gmail.com>
  • Loading branch information
sgup432 committed Jun 7, 2023
1 parent 51f4369 commit ee0d61a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import java.io.IOException;
import java.util.Objects;

/**
* Holds monitoring service stats specific to search shard task.
*/
public class SearchShardTaskCancellationStats implements ToXContentObject, Writeable {

private final long currentLongRunningCancelledTaskCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ private Map<Class<? extends CancellableTask>, List<CancellableTask>> getCurrentR
.collect(Collectors.groupingBy(CancellableTask::getClass, Collectors.toList()));
}

/**
* Holds stats related to monitoring service
*/
public static class TaskCancellationStatsHolder {
CounterMetric totalLongRunningCancelledTaskCount = new CounterMetric();
}
Expand Down

0 comments on commit ee0d61a

Please sign in to comment.