Skip to content

Commit ca993a1

Browse files
Deprecating Redundant and duplicated API and package. Refactor with the other package.
Signed-off-by: rithin-pullela-aws <[email protected]>
1 parent 3f5ea3b commit ca993a1

File tree

14 files changed

+9
-951
lines changed

14 files changed

+9
-951
lines changed

src/main/java/com/o19s/es/ltr/action/TransportLTRStatsAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import com.o19s.es.ltr.action.LTRStatsAction.LTRStatsNodeResponse;
2121
import com.o19s.es.ltr.action.LTRStatsAction.LTRStatsNodesRequest;
2222
import com.o19s.es.ltr.action.LTRStatsAction.LTRStatsNodesResponse;
23-
import com.o19s.es.ltr.stats.LTRStats;
23+
import org.opensearch.ltr.stats.LTRStats;
2424
import org.opensearch.action.FailedNodeException;
2525
import org.opensearch.action.support.ActionFilters;
2626
import org.opensearch.action.support.nodes.TransportNodesAction;
@@ -63,7 +63,7 @@ protected LTRStatsNodesResponse newResponse(LTRStatsNodesRequest request,
6363
.entrySet()
6464
.stream()
6565
.filter(e -> statsToBeRetrieved.contains(e.getKey()))
66-
.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().getStatValue()));
66+
.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().getValue()));
6767

6868
return new LTRStatsNodesResponse(clusterService.getClusterName(), nodeResponses, failures, clusterStats);
6969
}
@@ -88,7 +88,7 @@ protected LTRStatsNodeResponse nodeOperation(LTRStatsNodeRequest request) {
8888
.entrySet()
8989
.stream()
9090
.filter(e -> statsToBeRetrieved.contains(e.getKey()))
91-
.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().getStatValue()));
91+
.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().getValue()));
9292
return new LTRStatsNodeResponse(clusterService.localNode(), statValues);
9393
}
9494
}

src/main/java/com/o19s/es/ltr/rest/RestLTRStats.java

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/main/java/com/o19s/es/ltr/stats/LTRStat.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/main/java/com/o19s/es/ltr/stats/LTRStats.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/main/java/com/o19s/es/ltr/stats/StatName.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/main/java/com/o19s/es/ltr/stats/suppliers/CacheStatsOnNodeSupplier.java

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)