This is an automated email from the ASF dual-hosted git repository. xtsong pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 14707742d241eadf6d43bbad503db9e9898a8fea Author: Yuxin Tan <[email protected]> AuthorDate: Mon May 8 13:48:30 2023 +0800 [FLINK-31635][network] Introduce the tiered storage configuration --- .../tiered/common/TieredStorageConfiguration.java | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/common/TieredStorageConfiguration.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/common/TieredStorageConfiguration.java new file mode 100644 index 00000000000..185c267bd6f --- /dev/null +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/common/TieredStorageConfiguration.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.flink.runtime.io.network.partition.hybrid.tiered.common; + +import org.apache.flink.configuration.Configuration; + +/** Configurations for the Tiered Storage. */ +public class TieredStorageConfiguration { + + public static TieredStorageConfiguration.Builder builder() { + return new TieredStorageConfiguration.Builder(); + } + + /** Builder for {@link TieredStorageConfiguration}. */ + public static class Builder { + public TieredStorageConfiguration build() { + return new TieredStorageConfiguration(); + } + } + + public static TieredStorageConfiguration fromConfiguration(Configuration conf) { + // TODO, from the configuration, get the configured options(i.e., remote storage path, the + // reserved storage size, etc.), then set them to the builder. + return new TieredStorageConfiguration.Builder().build(); + } +}
