Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.zstack.header.zql;

import java.util.List;

/**
* BeforeCallZWatchExtensionPoint 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<String> uuids);
}