AS2ConfigData

public class AS2ConfigData extends KVPairData

The AS2ConfigData is the data structure representing the parameters set for as2 runtime configuration. This is the sample WSDL request for the message status WS request.

<active-module-status> true | false </active-module-status>
<inmessage-interval>15000</inmessage-interval>
<inmessage-maxthread>0</inmessage-maxthread>
<outmessage-interval>15000</outmessage-interval>
<outmessage-maxthread>0</outmessage-maxthread>
<outpayload-interval>15000</outpayload-interval>
<outpayload-maxthread>0</outpayload-maxthread>
Author:Twinsen Tsang

Fields

CONFIG_KEY_SET

public static final String[] CONFIG_KEY_SET

This is the configuration key set for XML serialization / de-serialization.

CONFIG_PREFIX

public static final String CONFIG_PREFIX

This is the configuration prefix for serialization / de-serialization.

PARAM_KEY_SET

public static final String[] PARAM_KEY_SET

This is the key set for XML serialization / de-serialization.

PARAM_PREFIX

public static final String PARAM_PREFIX

This is the param prefix for serialzation / de-serialization.

stressMode

public boolean stressMode

This is special flag for stress test mode. In stress test mode, messages are bumped into Hermes2 before start processing. so we need to switch off the active module before bumping the message. and restart after bumping. At the result, we need a flag for switch on / off active task module.

Constructors

AS2ConfigData

public AS2ConfigData()

Default Constructor.

Methods

getActiveModuleStatus

public String getActiveModuleStatus()
Returns:Get the active module status wanted to set for this data.

getActiveModuleStatusBn

public boolean getActiveModuleStatusBn()
Returns:Get the boolean value for ths active module status wanted to set for this data.

getInMessageExecInterval

public String getInMessageExecInterval()

Get the execution interval for incoming message in this data.

Returns:the execution interval for incoming message in this data.

getInMessageMaxThread

public String getInMessageMaxThread()

Get the maximum thread for incoming message in this data.

Returns:the maximum thread for incoming message in this data.

getOutMessageExecInterval

public String getOutMessageExecInterval()

Get the execution interval for outgoing message in this data.

Returns:the execution interval for outgoing message in this data.

getOutMessageMaxThread

public String getOutMessageMaxThread()

Get the maximum thread for outgoing message in this data.

Returns:the maximum thread for outgoing message in this data.

getOutPayloadExecInterval

public String getOutPayloadExecInterval()

Get the execution interval for outgoing payload in this data.

Returns:the execution interval for outgoing payload in this data.

getOutPayloadMaxThread

public String getOutPayloadMaxThread()

Get the maximum thread for outgoing payload in this data.

Returns:the maximum thread for outgoing payload in this data.

getSendEndpoint

public String getSendEndpoint()
Returns:Get the web service endpoint for sending as2 config message to corvus.

setActiveModuleStatus

public void setActiveModuleStatus(boolean newStatus)

Set the new active module status wanted for this data.

Parameters:
  • newStatus – the new active module status wanted for this data.

setInMessageExecInterval

public void setInMessageExecInterval(long newInterval)
Parameters:
  • newInterval – the new execution interval for incoming message for this data.

setInMessageMaxThread

public void setInMessageMaxThread(long maxThread)
Parameters:
  • maxThread – the maximum thread for incoming message for this data.

setOutMessageExecInterval

public void setOutMessageExecInterval(long newInterval)
Parameters:
  • newInterval – the new execution interval for outgoing message for this data.

setOutMessageMaxThread

public void setOutMessageMaxThread(long maxThread)
Parameters:
  • maxThread – the maximum thread for outgoing message for this data.

setOutPayloadExecInterval

public void setOutPayloadExecInterval(long newInterval)
Parameters:
  • newInterval – the new execution interval for outgoing payload for this data.

setOutPayloadMaxThread

public void setOutPayloadMaxThread(long maxThread)
Parameters:
  • maxThread – the maximum thread for outgoing payload for this data.

setSendEndpoint

public void setSendEndpoint(String endpoint)

Set the web service endpoint for sending as2 config message to corvus.

Parameters:
  • endpoint – The web service endpoint for sending as2 config message to corvus.