com.netflix.conductor.common.metadata.tasks.Task.setExternalOutputPayloadStoragePath()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中com.netflix.conductor.common.metadata.tasks.Task.setExternalOutputPayloadStoragePath()方法的一些代码示例,展示了Task.setExternalOutputPayloadStoragePath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.setExternalOutputPayloadStoragePath()方法的具体详情如下:
包路径:com.netflix.conductor.common.metadata.tasks.Task
类名称:Task
方法名:setExternalOutputPayloadStoragePath

Task.setExternalOutputPayloadStoragePath介绍

暂无

代码示例

代码示例来源:origin: Netflix/conductor

task.setOutputData(externalPayloadStorageUtils.downloadPayload(task.getExternalOutputPayloadStoragePath()));
Monitors.recordExternalPayloadStorageUsage(task.getTaskDefName(), ExternalPayloadStorage.Operation.READ.toString(), ExternalPayloadStorage.PayloadType.TASK_OUTPUT.toString());
task.setExternalOutputPayloadStoragePath(null);

代码示例来源:origin: Netflix/conductor

Task task = new Task();
task.setExternalInputPayloadStoragePath(taskInputPath);
task.setExternalOutputPayloadStoragePath(taskOutputPath);
Workflow workflow = new Workflow();
workflow.setExternalInputPayloadStoragePath(workflowInputPath);

代码示例来源:origin: Netflix/conductor

to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );
to.setExternalOutputPayloadStoragePath( from.getExternalOutputPayloadStoragePath() );
return to;

代码示例来源:origin: Netflix/conductor

case TASK_OUTPUT:
  ((Task) entity).setOutputData(null);
  ((Task) entity).setExternalOutputPayloadStoragePath(uploadHelper(payloadBytes, payloadSize, PayloadType.TASK_OUTPUT));
  Monitors.recordExternalPayloadStorageUsage(((Task) entity).getTaskDefName(), ExternalPayloadStorage.Operation.WRITE.toString(), PayloadType.TASK_OUTPUT.toString());
  break;

代码示例来源:origin: Netflix/conductor

task.setExternalOutputPayloadStoragePath(taskResult.getExternalOutputPayloadStoragePath());
  task.setReasonForIncompletion(taskResult.getReasonForIncompletion());
  task.setWorkerId(taskResult.getWorkerId());
task.setOutputData(taskResult.getOutputData());
task.setOutputMessage(taskResult.getOutputMessage());
task.setExternalOutputPayloadStoragePath(taskResult.getExternalOutputPayloadStoragePath());
task.setReasonForIncompletion(taskResult.getReasonForIncompletion());
task.setWorkerId(taskResult.getWorkerId());

代码示例来源:origin: Netflix/conductor

public Task copy() {
  Task copy = new Task();
  copy.setCallbackAfterSeconds(callbackAfterSeconds);
  copy.setCallbackFromWorker(callbackFromWorker);
  copy.setCorrelationId(correlationId);
  copy.setInputData(inputData);
  copy.setOutputData(outputData);
  copy.setReferenceTaskName(referenceTaskName);
  copy.setStartDelayInSeconds(startDelayInSeconds);
  copy.setTaskDefName(taskDefName);
  copy.setTaskType(taskType);
  copy.setWorkflowInstanceId(workflowInstanceId);
  copy.setWorkflowType(workflowType);
  copy.setResponseTimeoutSeconds(responseTimeoutSeconds);
  copy.setStatus(status);
  copy.setRetryCount(retryCount);
  copy.setPollCount(pollCount);
  copy.setTaskId(taskId);
  copy.setWorkflowTask(workflowTask);
  copy.setDomain(domain);
  copy.setInputMessage(inputMessage);
  copy.setOutputMessage(outputMessage);
  copy.setRateLimitPerFrequency(rateLimitPerFrequency);
  copy.setRateLimitFrequencyInSeconds(rateLimitFrequencyInSeconds);
  copy.setExternalInputPayloadStoragePath(externalInputPayloadStoragePath);
  copy.setExternalOutputPayloadStoragePath(externalOutputPayloadStoragePath);
  return copy;
}

代码示例来源:origin: Netflix/conductor

task.setExternalOutputPayloadStoragePath(taskOutputPath);
task.setStatus(COMPLETED);
workflowExecutionService.updateTask(task);

代码示例来源:origin: Netflix/conductor

task.setExternalOutputPayloadStoragePath(taskOutputPath);
task.setStatus(COMPLETED);
workflowExecutionService.updateTask(task);

代码示例来源:origin: com.netflix.conductor/conductor-core

task.setOutputData(externalPayloadStorageUtils.downloadPayload(task.getExternalOutputPayloadStoragePath()));
Monitors.recordExternalPayloadStorageUsage(task.getTaskDefName(), ExternalPayloadStorage.Operation.READ.toString(), ExternalPayloadStorage.PayloadType.TASK_OUTPUT.toString());
task.setExternalOutputPayloadStoragePath(null);

代码示例来源:origin: com.netflix.conductor/conductor-grpc

to.setRateLimitFrequencyInSeconds( from.getRateLimitFrequencyInSeconds() );
to.setExternalInputPayloadStoragePath( from.getExternalInputPayloadStoragePath() );
to.setExternalOutputPayloadStoragePath( from.getExternalOutputPayloadStoragePath() );
return to;

代码示例来源:origin: com.netflix.conductor/conductor-core

case TASK_OUTPUT:
  ((Task) entity).setOutputData(null);
  ((Task) entity).setExternalOutputPayloadStoragePath(uploadHelper(payloadBytes, payloadSize, PayloadType.TASK_OUTPUT));
  Monitors.recordExternalPayloadStorageUsage(((Task) entity).getTaskDefName(), ExternalPayloadStorage.Operation.WRITE.toString(), PayloadType.TASK_OUTPUT.toString());
  break;

代码示例来源:origin: com.netflix.conductor/conductor-core

task.setExternalOutputPayloadStoragePath(taskResult.getExternalOutputPayloadStoragePath());
  task.setReasonForIncompletion(taskResult.getReasonForIncompletion());
  task.setWorkerId(taskResult.getWorkerId());
task.setOutputData(taskResult.getOutputData());
task.setOutputMessage(taskResult.getOutputMessage());
task.setExternalOutputPayloadStoragePath(taskResult.getExternalOutputPayloadStoragePath());
task.setReasonForIncompletion(taskResult.getReasonForIncompletion());
task.setWorkerId(taskResult.getWorkerId());

代码示例来源:origin: com.netflix.conductor/conductor-common

public Task copy() {
  Task copy = new Task();
  copy.setCallbackAfterSeconds(callbackAfterSeconds);
  copy.setCallbackFromWorker(callbackFromWorker);
  copy.setCorrelationId(correlationId);
  copy.setInputData(inputData);
  copy.setOutputData(outputData);
  copy.setReferenceTaskName(referenceTaskName);
  copy.setStartDelayInSeconds(startDelayInSeconds);
  copy.setTaskDefName(taskDefName);
  copy.setTaskType(taskType);
  copy.setWorkflowInstanceId(workflowInstanceId);
  copy.setWorkflowType(workflowType);
  copy.setResponseTimeoutSeconds(responseTimeoutSeconds);
  copy.setStatus(status);
  copy.setRetryCount(retryCount);
  copy.setPollCount(pollCount);
  copy.setTaskId(taskId);
  copy.setWorkflowTask(workflowTask);
  copy.setDomain(domain);
  copy.setInputMessage(inputMessage);
  copy.setOutputMessage(outputMessage);
  copy.setRateLimitPerFrequency(rateLimitPerFrequency);
  copy.setRateLimitFrequencyInSeconds(rateLimitFrequencyInSeconds);
  copy.setExternalInputPayloadStoragePath(externalInputPayloadStoragePath);
  copy.setExternalOutputPayloadStoragePath(externalOutputPayloadStoragePath);
  return copy;
}

相关文章

Task类方法