View Javadoc

    1   /*
    2    *  soapUI, copyright (C) 2004-2007 eviware.com
    3    *
    4    *  soapUI is free software; you can redistribute it and/or modify it under the
    5    *  terms of version 2.1 of the GNU Lesser General Public License as published by
    6    *  the Free Software Foundation.
    7    *
    8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
    9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    10   *  See the GNU Lesser General Public License for more details at gnu.org.
    11   */
    12
    13  package com.eviware.soapui.impl.wsdl.loadtest.data;
    14
    15  import com.eviware.soapui.model.testsuite.TestStepResult;
    16  import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus;
    17
    18  /***
    19   * Base class for a LoadTest sample
    20   *
    21   * @author Ole.Matzura
    22   */
    23
    24  public class LoadTestStepSample
    25  {
    26  	private long size;
    27  	private TestStepStatus status;
    28  	private long timeTaken;
    29  	private String[] messages;
    30  	private long timeStamp;
    31
    32  	LoadTestStepSample( TestStepResult result )
    33  	{
    34  		size = result.getSize();
    35  		status = result.getStatus();
    36  		timeTaken = result.getTimeTaken();
    37  		messages = result.getMessages();
    38  		timeStamp = result.getTimeStamp();
    39  	}
    40
    41  	public String[] getMessages()
    42  	{
    43  		return messages.clone();
    44  	}
    45
    46  	public long getSize()
    47  	{
    48  		return size;
    49  	}
    50
    51  	public TestStepStatus getStatus()
    52  	{
    53  		return status;
    54  	}
    55
    56  	public long getTimeStamp()
    57  	{
    58  		return timeStamp;
    59  	}
    60
    61  	public long getTimeTaken()
    62  	{
    63  		return timeTaken;
    64  	}
    65  }