Java EE Web Service Client Quality report (iii)

Source: Internet
Author: User

Payload Package

The payload package can be used for clients as well as for servers. It contains three classes: Clientreport, Currentreport, and serializer.

Clientreport represents a number of client reports:

package Payload;
import java.io.*;
import java.util.*;
/**
*
* @author Brian Connolly Brian@ideajungle.com
*/
public class ClientReport implements Serializable {
  public Date clientStartDateTime;
  public Date serverStartDateTime;
  public long clientElapsedMS;
  public String type;
  public String status;
  public String transactionID;
  public String clientID;
  //Default public constructor for WSDL
  public ClientReport() {
  }
/*
. . . Get, set property methods are not shown
*/

In the preceding code, Clientstartdatetime records the time that the client initiated the transaction. Serverstartdatetime is not currently in use; its purpose is to save the server start time of the transaction so that the number of transactions can be associated with changes in the server resource usage over time.

CLIENTELAPSEDMS is the primary tool we record: the number of milliseconds to start recording a new transaction from the client until it receives the result of the last Web service call.

Type allows clients to use types-profiling transactions. In general, the system of things provides many kinds of transactions. We expect certain types to be relatively easy for servers, some of which are relatively difficult, so that we can identify them when we analyze the response times and measure server resources.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.