From a372ce158c9d3a846e2825bbfb8b046d7464a68d Mon Sep 17 00:00:00 2001 From: "chao.he" Date: Wed, 17 Dec 2025 16:13:06 +0800 Subject: [PATCH 1/2] [plugin-premium]: GPU/VM page keeps loading when shutting down or encountering errors in Zaku cluster. Resolves: ZSTAC-80202 Change-Id: I7778676171646874706164777869707279776172 --- .../zql/BeforeCallZWatchExtensionPoint.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java diff --git a/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java b/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java new file mode 100644 index 00000000000..ae634553d8e --- /dev/null +++ b/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java @@ -0,0 +1,23 @@ +package org.zstack.header.zql; + +import java.util.List; + +/** + * BeforeZQLReturnWithExtensionPoint is an extension point that allows plugins + * to perform custom operations before calling zwatch. + */ +public interface BeforeCallZWatchExtensionPoint { + /** + * Check if this extension supports the given VO class + * @param voClass the VO class to check + * @return true if this extension supports the VO class, false otherwise + */ + boolean supports(Class voClass); + + /** + * Perform custom operations before calling ZWatch, for example: health-check + * @param voClass the VO class type + * @param uuids the list of resource UUIDs to process + */ + void beforeCallZWatch(Class voClass, List uuids); +} From 63007bbd400c11ae4439c5f66406d456379a1e13 Mon Sep 17 00:00:00 2001 From: "chao.he" Date: Mon, 12 Jan 2026 13:34:14 +0800 Subject: [PATCH 2/2] [plugin-premium]: GPU/VM page keeps loading when shutting down or encountering errors in Zaku cluster. Resolves: ZSTAC-80202 Change-Id: I7778676171646874706164777869707279776172 --- .../org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java b/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java index ae634553d8e..d0ec90621d6 100644 --- a/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java +++ b/header/src/main/java/org/zstack/header/zql/BeforeCallZWatchExtensionPoint.java @@ -3,7 +3,7 @@ import java.util.List; /** - * BeforeZQLReturnWithExtensionPoint is an extension point that allows plugins + * BeforeCallZWatchExtensionPoint is an extension point that allows plugins * to perform custom operations before calling zwatch. */ public interface BeforeCallZWatchExtensionPoint {