/*
* 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.huahinframework.manager;
/**
*
*/
public class Properties {
private static final String HUAHIN_HOME = System.getProperty("huahin.home");
private String rmAddress;
private String mapreduceJobhistoryAddress;
private String fsDefaultFS;
private String yarnResourcemanagerWebappAddress;
private String yarnNodemanagerWebappAddress;
private String yarnWebProxyAddress;
private String mapreduceJobhistoryWebappAddress;
private String yarnApplicationClasspath;
private String hiveserver;
private int hiveserverVersion;
private int jobQueueLimit;
/**
* @return the huahinHome
*/
public String getHuahinHome() {
return HUAHIN_HOME;
}
/**
* @return the rmAddress
*/
public String getRmAddress() {
return rmAddress;
}
/**
* @param rmAddress the rmAddress to set
*/
public void setRmAddress(String rmAddress) {
this.rmAddress = rmAddress;
}
/**
* @return the mapreduceJobhistoryAddress
*/
public String getMapreduceJobhistoryAddress() {
return mapreduceJobhistoryAddress;
}
/**
* @param mapreduceJobhistoryAddress the mapreduceJobhistoryAddress to set
*/
public void setMapreduceJobhistoryAddress(String mapreduceJobhistoryAddress) {
this.mapreduceJobhistoryAddress = mapreduceJobhistoryAddress;
}
/**
* @return the fsDefaultFS
*/
public String getFsDefaultFS() {
return fsDefaultFS;
}
/**
* @param fsDefaultFS the fsDefaultFS to set
*/
public void setFsDefaultFS(String fsDefaultFS) {
this.fsDefaultFS = fsDefaultFS;
}
/**
* @return the yarnResourcemanagerWebappAddress
*/
public String getYarnResourcemanagerWebappAddress() {
return yarnResourcemanagerWebappAddress;
}
/**
* @param yarnResourcemanagerWebappAddress the yarnResourcemanagerWebappAddress to set
*/
public void setYarnResourcemanagerWebappAddress(
String yarnResourcemanagerWebappAddress) {
this.yarnResourcemanagerWebappAddress = yarnResourcemanagerWebappAddress;
}
/**
* @return the yarnNodemanagerWebappAddress
*/
public String getYarnNodemanagerWebappAddress() {
return yarnNodemanagerWebappAddress;
}
/**
* @param yarnNodemanagerWebappAddress the yarnNodemanagerWebappAddress to set
*/
public void setYarnNodemanagerWebappAddress(String yarnNodemanagerWebappAddress) {
this.yarnNodemanagerWebappAddress = yarnNodemanagerWebappAddress;
}
/**
* @return the yarnWebProxyAddress
*/
public String getYarnWebProxyAddress() {
return yarnWebProxyAddress;
}
/**
* @param yarnWebProxyAddress the yarnWebProxyAddress to set
*/
public void setYarnWebProxyAddress(String yarnWebProxyAddress) {
this.yarnWebProxyAddress = yarnWebProxyAddress;
}
/**
* @return the mapreduceJobhistoryWebappAddress
*/
public String getMapreduceJobhistoryWebappAddress() {
return mapreduceJobhistoryWebappAddress;
}
/**
* @param mapreduceJobhistoryWebappAddress the mapreduceJobhistoryWebappAddress to set
*/
public void setMapreduceJobhistoryWebappAddress(
String mapreduceJobhistoryWebappAddress) {
this.mapreduceJobhistoryWebappAddress = mapreduceJobhistoryWebappAddress;
}
/**
* @return the yarnApplicationClasspath
*/
public String getYarnApplicationClasspath() {
return yarnApplicationClasspath;
}
/**
* @param yarnApplicationClasspath the yarnApplicationClasspath to set
*/
public void setYarnApplicationClasspath(String yarnApplicationClasspath) {
this.yarnApplicationClasspath = yarnApplicationClasspath;
}
/**
* @return the hiveserver
*/
public String getHiveserver() {
return hiveserver;
}
/**
* @param hiveserver the hiveserver to set
*/
public void setHiveserver(String hiveserver) {
this.hiveserver = hiveserver;
}
/**
* @return the hiveserverVersion
*/
public int getHiveserverVersion() {
return hiveserverVersion;
}
/**
* @param hiveserverVersion the hiveserverVersion to set
*/
public void setHiveserverVersion(int hiveserverVersion) {
this.hiveserverVersion = hiveserverVersion;
}
/**
* @return the jobQueueLimit
*/
public int getJobQueueLimit() {
return jobQueueLimit;
}
/**
* @param jobQueueLimit the jobQueueLimit to set
*/
public void setJobQueueLimit(int jobQueueLimit) {
this.jobQueueLimit = jobQueueLimit;
}
}