You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by wo...@apache.org on 2004/03/16 04:33:41 UTC
cvs commit: jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model ThreadInfoImpl.java RequestInfoImpl.java WorkerImpl.java StatusImpl.java MemoryImpl.java WorkersImpl.java JvmImpl.java ConnectorImpl.java
woolfel 2004/03/15 19:33:41
Added: src/monitor/model/org/apache/jmeter/monitor/model
ThreadInfoImpl.java RequestInfoImpl.java
WorkerImpl.java StatusImpl.java MemoryImpl.java
WorkersImpl.java JvmImpl.java ConnectorImpl.java
Log:
adding classes that implement the base interface. they are used by
the ObjectFactory. I follow the same basic design pattern as
jaxb.
peter lin
Revision Changes Path
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/ThreadInfoImpl.java
Index: ThreadInfoImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class ThreadInfoImpl implements ThreadInfo
{
private int maxSpareThreads = 0;
private int minSpareThreads = 0;
private int maxThreads = 0;
private int currentThreadCount = 0;
private int currentThreadsBusy = 0;
/**
*
*/
public ThreadInfoImpl()
{
super();
}
public int getMaxSpareThreads()
{
return this.maxSpareThreads;
}
public void setMaxSpareThreads(int value)
{
this.maxSpareThreads = value;
}
public int getMinSpareThreads()
{
return this.minSpareThreads;
}
public void setMinSpareThreads(int value)
{
this.minSpareThreads = value;
}
public int getMaxThreads()
{
return this.maxThreads;
}
public void setMaxThreads(int value)
{
this.maxThreads = value;
}
public int getCurrentThreadsBusy()
{
return this.currentThreadsBusy;
}
public void setCurrentThreadsBusy(int value)
{
this.currentThreadsBusy = value;
}
public int getCurrentThreadCount()
{
return this.currentThreadCount;
}
public void setCurrentThreadCount(int value)
{
this.currentThreadCount = value;
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/RequestInfoImpl.java
Index: RequestInfoImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class RequestInfoImpl implements RequestInfo
{
private long bytesReceived = 0;
private long bytesSent = 0;
private long requestCount = 0;
private long errorCount = 0;
private int maxTime = 0;
private int processingTime = 0;
/**
*
*/
public RequestInfoImpl()
{
super();
}
public long getBytesReceived()
{
return this.bytesReceived;
}
public void setBytesReceived(long value)
{
this.bytesReceived = value;
}
public long getBytesSent()
{
return this.bytesSent;
}
public void setBytesSent(long value)
{
this.bytesSent = value;
}
public long getRequestCount()
{
return requestCount;
}
public void setRequestCount(long value)
{
this.requestCount = value;
}
public long getErrorCount()
{
return this.errorCount;
}
public void setErrorCount(long value)
{
this.errorCount = value;
}
public int getMaxTime()
{
return this.maxTime;
}
public void setMaxTime(int value)
{
this.maxTime = value;
}
public int getProcessingTime()
{
return this.processingTime;
}
public void setProcessingTime(int value)
{
this.processingTime = value;
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/WorkerImpl.java
Index: WorkerImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class WorkerImpl implements Worker
{
private int requestProcessingTime = 0;
private long requestBytesSent = 0;
private long requestBytesReceived = 0;
private String currentQueryString = null;
private String remoteAddr = null;
private String currentUri = null;
private String method = null;
private String protocol = null;
private String stage = null;
private String virtualHost = null;
/**
*
*/
public WorkerImpl()
{
super();
}
public int getRequestProcessingTime()
{
return this.requestProcessingTime;
}
public void setRequestProcessingTime(int value)
{
this.requestProcessingTime = value;
}
public long getRequestBytesSent()
{
return this.requestBytesSent;
}
public void setRequestBytesSent(long value)
{
this.requestBytesSent = value;
}
public String getCurrentQueryString()
{
return this.currentQueryString;
}
public void setCurrentQueryString(String value)
{
this.currentQueryString = value;
}
public String getRemoteAddr()
{
return this.remoteAddr;
}
public void setRemoteAddr(String value)
{
this.remoteAddr = value;
}
public String getCurrentUri()
{
return this.currentUri;
}
public void setCurrentUri(String value)
{
this.currentUri = value;
}
public String getStage()
{
return this.stage;
}
public void setStage(String value)
{
this.stage = value;
}
public String getVirtualHost()
{
return this.virtualHost;
}
public void setVirtualHost(String value)
{
this.virtualHost = value;
}
public String getProtocol()
{
return this.protocol;
}
public void setProtocol(String value)
{
this.protocol = value;
}
public long getRequestBytesReceived()
{
return this.requestBytesReceived;
}
public void setRequestBytesReceived(long value)
{
this.requestBytesReceived = value;
}
public String getMethod()
{
return this.method;
}
public void setMethod(String value)
{
this.method = value;
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/StatusImpl.java
Index: StatusImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
import java.util.LinkedList;
import java.util.List;
public class StatusImpl implements Status
{
private Jvm jvm = null;
private List connectors = null;
/**
*
*/
public StatusImpl()
{
super();
connectors = new LinkedList();
}
/* (non-Javadoc)
* @see org.apache.jmeter.monitor.model.Status#getJvm()
*/
public Jvm getJvm()
{
return jvm;
}
/* (non-Javadoc)
* @see org.apache.jmeter.monitor.model.Status#setJvm(org.apache.jmeter.monitor.model.Jvm)
*/
public void setJvm(Jvm vm)
{
this.jvm = vm;
}
/* (non-Javadoc)
* @see org.apache.jmeter.monitor.model.Status#getConnector()
*/
public List getConnector()
{
return this.connectors;
}
public void addConnector(Connector conn){
this.connectors.add(conn);
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/MemoryImpl.java
Index: MemoryImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class MemoryImpl implements Memory
{
private long max = 0;
private long free = 0;
private long total = 0;
/**
*
*/
public MemoryImpl()
{
super();
}
public long getMax()
{
return this.max;
}
public void setMax(long value)
{
this.max = value;
}
public long getFree()
{
return this.free;
}
public void setFree(long value)
{
this.free = value;
}
public long getTotal()
{
return this.total;
}
public void setTotal(long value)
{
this.total = value;
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/WorkersImpl.java
Index: WorkersImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
import java.util.LinkedList;
import java.util.List;
public class WorkersImpl implements Workers
{
private List worker = null;
/**
*
*/
public WorkersImpl()
{
super();
worker = new LinkedList();
}
public List getWorker()
{
return worker;
}
public void addWorker(Worker value){
this.worker.add(value);
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/JvmImpl.java
Index: JvmImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class JvmImpl implements Jvm
{
private Memory memory = null;
/**
*
*/
public JvmImpl()
{
super();
}
public Memory getMemory()
{
return this.memory;
}
/* (non-Javadoc)
* @see org.apache.jmeter.monitor.model.Jvm#setMemory(org.apache.jmeter.monitor.model.Memory)
*/
public void setMemory(Memory mem)
{
this.memory = mem;
}
}
1.1 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/ConnectorImpl.java
Index: ConnectorImpl.java
===================================================================
//$Header:
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.monitor.model;
public class ConnectorImpl implements Connector
{
private ThreadInfo threadinfo = null;
private RequestInfo requestinfo = null;
private Workers workers = null;
private String name = null;
/**
*
*/
public ConnectorImpl()
{
super();
}
public ThreadInfo getThreadInfo()
{
return this.threadinfo;
}
public void setThreadInfo(ThreadInfo value)
{
this.threadinfo = value;
}
public RequestInfo getRequestInfo()
{
return this.requestinfo;
}
public void setRequestInfo(RequestInfo value)
{
this.requestinfo = value;
}
public Workers getWorkers()
{
return this.workers;
}
public void setWorkers(Workers value)
{
this.workers = value;
}
public String getName()
{
return this.name;
}
public void setName(String value)
{
this.name = value;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org