01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * 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: private long size;
26: private TestStepStatus status;
27: private long timeTaken;
28: private String[] messages;
29: private long timeStamp;
30:
31: LoadTestStepSample(TestStepResult result) {
32: size = result.getSize();
33: status = result.getStatus();
34: timeTaken = result.getTimeTaken();
35: messages = result.getMessages();
36: timeStamp = result.getTimeStamp();
37: }
38:
39: public String[] getMessages() {
40: return messages.clone();
41: }
42:
43: public long getSize() {
44: return size;
45: }
46:
47: public TestStepStatus getStatus() {
48: return status;
49: }
50:
51: public long getTimeStamp() {
52: return timeStamp;
53: }
54:
55: public long getTimeTaken() {
56: return timeTaken;
57: }
58: }
|