org.apache.flink.types.SerializableOptional Java Examples
The following examples show how to use
org.apache.flink.types.SerializableOptional.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TaskExecutor.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.ofNullable(metricQueryServicePath)); }
Example #2
Source File: TestingTaskExecutorGateway.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.of(address)); }
Example #3
Source File: TaskExecutor.java From flink with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.ofNullable(metricQueryServiceAddress)); }
Example #4
Source File: TestingTaskExecutorGateway.java From flink with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.empty()); }
Example #5
Source File: TaskExecutor.java From flink with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.ofNullable(metricQueryServiceAddress)); }
Example #6
Source File: TestingTaskExecutorGateway.java From flink with Apache License 2.0 | 4 votes |
@Override public CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(Time timeout) { return CompletableFuture.completedFuture(SerializableOptional.empty()); }
Example #7
Source File: TaskExecutorGateway.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Returns the fully qualified address of Metric Query Service on the TaskManager. * * @return Future String with Fully qualified (RPC) address of Metric Query Service on the TaskManager. */ CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(@RpcTimeout Time timeout);
Example #8
Source File: TaskExecutorGateway.java From flink with Apache License 2.0 | 2 votes |
/** * Returns the gateway of Metric Query Service on the TaskManager. * * @return Future gateway of Metric Query Service on the TaskManager. */ CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(@RpcTimeout Time timeout);
Example #9
Source File: TaskExecutorGateway.java From flink with Apache License 2.0 | 2 votes |
/** * Returns the gateway of Metric Query Service on the TaskManager. * * @return Future gateway of Metric Query Service on the TaskManager. */ CompletableFuture<SerializableOptional<String>> requestMetricQueryServiceAddress(@RpcTimeout Time timeout);