public class MetadataClient extends ClientBase
client, conductorClientConfiguration, objectMapper, payloadStorage, root| Constructor and Description |
|---|
MetadataClient()
Creates a default metadata client
|
MetadataClient(com.sun.jersey.api.client.config.ClientConfig clientConfig) |
MetadataClient(com.sun.jersey.api.client.config.ClientConfig clientConfig,
com.sun.jersey.api.client.ClientHandler clientHandler) |
MetadataClient(com.sun.jersey.api.client.config.ClientConfig config,
com.sun.jersey.api.client.ClientHandler handler,
com.sun.jersey.api.client.filter.ClientFilter... filters) |
MetadataClient(com.sun.jersey.api.client.config.ClientConfig config,
ConductorClientConfiguration clientConfiguration,
com.sun.jersey.api.client.ClientHandler handler,
com.sun.jersey.api.client.filter.ClientFilter... filters) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.netflix.conductor.common.metadata.tasks.TaskDef> |
getAllTaskDefs()
Deprecated.
This API is deprecated and will be removed in the next version
This API can return 503 for a large number of workflow definitions because of no pagination.
|
java.util.List<com.netflix.conductor.common.metadata.workflow.WorkflowDef> |
getAllWorkflowDefs()
Deprecated.
This API is deprecated and will be removed in the next version
This API can return 503 for a large number of workflow definitions because of no pagination.
|
com.netflix.conductor.common.metadata.tasks.TaskDef |
getTaskDef(java.lang.String taskType)
Retrieve the task definition of a given task type
|
com.netflix.conductor.common.metadata.workflow.WorkflowDef |
getWorkflowDef(java.lang.String name,
java.lang.Integer version)
Retrieve the workflow definition
|
void |
registerTaskDefs(java.util.List<com.netflix.conductor.common.metadata.tasks.TaskDef> taskDefs)
Registers a list of task types with the conductor server
|
void |
registerWorkflowDef(com.netflix.conductor.common.metadata.workflow.WorkflowDef workflowDef)
Register a workflow definition with the server
|
void |
unregisterTaskDef(java.lang.String taskType)
Removes the task definition of a task type from the conductor server.
|
void |
unregisterWorkflowDef(java.lang.String name,
java.lang.Integer version)
Removes the workflow definition of a workflow from the conductor server.
|
void |
updateTaskDef(com.netflix.conductor.common.metadata.tasks.TaskDef taskDef)
Updates an existing task definition
|
void |
updateWorkflowDefs(java.util.List<com.netflix.conductor.common.metadata.workflow.WorkflowDef> workflowDefs)
Updates a list of existing workflow definitions
|
delete, delete, downloadFromExternalStorage, postForEntity, postForEntity, postForEntityWithRequestOnly, postForEntityWithUriVariablesOnly, put, setRootURI, uploadToExternalPayloadStoragepublic MetadataClient()
public MetadataClient(com.sun.jersey.api.client.config.ClientConfig clientConfig)
clientConfig - REST Client configurationpublic MetadataClient(com.sun.jersey.api.client.config.ClientConfig clientConfig,
com.sun.jersey.api.client.ClientHandler clientHandler)
clientConfig - REST Client configurationclientHandler - Jersey client handler. Useful when plugging in various http client interaction modules (e.g. ribbon)public MetadataClient(com.sun.jersey.api.client.config.ClientConfig config,
com.sun.jersey.api.client.ClientHandler handler,
com.sun.jersey.api.client.filter.ClientFilter... filters)
config - config REST Client configurationhandler - handler Jersey client handler. Useful when plugging in various http client interaction modules (e.g. ribbon)filters - Chain of client side filters to be applied per requestpublic MetadataClient(com.sun.jersey.api.client.config.ClientConfig config,
ConductorClientConfiguration clientConfiguration,
com.sun.jersey.api.client.ClientHandler handler,
com.sun.jersey.api.client.filter.ClientFilter... filters)
config - REST Client configurationclientConfiguration - Specific properties configured for the client, see ConductorClientConfigurationhandler - Jersey client handler. Useful when plugging in various http client interaction modules (e.g. ribbon)filters - Chain of client side filters to be applied per requestpublic void registerWorkflowDef(com.netflix.conductor.common.metadata.workflow.WorkflowDef workflowDef)
workflowDef - the workflow definitionpublic void updateWorkflowDefs(java.util.List<com.netflix.conductor.common.metadata.workflow.WorkflowDef> workflowDefs)
workflowDefs - List of workflow definitions to be updatedpublic com.netflix.conductor.common.metadata.workflow.WorkflowDef getWorkflowDef(java.lang.String name,
java.lang.Integer version)
name - the name of the workflowversion - the version of the workflow def@Deprecated public java.util.List<com.netflix.conductor.common.metadata.workflow.WorkflowDef> getAllWorkflowDefs()
public void unregisterWorkflowDef(java.lang.String name,
java.lang.Integer version)
name - Name of the workflow to be unregistered.version - Version of the workflow definition to be unregistered.public void registerTaskDefs(java.util.List<com.netflix.conductor.common.metadata.tasks.TaskDef> taskDefs)
taskDefs - List of task types to be registered.public void updateTaskDef(com.netflix.conductor.common.metadata.tasks.TaskDef taskDef)
taskDef - the task definition to be updated@Deprecated public java.util.List<com.netflix.conductor.common.metadata.tasks.TaskDef> getAllTaskDefs()
public com.netflix.conductor.common.metadata.tasks.TaskDef getTaskDef(java.lang.String taskType)
taskType - type of task for which to retrieve the definitionpublic void unregisterTaskDef(java.lang.String taskType)
taskType - Task type to be unregistered.