All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.flink.configuration.DriverConfigConstants Maven / Gradle / Ivy

/*
 * 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.configuration;
/**
 * Configuration constants for driver mode.
 * */

public class DriverConfigConstants {
	public static final String FLINK_DRIVER_SAVEPOINT_RESTORE_SETTINGS_PATH = "flink.driver.savepointrestoresettings.path";
	public static final String FLINK_DRIVER_SAVEPOINT_RESTORE_SETTINGS_ALLOWNONRESTORESTATE = "flink.driver.savepointrestoresettings.allowNonRestoredState";
	public static final String FLINK_DRIVER_SAVEPOINT_RESTORE_SETTINGS_RESUMEFROMLATESTCHECKPOINT = "flink.driver.savepointrestoresettings.resumeFromLatestCheckpoint";
	public static final String FLINK_DRIVER_PARALLELISM = "flink.driver.parallelism";
	public static final String FLINK_DRIVER_MANAGE_PRIORIRY = "flink.driver.manage.priority";
	public static final String FLINK_DRIVER_IS_DRIVER_KEY = "isDriverMode";

	public static final String FLINK_DRIVER_CPU_CORE_KEY = "DRIVER_CPU_CORE";
	public static final String FLINK_DRIVER_HEAP_MEMORY_KEY = "DRIVER_HEAP_MEMORY";
	public static final String FLINK_DRIVER_DIRECT_MEMORY_KEY = "DRIVER_DIRECT_MEMORY";
	public static final String FLINK_DRIVER_NATIVE_MEMORY_KEY = "DRIVER_NATIVE_MEMORY";

	//the priority of jobs for management in driver dispatcher job failure handling. while the driver job has the highest priority, normal
	//user job has the medium priority and some other daemon job has the lowest.
	public static final int FLINK_DRIVER_MANAGE_PRIORITY_DRIVER = 0;
	public static final int FLINK_DRIVER_MANAGE_PRIORITY_NORMAL = 1;
	public static final int FLINK_DRIVER_MANAGE_PRIORITY_DAEMON = 2;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy