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 { /**