From aeb72fd275806f0bf6db3b92dae6dc5f08e80444 Mon Sep 17 00:00:00 2001 From: Greg Solomon Date: Wed, 11 Sep 2024 10:51:58 -0400 Subject: [PATCH] Update `ClusterService` to use Hoist's `InstanceNotFoundException` class --- CHANGELOG.md | 2 ++ grails-app/services/io/xh/hoist/cluster/ClusterService.groovy | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7e2e8df..0c883f79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### ⚙️ Technical +* Updated `ClusterService` to use Hoist's `InstanceNotFoundException` class to designate routine. + * Exposed `/xh/ping` as whitelisted route for basic uptime/reachability checks. Retained legacy `/ping` alias, but prefer this new path going forward. diff --git a/grails-app/services/io/xh/hoist/cluster/ClusterService.groovy b/grails-app/services/io/xh/hoist/cluster/ClusterService.groovy index ef3ad617..cab63901 100644 --- a/grails-app/services/io/xh/hoist/cluster/ClusterService.groovy +++ b/grails-app/services/io/xh/hoist/cluster/ClusterService.groovy @@ -10,12 +10,11 @@ import com.hazelcast.core.HazelcastInstance import com.hazelcast.core.IExecutorService import io.xh.hoist.BaseService import io.xh.hoist.ClusterConfig +import io.xh.hoist.exception.InstanceNotFoundException import io.xh.hoist.util.Utils import org.springframework.boot.context.event.ApplicationReadyEvent import org.springframework.context.ApplicationListener -import javax.management.InstanceNotFoundException - class ClusterService extends BaseService implements ApplicationListener { /**