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

org.apache.flink.table.client.cli.CliOptions Maven / Gradle / Ivy

Go to download

There is a newer version: 2.0-preview1
Show newest version
/*
 * 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.table.client.cli;

import java.net.URL;
import java.util.List;

/**
 * Command line options to configure the SQL client. Arguments that have not been specified
 * by the user are null.
 */
public class CliOptions {

	private final boolean isPrintHelp;
	private final String sessionId;
	private final URL environment;
	private final URL defaults;
	private final List jars;
	private final List libraryDirs;

	public CliOptions(boolean isPrintHelp, String sessionId, URL environment, URL defaults, List jars, List libraryDirs) {
		this.isPrintHelp = isPrintHelp;
		this.sessionId = sessionId;
		this.environment = environment;
		this.defaults = defaults;
		this.jars = jars;
		this.libraryDirs = libraryDirs;
	}

	public boolean isPrintHelp() {
		return isPrintHelp;
	}

	public String getSessionId() {
		return sessionId;
	}

	public URL getEnvironment() {
		return environment;
	}

	public URL getDefaults() {
		return defaults;
	}

	public List getJars() {
		return jars;
	}

	public List getLibraryDirs() {
		return libraryDirs;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy