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

org.springframework.yarn.config.annotation.SpringYarnConfigs Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2013 the original author or authors.
 *
 * Licensed 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.springframework.yarn.config.annotation;

import java.util.Map;

import org.apache.hadoop.conf.Configuration;
import org.springframework.yarn.am.YarnAppmaster;
import org.springframework.yarn.client.YarnClient;
import org.springframework.yarn.container.YarnContainer;
import org.springframework.yarn.fs.ResourceLocalizer;

/**
 * A holder object for all configured configs for Spring Yarn.
 *
 * @author Janne Valkealahti
 *
 */
public class SpringYarnConfigs {

	private Configuration configuration;
	private ResourceLocalizer localizer;
	private Map environment;
	private YarnClient yarnClient;
	private YarnAppmaster yarnAppmaster;
	private YarnContainer yarnContainer;

	/**
	 * Instantiates a new spring yarn configs.
	 */
	public SpringYarnConfigs() {}

	/**
	 * Instantiates a new spring yarn configs.
	 *
	 * @param configuration the configuration
	 * @param localizer the localizer
	 * @param environment the environment
	 */
	public SpringYarnConfigs(Configuration configuration, ResourceLocalizer localizer, Map environment) {
		super();
		this.configuration = configuration;
		this.localizer = localizer;
		this.environment = environment;
	}

	public Configuration getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	public ResourceLocalizer getLocalizer() {
		return localizer;
	}

	public void setLocalizer(ResourceLocalizer localizer) {
		this.localizer = localizer;
	}

	public Map getEnvironment() {
		return environment;
	}

	public void setEnvironment(Map environment) {
		this.environment = environment;
	}

	public YarnClient getYarnClient() {
		return yarnClient;
	}

	public void setYarnClient(YarnClient yarnClient) {
		this.yarnClient = yarnClient;
	}

	public YarnAppmaster getYarnAppmaster() {
		return yarnAppmaster;
	}

	public void setYarnAppmaster(YarnAppmaster yarnAppmaster) {
		this.yarnAppmaster = yarnAppmaster;
	}

	public YarnContainer getYarnContainer() {
		return yarnContainer;
	}

	public void setYarnContainer(YarnContainer yarnContainer) {
		this.yarnContainer = yarnContainer;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy