public static ClaimMetaDataCache getInstance() { CarbonUtils.checkSecurity(); return instance; } }
public String getConfigFileName() throws Exception { String configFileName = CarbonUtils.getCarbonConfigDirPath() + File.separator + StratosConstants.MULTITENANCY_CONFIG_FOLDER + File.separator + CONFIG_FILE; return configFileName; }
/** * Returns the next token delimited by any character in the provided terminals String. If the text content being * considered is within quotes, then return the entire string within quotes. If the text content within contains * escape characters, those are ignored. * * @param terminals String * @return String */ public String getString(String terminals) { return getString(terminals, null); }
public static String getBackendServerURLHTTP() throws SocketException { return "http://" + NetworkUtils.getLocalHostname() + ":" + CarbonUtils.getTransportPort(BAMUtil.getConfigurationContextService(), "http") + BAMUtil.configurationContextService.getServerConfigContext().getContextRoot(); }
public static String getLifecycleSchemaLocation(){ return CarbonUtils.getCarbonHome() + File.separator + "repository" + File.separator + "resources" + File.separator+ "lifecycle-config.xsd"; }
public int getPortOffset() { return CarbonUtils. getPortFromServerConfig(ThriftDataReceiverConstants.CARBON_CONFIG_PORT_OFFSET_NODE) + 1; } }
/** * This method will return the lifecycle schema location in the server directory. * @return schema location. */ private static String getLifecycleSchemaLocation() { return Utils.getRuntimePath() + File.separator + "resources" + File.separator + "lifecycle-config.xsd"; }
/** * Return registered runtime list. * * @return List of rumtimes */ public List<Runtime> getRuntimeList() { Utils.checkSecurity(); return runtimeList; } }
/** * A utility which allows reading variables from the environment or System properties. * If the variable in available in the environment as well as a System property, the System property takes * precedence. * * @param variableName System/environment variable name * @param defaultValue default value to be returned if the specified system variable is not specified. * @return value of the system/environment variable */ public static String getSystemVariableValue(String variableName, String defaultValue) { return getSystemVariableValue(variableName, defaultValue, Constants.PlaceHolders.class); }
protected String getBackendServerURLHTTPS() throws SocketException { String contextRoot = ReportingTemplateComponent.getConfigurationContextService().getServerConfigContext().getContextRoot(); return "https://" + NetworkUtils.getLocalHostname() + ":" + CarbonUtils.getTransportPort(ReportingTemplateComponent.getConfigurationContextService(), "https") + contextRoot; } }
public static String getCarbonSecurityConfigurationPath() { String carbonConfig = CarbonUtils.getCarbonConfigDirPath(); return carbonConfig + File.separatorChar + "security"; } }
public static ClaimMetaDataCache getInstance() { CarbonUtils.checkSecurity(); return instance; } }
public static int getPortOffset() { return CarbonUtils.getPortFromServerConfig("Ports.Offset") + 1; } }
private static String getDefaltLifecycleConfigLocation() { return Utils.getRuntimePath() + File.separator + "resources" + File.separator + "lifecycles"; } }
protected String getBackendServerURLHTTP() throws SocketException { String contextRoot = ReportingTemplateComponent.getConfigurationContextService().getServerConfigContext().getContextRoot(); return "http://" + NetworkUtils.getLocalHostname() + ":" + CarbonUtils.getTransportPort(ReportingTemplateComponent.getConfigurationContextService(), "http") + contextRoot; }
public static String getCarbonSecurityConfigurationPath() { String carbonConfig = CarbonUtils.getCarbonConfigDirPath(); return carbonConfig + File.separatorChar + "security"; } }
public static IdPCacheByHRI getInstance() { CarbonUtils.checkSecurity(); return instance; } }
public static int readPortOffset() { return CarbonUtils. getPortFromServerConfig(ThriftAuthenticationConstants.CARBON_CONFIG_PORT_OFFSET_NODE) + 1; }
public CarbonAnalyticsAPI() { this(CarbonUtils.getCarbonConfigDirPath() + File.separator + AnalyticsDataConstants.ANALYTICS_CONFIG_DIR + File.separator + AnalyticsDataConstants.ANALYTICS_DATA_CONFIGURATION_FILE_NAME); }
public static ConfigurationContext getServerConfigContext() { CarbonUtils.checkSecurity(); return serverConfigContext; }