public long getRMSMaximumRetransmitCount() { long rmsMaximumRetransmitCount = 100; if (axisDescription.getParameter(MercuryConstants.RMS_MAXIMUM_RETRANSMIT_COUNT) != null) { rmsMaximumRetransmitCount = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMS_MAXIMUM_RETRANSMIT_COUNT).getValue()); } return rmsMaximumRetransmitCount; }
public long getRMDSequenceTimeout() { long rmdSequeenceTimeout = 60000; if (axisDescription.getParameter(MercuryConstants.RMD_SEQUENCE_TIMEOUT) != null) { rmdSequeenceTimeout = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMD_SEQUENCE_TIMEOUT).getValue()); } return rmdSequeenceTimeout; }
public long getInvokerTimeout() { long invokerTimeout = 60000; if (axisDescription.getParameter(MercuryConstants.INVOKER_TIMEOUT) != null) { invokerTimeout = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.INVOKER_TIMEOUT).getValue()); } return invokerTimeout; }
public long getRMSSequenceRetransmitTime() { long rmsSequeenceRetransmitTime = 15000; if (axisDescription.getParameter(MercuryConstants.RMS_SEQUENCE_RETRANSMIT_TIME) != null) { rmsSequeenceRetransmitTime = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMS_SEQUENCE_RETRANSMIT_TIME).getValue()); } return rmsSequeenceRetransmitTime; }
public long getRMDSequenceRetransmitTime() { long rmsSequeenceRetransmitTime = 15000; if (axisDescription.getParameter(MercuryConstants.RMD_SEQUENCE_RETRANSMIT_TIME) != null) { rmsSequeenceRetransmitTime = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMD_SEQUENCE_RETRANSMIT_TIME).getValue()); } return rmsSequeenceRetransmitTime; }
public long getInvokerSleepTime() { long invokerSleepTime = 100; if (axisDescription.getParameter(MercuryConstants.INVOKER_WORKER_SLEEP_TIME) != null) { invokerSleepTime = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.INVOKER_WORKER_SLEEP_TIME).getValue()); } return invokerSleepTime; }
public long getRMSSequenceTimeout() { long rmsSequeenceTimeout = 60000; if (axisDescription.getParameter(MercuryConstants.RMS_SEQUENCE_TIMEOUT) != null) { rmsSequeenceTimeout = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMS_SEQUENCE_TIMEOUT).getValue()); } return rmsSequeenceTimeout; }
public long getRMSSequenceWorkerSleepTime() { long rmsSequeenceWorkerSleepTime = 100; if (axisDescription.getParameter(MercuryConstants.RMS_SEQUENCE_WORKER_SLEEP_TIME) != null) { rmsSequeenceWorkerSleepTime = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMS_SEQUENCE_WORKER_SLEEP_TIME).getValue()); } return rmsSequeenceWorkerSleepTime; }
public long getRMDSequenceWorkerSleepTime() { long rmdSequeenceWorkerSleepTime = 100; if (axisDescription.getParameter(MercuryConstants.RMD_SEQUENCE_WORKER_SLEEP_TIME) != null) { rmdSequeenceWorkerSleepTime = Long.parseLong((String) axisDescription.getParameter( MercuryConstants.RMD_SEQUENCE_WORKER_SLEEP_TIME).getValue()); } return rmdSequeenceWorkerSleepTime; }
public boolean getEnforceRM() { boolean enforceRM = false; if (axisDescription.getParameter(MercuryConstants.ENFORCE_RM) != null) { enforceRM = Boolean.parseBoolean((String) axisDescription.getParameter( MercuryConstants.ENFORCE_RM).getValue()); } return enforceRM; }
public Object getParameterValue(String name) { Parameter param = getParameter(name); if (param == null) { return null; } return param.getValue(); }
public Object getParameterValue(String name) { Parameter param = getParameter(name); if (param == null) { return null; } return param.getValue(); }
public static String getAddressingRequirementParemeterValue(AxisDescription axisDescription){ String value = ""; if (axisDescription != null) { value = Utils.getParameterValue( axisDescription.getParameter(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER)); if(value !=null){ value = value.trim(); } if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug("getAddressingRequirementParemeterValue: value: '" + value + "'"); } } if (value == null || "".equals(value)) { value = AddressingConstants.ADDRESSING_UNSPECIFIED; } return value; }
public static String getAddressingRequirementParemeterValue(AxisDescription axisDescription){ String value = ""; if (axisDescription != null) { value = Utils.getParameterValue( axisDescription.getParameter(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER)); if(value !=null){ value = value.trim(); } if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug("getAddressingRequirementParemeterValue: value: '" + value + "'"); } } if (value == null || "".equals(value)) { value = AddressingConstants.ADDRESSING_UNSPECIFIED; } return value; }
public boolean isParameterLocked(String parameterName) { if (this.parent != null && this.parent.isParameterLocked(parameterName)) { return true; } Parameter parameter = getParameter(parameterName); return parameter != null && parameter.isLocked(); }
public boolean isParameterTrue(String name) { Parameter param = getParameter(name); return param != null && JavaUtils.isTrue(param.getValue()); }
public boolean isParameterLocked(String parameterName) { if (this.parent != null && this.parent.isParameterLocked(parameterName)) { return true; } Parameter parameter = getParameter(parameterName); return parameter != null && parameter.isLocked(); }
public boolean isParameterTrue(String name) { Parameter param = getParameter(name); return param != null && JavaUtils.isTrue(param.getValue()); }
/** * If the parameter is found in the current description then the Parameter will be writable else * it will be read only * * @param name name of Parameter to retrieve * @return the Parameter, if found anywhere in the stack, or null if not */ public Parameter getParameter(String name) { Parameter parameter = parameterInclude.getParameter(name); if (parameter != null) { parameter.setEditable(true); return parameter; } if (parent != null) { parameter = parent.getParameter(name); if (parameter != null) { parameter.setEditable(false); } return parameter; } return null; }
public static SandeshaPolicyBean getPropertyBean (AxisDescription axisDescription) throws SandeshaException { Parameter parameter = axisDescription.getParameter(Sandesha2Constants.SANDESHA_PROPERTY_BEAN); if (parameter==null) throw new SandeshaException (SandeshaMessageHelper.getMessage( SandeshaMessageKeys.propertyBeanNotSet)); SandeshaPolicyBean propertyBean = (SandeshaPolicyBean) parameter.getValue(); if (propertyBean==null) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.policyBeanNotFound); throw new SandeshaException (message); } return propertyBean; }