From 57870972f152867c93f70b539ecb90660a852b1e Mon Sep 17 00:00:00 2001 From: NotedSalmon Date: Mon, 22 Jul 2024 10:11:40 +0100 Subject: [PATCH 1/2] FISH-8887 new REST endpoint with correct spelling. --- .../nucleus/hazelcast/admin/ClearCache.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java index e532e9e31b1..bb2c9855727 100644 --- a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java +++ b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) [2016-2023] Payara Foundation and/or its affiliates. All rights reserved. + * Copyright (c) [2016-2024] Payara Foundation and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -75,10 +75,15 @@ @ExecuteOn(RuntimeType.INSTANCE) @TargetType(value = {CommandTarget.DAS, CommandTarget.STANDALONE_INSTANCE, CommandTarget.CLUSTER, CommandTarget.CLUSTERED_INSTANCE, CommandTarget.CONFIG, CommandTarget.DEPLOYMENT_GROUP}) @RestEndpoints({ - @RestEndpoint(configBean = Domain.class, - opType = RestEndpoint.OpType.GET, - path = "lclear-cache", - description = "Clears a JCache or Hazalcast IMap") + @RestEndpoint(configBean = Domain.class, + opType = RestEndpoint.OpType.GET, + path = "clear-cache", + description = "Clears a JCache or Hazalcast IMap"), + @RestEndpoint(configBean = Domain.class, + opType = RestEndpoint.OpType.GET, + path = "lclear-cache", + description = "Clears a JCache or Hazalcast IMap") + }) public class ClearCache implements AdminCommand { From bd7156e0b0fbc76ab70c8ce71679574f7c97a4c4 Mon Sep 17 00:00:00 2001 From: Flavio <94856026+NotedSalmon@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:08:38 +0100 Subject: [PATCH 2/2] Implemented the review change to drop the lcache endpoint Co-authored-by: Andrew Pielage --- .../java/fish/payara/nucleus/hazelcast/admin/ClearCache.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java index bb2c9855727..f5c24588eb5 100644 --- a/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java +++ b/nucleus/payara-modules/hazelcast-bootstrap/src/main/java/fish/payara/nucleus/hazelcast/admin/ClearCache.java @@ -78,12 +78,7 @@ @RestEndpoint(configBean = Domain.class, opType = RestEndpoint.OpType.GET, path = "clear-cache", - description = "Clears a JCache or Hazalcast IMap"), - @RestEndpoint(configBean = Domain.class, - opType = RestEndpoint.OpType.GET, - path = "lclear-cache", description = "Clears a JCache or Hazalcast IMap") - }) public class ClearCache implements AdminCommand {