KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > monitor > model > WorkerImpl


1 // $Header: /home/cvs/jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/WorkerImpl.java,v 1.2 2004/03/19 23:35:21 sebb Exp $
2
/*
3  * Copyright 2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.jmeter.monitor.model;
18
19 /**
20  *
21  */

22 public class WorkerImpl implements Worker
23 {
24     private int requestProcessingTime = 0;
25     private long requestBytesSent = 0;
26     private long requestBytesReceived = 0;
27     private String JavaDoc currentQueryString = null;
28     private String JavaDoc remoteAddr = null;
29     private String JavaDoc currentUri = null;
30     private String JavaDoc method = null;
31     private String JavaDoc protocol = null;
32     private String JavaDoc stage = null;
33     private String JavaDoc virtualHost = null;
34     
35     /**
36      *
37      */

38     public WorkerImpl()
39     {
40         super();
41     }
42
43     public int getRequestProcessingTime()
44     {
45         return this.requestProcessingTime;
46     }
47
48     public void setRequestProcessingTime(int value)
49     {
50         this.requestProcessingTime = value;
51     }
52
53     public long getRequestBytesSent()
54     {
55         return this.requestBytesSent;
56     }
57
58     public void setRequestBytesSent(long value)
59     {
60         this.requestBytesSent = value;
61     }
62
63     public String JavaDoc getCurrentQueryString()
64     {
65         return this.currentQueryString;
66     }
67
68     public void setCurrentQueryString(String JavaDoc value)
69     {
70         this.currentQueryString = value;
71     }
72
73     public String JavaDoc getRemoteAddr()
74     {
75         return this.remoteAddr;
76     }
77
78     public void setRemoteAddr(String JavaDoc value)
79     {
80         this.remoteAddr = value;
81     }
82
83     public String JavaDoc getCurrentUri()
84     {
85         return this.currentUri;
86     }
87
88     public void setCurrentUri(String JavaDoc value)
89     {
90         this.currentUri = value;
91     }
92
93     public String JavaDoc getStage()
94     {
95         return this.stage;
96     }
97
98     public void setStage(String JavaDoc value)
99     {
100         this.stage = value;
101     }
102
103     public String JavaDoc getVirtualHost()
104     {
105         return this.virtualHost;
106     }
107
108     public void setVirtualHost(String JavaDoc value)
109     {
110         this.virtualHost = value;
111     }
112
113     public String JavaDoc getProtocol()
114     {
115         return this.protocol;
116     }
117
118     public void setProtocol(String JavaDoc value)
119     {
120         this.protocol = value;
121     }
122
123     public long getRequestBytesReceived()
124     {
125         return this.requestBytesReceived;
126     }
127
128     public void setRequestBytesReceived(long value)
129     {
130         this.requestBytesReceived = value;
131     }
132
133     public String JavaDoc getMethod()
134     {
135         return this.method;
136     }
137
138     public void setMethod(String JavaDoc value)
139     {
140         this.method = value;
141     }
142
143 }
144
Popular Tags