Class MetadataClient
java.lang.Object
com.netflix.conductor.client.http.MetadataClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTaskDef(String taskType) Retrieve the task definition of a given task typegetWorkflowDef(String name, Integer version) Retrieve the workflow definitionvoidregisterTaskDefs(List<TaskDef> taskDefs) Registers a list of task types with the conductor servervoidregisterWorkflowDef(WorkflowDef workflowDef) Register a workflow definition with the servervoidsetRootURI(String rootUri) Deprecated.voidunregisterTaskDef(String taskType) Removes the task definition of a task type from the conductor server.voidunregisterWorkflowDef(String name, Integer version) Removes the workflow definition of a workflow from the conductor server.voidupdateTaskDef(TaskDef taskDef) Updates an existing task definitionvoidupdateWorkflowDefs(List<WorkflowDef> workflowDefs) Updates a list of existing workflow definitions
-
Constructor Details
-
MetadataClient
public MetadataClient()Creates a default metadata client -
MetadataClient
-
-
Method Details
-
setRootURI
Deprecated.Kept only for backwards compatibility- Parameters:
rootUri- basePath for the ApiClient
-
registerWorkflowDef
Register a workflow definition with the server- Parameters:
workflowDef- the workflow definition
-
updateWorkflowDefs
Updates a list of existing workflow definitions- Parameters:
workflowDefs- List of workflow definitions to be updated
-
getWorkflowDef
Retrieve the workflow definition- Parameters:
name- the name of the workflowversion- the version of the workflow def- Returns:
- Workflow definition for the given workflow and version
-
getAllWorkflowsWithLatestVersions
-
unregisterWorkflowDef
Removes the workflow definition of a workflow from the conductor server. It does not remove associated workflows. Use with caution.- Parameters:
name- Name of the workflow to be unregistered.version- Version of the workflow definition to be unregistered.
-
registerTaskDefs
Registers a list of task types with the conductor server- Parameters:
taskDefs- List of task types to be registered.
-
updateTaskDef
Updates an existing task definition- Parameters:
taskDef- the task definition to be updated
-
getTaskDef
Retrieve the task definition of a given task type- Parameters:
taskType- type of task for which to retrieve the definition- Returns:
- Task Definition for the given task type
-
unregisterTaskDef
Removes the task definition of a task type from the conductor server. Use with caution.- Parameters:
taskType- Task type to be unregistered.
-
getAllTaskDefs
- Returns:
- All the registered task definitions
-