@Bean public TaskOperations taskOperations(DataFlowOperations dataFlowOperations) { return dataFlowOperations.taskOperations(); }
/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { this.client.streamOperations().destroy(this.name); }
private AggregateCounterOperations aggregateCounterOperations() { return dataFlowShell.getDataFlowOperations().aggregateCounterOperations(); }
switch (opsType) { case AGGREGATE_COUNTER: operationsAvailable = this.dataFlowOperations.aggregateCounterOperations() != null; break; case APP_REGISTRY: operationsAvailable = this.dataFlowOperations.appRegistryOperations() != null; break; case COMPLETION: operationsAvailable = this.dataFlowOperations.completionOperations() != null; break; case COUNTER: operationsAvailable = this.dataFlowOperations.counterOperations() != null; break; case FIELD_VALUE_COUNTER: operationsAvailable = this.dataFlowOperations.fieldValueCounterOperations() != null; break; case JOB: operationsAvailable = this.dataFlowOperations.jobOperations() != null; break; case RUNTIME: operationsAvailable = this.dataFlowOperations.runtimeOperations() != null; break; case STREAM: operationsAvailable = this.dataFlowOperations.streamOperations() != null; break; case TASK: operationsAvailable = this.dataFlowOperations.taskOperations() != null; break; default:
protected AppRegistryOperations appRegistryOperations() { return dataFlowShell.getDataFlowOperations().appRegistryOperations(); }
private JobOperations jobOperations() { return dataFlowShell.getDataFlowOperations().jobOperations(); }
private CounterOperations counterOperations() { return dataFlowShell.getDataFlowOperations().counterOperations(); }
private FieldValueCounterOperations fvcOperations() { return dataFlowShell.getDataFlowOperations().fieldValueCounterOperations(); }
private DataFlowMode getServerDataFlowMode() { if (shell.getDataFlowOperations() == null || shell.getDataFlowOperations().aboutOperation() == null) { throw new IllegalStateException("If the server is available the about operation should be present"); } if (shell.getDataFlowOperations().aboutOperation().get().getFeatureInfo().isSkipperEnabled()) { return DataFlowMode.skipper; } return DataFlowMode.classic; }
private CompletionOperations completionOperations() { return dataFlowShell.getDataFlowOperations().completionOperations(); }
switch (opsType) { case AGGREGATE_COUNTER: operationsAvailable = this.dataFlowOperations.aggregateCounterOperations() != null; break; case APP_REGISTRY: operationsAvailable = this.dataFlowOperations.appRegistryOperations() != null; break; case COMPLETION: operationsAvailable = this.dataFlowOperations.completionOperations() != null; break; case COUNTER: operationsAvailable = this.dataFlowOperations.counterOperations() != null; break; case FIELD_VALUE_COUNTER: operationsAvailable = this.dataFlowOperations.fieldValueCounterOperations() != null; break; case JOB: operationsAvailable = this.dataFlowOperations.jobOperations() != null; break; case RUNTIME: operationsAvailable = this.dataFlowOperations.runtimeOperations() != null; break; case STREAM: operationsAvailable = this.dataFlowOperations.streamOperations() != null; break; case TASK: operationsAvailable = this.dataFlowOperations.taskOperations() != null; break; default:
protected AppRegistryOperations appRegistryOperations() { return dataFlowShell.getDataFlowOperations().appRegistryOperations(); }
private JobOperations jobOperations() { return dataFlowShell.getDataFlowOperations().jobOperations(); }
private CounterOperations counterOperations() { return dataFlowShell.getDataFlowOperations().counterOperations(); }
private FieldValueCounterOperations fieldValueCounterOperations() { return dataFlowShell.getDataFlowOperations().fieldValueCounterOperations(); }
throw new DataFlowServerException(this.targetHolder.getTarget().getTargetResultMessage()); AboutResource about = this.shell.getDataFlowOperations().aboutOperation().get();
private CompletionOperations completionOperations() { return dataFlowShell.getDataFlowOperations().completionOperations(); }
/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { client.streamOperations().destroy(this.name); }
private TaskOperations taskOperations() { return dataFlowShell.getDataFlowOperations().taskOperations(); } }
@Override public boolean getAllPossibleValues(List<Completion> completions, Class<?> targetType, String existingData, String optionContext, MethodTarget target) { for (AppRegistrationResource app : dataFlowShell.getDataFlowOperations().appRegistryOperations().list()) { String value = app.getType() + ":" + app.getName(); completions.add(new Completion(value, app.getName(), pretty(app.getType()), 0)); } return true; }