T - The type of RefreshHandler used by specific WorkflowScheduler to
locate the refresh workflow in scheduler service.@PublicEvolving
public interface WorkflowScheduler<T extends RefreshHandler>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this workflow scheduler when it is no longer needed and release any resource that it
might be holding.
|
T |
createRefreshWorkflow(CreateRefreshWorkflow createRefreshWorkflow)
Create a refresh workflow in specific scheduler service for the materialized table, return a
RefreshHandler instance which can locate the refresh workflow detail information. |
void |
deleteRefreshWorkflow(DeleteRefreshWorkflow<T> deleteRefreshWorkflow)
Delete the refresh workflow in scheduler service.
|
RefreshHandlerSerializer<T> |
getRefreshHandlerSerializer()
Return a
RefreshHandlerSerializer instance to serialize and deserialize RefreshHandler created by specific workflow scheduler service. |
void |
modifyRefreshWorkflow(ModifyRefreshWorkflow<T> modifyRefreshWorkflow)
Modify the refresh workflow status in scheduler service.
|
void |
open()
Open this workflow scheduler instance.
|
void open() throws WorkflowException
WorkflowException - if initializing workflow scheduler occur exceptionvoid close()
throws WorkflowException
WorkflowException - if closing the related resources of workflow scheduler failedRefreshHandlerSerializer<T> getRefreshHandlerSerializer()
RefreshHandlerSerializer instance to serialize and deserialize RefreshHandler created by specific workflow scheduler service.T createRefreshWorkflow(CreateRefreshWorkflow createRefreshWorkflow) throws WorkflowException
RefreshHandler instance which can locate the refresh workflow detail information.
This method supports creating workflow for periodic refresh, as well as workflow for a one-time refresh only.
createRefreshWorkflow - The detail info for create refresh workflow of materialized
table.WorkflowException - if creating refresh workflow failedvoid modifyRefreshWorkflow(ModifyRefreshWorkflow<T> modifyRefreshWorkflow) throws WorkflowException
modifyRefreshWorkflow - The detail info for modify refresh workflow of materialized
table.WorkflowException - if modify refresh workflow failedvoid deleteRefreshWorkflow(DeleteRefreshWorkflow<T> deleteRefreshWorkflow) throws WorkflowException
deleteRefreshWorkflow - The detail info for delete refresh workflow of materialized
table.WorkflowException - if delete refresh workflow failedCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.