/** * @param contextService */ protected void setConfigurationContextService(ConfigurationContextService contextService) { if (log.isDebugEnabled()) { log.debug("ConfigurationContextService set in Identity Provider bundle"); } configContext = contextService.getServerConfigContext(); }
/** * @param contextService */ protected void setConfigurationContextService(ConfigurationContextService contextService) { if (log.isDebugEnabled()) { log.debug("ConfigurationContextService set in Identity Provider bundle"); } configContext = contextService.getServerConfigContext(); }
protected void setConfigurationContextService( ConfigurationContextService configurationContextService) { log.debug("The Configuration Context Service was set"); if (configurationContextService != null) { CommonUtil.setConfigurationContext(configurationContextService.getServerConfigContext()); } } protected void unsetConfigurationContextService(ConfigurationContextService configurationContextService) {
public static void registerRetrieverServices(BundleContext bundleContext) throws Exception { ConfigurationContextService confCtxSvc = Util.getConfigurationContextService(); // creating and registering tenant and user usage retrievers tenantUsageRetriever = new TenantUsageRetriever( registryService, confCtxSvc.getServerConfigContext()); bundleContext.registerService( TenantUsageRetriever.class.getName(), tenantUsageRetriever, null); }
protected void setConfigurationContextService(ConfigurationContextService context) { if (log.isDebugEnabled()) { log.debug("ConfigurationContextService bound to the Autoscaler task initialization process"); } this.configurationContext = context.getServerConfigContext(); AutoscalerTaskDSHolder.getInstance().setConfigurationContextService(context); }
/** * Get the axis service path * * @return String */ public static String getServicePath() { return IdentityCoreServiceComponent.getConfigurationContextService().getServerConfigContext().getServicePath(); }
public static BrokerClient getBrokerClient(String brokerURL, String userName, String password) throws Exception { return new BrokerClient(BAMUtil.getConfigurationContextService().getServerConfigContext(), brokerURL, userName, password); }
public static synchronized BAMSummaryGenerationDSClient getBAMSummaryGenerationDSClient() throws BAMException { if (summaryGenerationDSClient == null) { // if (CarbonUtils.isRunningOnLocalTransportMode()) { summaryGenerationDSClient = new BAMSummaryGenerationDSClient(BAMConstants.LOCAL_TRANSPORT, getConfigurationContextService().getServerConfigContext()); // } else { // summaryGenerationDSClient = new BAMSummaryGenerationDSClient(BAMConstants.LOCAL_TRANSPORT, // getConfigurationContextService().getClientConfigContext()); // } } return summaryGenerationDSClient; }
/** * Get the axis service path * * @return String */ public static String getServicePath() { return IdentityCoreServiceComponent.getConfigurationContextService().getServerConfigContext().getServicePath(); }
public static synchronized BAMServiceSummaryDSClient getBAMServiceSummaryDSClient() throws BAMException { if (serviceSummaryDSClient == null) { serviceSummaryDSClient = new BAMServiceSummaryDSClient(BAMConstants.LOCAL_TRANSPORT, getConfigurationContextService().getServerConfigContext()); } return serviceSummaryDSClient; }
protected void deactivate(ComponentContext ctxt) { try { AxisConfiguration serverAxisConfig = configContextService.getServerConfigContext().getAxisConfiguration(); if (serverAxisConfig != null) { serverAxisConfig.disengageModule(serverAxisConfig.getModule(POX_SECURITY_MODULE)); } log.debug("Security Mgt bundle is deactivated"); } catch (Throwable e) { log.error("Failed to deactivate SecurityMgtServiceComponent", e); } }
public static synchronized SummaryDimensionDSClient getSummaryDimensionDSClient() throws BAMException{ if (summaryDimensionDSClient == null) { summaryDimensionDSClient = new SummaryDimensionDSClient(BAMConstants.LOCAL_TRANSPORT, getConfigurationContextService().getServerConfigContext()); } return summaryDimensionDSClient; }
protected void setConfigurationContextService(ConfigurationContextService cfgCtxService) { ConfigHolder.getInstance().setAxisConfiguration( cfgCtxService.getServerConfigContext().getAxisConfiguration()); ConfigHolder.getInstance().setConfigCtxt(cfgCtxService.getServerConfigContext()); }
private static ClusteringAgent getClusteringAgent() throws AxisFault { AxisConfiguration axisConfig = Util.getConfigurationContextService().getServerConfigContext().getAxisConfiguration(); return axisConfig.getClusteringAgent(); }
private static ClusteringAgent getClusteringAgent() throws AxisFault { AxisConfiguration axisConfig = DataHolder.getInstance().getConfigurationContextService().getServerConfigContext().getAxisConfiguration(); return axisConfig.getClusteringAgent(); }
public static String getBackendServerURLHTTP() throws SocketException { return "http://" + NetworkUtils.getLocalHostname() + ":" + CarbonUtils.getTransportPort(BAMUtil.getConfigurationContextService(), "http") + BAMUtil.configurationContextService.getServerConfigContext().getContextRoot(); }
/** * Check whether clustering is enabled. * * @return boolean returns true if clustering enabled, false otherwise. */ private boolean isClusteringEnabled() { return EntitlementConfigHolder.getInstance().getConfigurationContextService() .getServerConfigContext().getAxisConfiguration().getClusteringAgent() != null; }
protected String getBackendServerURLHTTPS() throws SocketException { String contextRoot = ReportingTemplateComponent.getConfigurationContextService().getServerConfigContext().getContextRoot(); return "https://" + NetworkUtils.getLocalHostname() + ":" + CarbonUtils.getTransportPort(ReportingTemplateComponent.getConfigurationContextService(), "https") + contextRoot; } }
protected void setConfigurationContextService(ConfigurationContextService ccService) { ConfigurationContext serverCtx = ccService.getServerConfigContext(); AxisConfiguration serverConfig = serverCtx.getAxisConfiguration(); LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(serverConfig); LocalTransportReceiver.CONFIG_CONTEXT.setServicePath("services"); LocalTransportReceiver.CONFIG_CONTEXT.setContextRoot("local:/"); Util.setConfigurationContextService(ccService); }
protected void setConfigurationContextService(ConfigurationContextService ccService) { ConfigurationContext serverCtx = ccService.getServerConfigContext(); AxisConfiguration serverConfig = serverCtx.getAxisConfiguration(); LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(serverConfig); LocalTransportReceiver.CONFIG_CONTEXT.setServicePath("services"); LocalTransportReceiver.CONFIG_CONTEXT.setContextRoot("local:/"); DataHolder.getInstance().setConfigurationContextService(ccService); }