EBMSConfigSender

public class EBMSConfigSender extends SOAPSender

The EBMSConfigSender is a client sender sending SOAP web services request to B2BCollector EBMS plugin for configurating the performance factor. The web service parameters are defined in the below:

<active-module-status> true | false </active-module-status>
<incollector-interval>15000</incollector-interval>
<incollector-maxthread>0</incollector-maxthread>
<outcollector-interval>15000</outcollector-interval>
<outcollector-maxthread>0</outcollector-maxthread>
<mailcollector-interval>15000</mailcollector-interval>
<mailcollector-maxthread>0</mailcollector-maxthread>
Author:Twinsen Tsang

Constructors

EBMSConfigSender

public EBMSConfigSender(FileLogger l, EBMSConfigData data)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • data – The EBMS Configuration parameters.

Methods

getStatus

public String getStatus()
Returns:Get the result status for the last successful web services call.

initializeMessage

public void initializeMessage()

The SOAPRequest in the creation stage should be liked this.

Throws:
  • Exceptions

main

public static void main(String[] args)

The main method is for CLI mode.

onResponse

public void onResponse()

Get the SOAP Body and analyze the result of configuration.

The result of SOAP body:

<status>success | fail</status>

onStart

public void onStart()

[@EVENT] The method onStart log all new configuration.