/** * Get the base path * * @return the base path optionally configured by * {@link SliderXmlConfKeys#KEY_SLIDER_BASE_PATH} */ public Path getBaseApplicationPath() { String configuredBasePath = configuration.get(SliderXmlConfKeys.KEY_SLIDER_BASE_PATH); return configuredBasePath != null ? new Path(configuredBasePath) : new Path(getHomeDirectory(), SliderKeys.SLIDER_BASE_DIRECTORY); }
/** * Get the base path * * @return the base path optionally configured by * {@link SliderXmlConfKeys#KEY_SLIDER_BASE_PATH} */ public Path getBaseApplicationPath() { String configuredBasePath = configuration.get(SliderXmlConfKeys.KEY_SLIDER_BASE_PATH); return configuredBasePath != null ? new Path(configuredBasePath) : new Path(getHomeDirectory(), SliderKeys.SLIDER_BASE_DIRECTORY); }
/** * Build up the path string for keytab install location -no attempt to * create the directory is made * * @return the path for keytab installation location */ public Path buildKeytabPath(String keytabDir, String keytabName, String clusterName) { Path homePath = getHomeDirectory(); Path baseKeytabDir; if (keytabDir != null) { baseKeytabDir = new Path(homePath, keytabDir); } else { baseKeytabDir = new Path(buildClusterDirPath(clusterName), SliderKeys.KEYTAB_DIR); } return keytabName == null ? baseKeytabDir : new Path(baseKeytabDir, keytabName); }
/** * Build up the path string for keytab install location -no attempt to * create the directory is made * * @return the path for keytab installation location */ public Path buildKeytabPath(String keytabDir, String keytabName, String clusterName) { Path homePath = getHomeDirectory(); Path baseKeytabDir; if (keytabDir != null) { baseKeytabDir = new Path(homePath, keytabDir); } else { baseKeytabDir = new Path(buildClusterDirPath(clusterName), SliderKeys.KEYTAB_DIR); } return keytabName == null ? baseKeytabDir : new Path(baseKeytabDir, keytabName); }