public static SynapseEnvironment getSynapseEnvironment(AxisConfiguration axisCfg) { return axisCfg != null && axisCfg.getParameter(SynapseConstants.SYNAPSE_HOME) != null ? (SynapseEnvironment) axisCfg.getParameterValue(SynapseConstants.SYNAPSE_CONFIG) : null; }
/** * Retrieves the ContextRoot * * @return The ContextRoot */ public String getContextRoot() { if (contextRoot == null) { contextRoot = (String) axisConfiguration.getParameter("contextRoot").getValue(); } return contextRoot; }
/** * Reads the property in axis config (comes from axis2.xml) and decides whether we have to * build the AxisService using a generated WSDL. * @return true if param true */ private boolean useGeneratedWSDL(){ Parameter param = this.axisConfig.getParameter(MDQConstants.USE_GENERATED_WSDL); return param != null && "true".equals(param.getValue()); }
private int getSystemStatisticsCount(AxisConfiguration axisConfig, String parameterName) { Parameter globalCounter = axisConfig.getParameter(parameterName); return ((AtomicInteger) globalCounter.getValue()).get(); }
private void initConfigContextTimeout(AxisConfiguration axisConfiguration) { Parameter parameter = axisConfiguration .getParameter(Constants.Configuration.CONFIG_CONTEXT_TIMEOUT_INTERVAL); if (parameter != null) { Object value = parameter.getValue(); if (value != null && value instanceof String) { serviceGroupContextTimeoutInterval = Integer.parseInt((String)value); } } }
/** * Reads the property in axis config (comes from axis2.xml) and decides whether we have to * build the AxisService using a generated WSDL. * @return true if param true */ private boolean useGeneratedWSDL(){ Parameter param = this.axisConfig.getParameter(MDQConstants.USE_GENERATED_WSDL); return param != null && "true".equals(param.getValue()); }
private boolean listServiceDisabled () { Parameter parameter = configContext.getAxisConfiguration() .getParameter(Constants.ADMIN_SERVICE_LISTING_DISABLED); return parameter != null && "true".equals(parameter.getValue()); }
private String inferContentType() { Parameter param = cfgCtx.getAxisConfiguration(). getParameter(NhttpConstants.REQUEST_CONTENT_TYPE); if (param != null) { return param.getValue().toString(); } return null; }
protected void waitForCompletion() { long timeout = 2000L; Parameter param = cfgCtx.getAxisConfiguration().getParameter("hotupdate.timeout"); if (param != null && param.getValue() != null) { timeout = Long.parseLong(param.getValue().toString()); } try { Thread.sleep(timeout); } catch (InterruptedException ignored) { } }
public boolean isChildFirstClassLoading(){ boolean childFirstClassLoading = false; Parameter isChildFirstClassLoading = this.getParameter(Constants.Configuration.ENABLE_CHILD_FIRST_CLASS_LOADING); if (isChildFirstClassLoading != null){ childFirstClassLoading = JavaUtils.isTrueExplicitly(isChildFirstClassLoading.getValue()); } return childFirstClassLoading; }
public long getMinSystemResponseTime(AxisConfiguration axisConfig) { Parameter processor = axisConfig.getParameter(StatisticsConstants.RESPONSE_TIME_PROCESSOR); if (processor != null) { Object value = processor.getValue(); if (value instanceof ResponseTimeProcessor) { return ((ResponseTimeProcessor) value).getMinResponseTime(); } } return 0; }
public long getMaxSystemResponseTime(AxisConfiguration axisConfig) { Parameter processor = axisConfig.getParameter(StatisticsConstants.RESPONSE_TIME_PROCESSOR); if (processor != null) { Object value = processor.getValue(); if (value instanceof ResponseTimeProcessor) { return ((ResponseTimeProcessor) value).getMaxResponseTime(); } } return 0; }
public double getAvgSystemResponseTime(AxisConfiguration axisConfig) { Parameter processor = axisConfig.getParameter(StatisticsConstants.RESPONSE_TIME_PROCESSOR); if (processor != null) { Object value = processor.getValue(); if (value instanceof ResponseTimeProcessor) { return ((ResponseTimeProcessor) value).getAvgResponseTime(); } } return 0; }
protected SynapseConfiguration getSynapseConfiguration() throws DeploymentException { Parameter synCfgParam = cfgCtx.getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_CONFIG); if (synCfgParam == null) { throw new DeploymentException("SynapseConfiguration not found. " + "Unable to continue the deployment operation."); } return (SynapseConfiguration) synCfgParam.getValue(); }
protected ServerConfigurationInformation getServerConfigurationInformation() throws DeploymentException { Parameter serverCfgParam = cfgCtx.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_SERVER_CONFIG_INFO); if (serverCfgParam == null) { throw new DeploymentException("SynapseConfigurationInformation not found. " + "Unable to continue the deployment operation."); } return (ServerConfigurationInformation) serverCfgParam.getValue(); }
protected ServerContextInformation getServerContextInformation() throws DeploymentException { Parameter serverCtxParam = cfgCtx.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_SERVER_CTX_INFO); if (serverCtxParam == null) { throw new DeploymentException("ServerContextInformation not found. " + "Unable to continue the deployment operation."); } return (ServerContextInformation) serverCtxParam.getValue(); }
private static SynapseConfiguration getSynapseConfiguration( org.apache.axis2.context.MessageContext axisMsgCtx) { AxisConfiguration axisCfg = axisMsgCtx.getConfigurationContext().getAxisConfiguration(); Parameter param = axisCfg.getParameter(SynapseConstants.SYNAPSE_CONFIG); if (param != null) { return (SynapseConfiguration) param.getValue(); } return null; }
private static SynapseEnvironment getSynapseEnvironment( org.apache.axis2.context.MessageContext axisMsgCtx) { AxisConfiguration axisCfg = axisMsgCtx.getConfigurationContext().getAxisConfiguration(); Parameter param = axisCfg.getParameter(SynapseConstants.SYNAPSE_ENV); if (param != null) { return (SynapseEnvironment) param.getValue(); } return null; } }
protected SynapseEnvironment getSynapseEnvironment() throws DeploymentException { Parameter synCfgParam = cfgCtx.getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_ENV); if (synCfgParam == null) { throw new DeploymentException("SynapseEnvironment not found. " + "Unable to continue the deployment operation."); } return (SynapseEnvironment) synCfgParam.getValue(); }
public static SandeshaPolicyBean getDefaultPropertyBean (AxisConfiguration axisConfiguration) throws SandeshaException { Parameter parameter = axisConfiguration.getParameter(Sandesha2Constants.SANDESHA_PROPERTY_BEAN); if (parameter==null) throw new SandeshaException (SandeshaMessageHelper.getMessage( SandeshaMessageKeys.defaultPropertyBeanNotSet)); SandeshaPolicyBean sandeshaPropertyBean = (SandeshaPolicyBean) parameter.getValue(); return sandeshaPropertyBean; }