Author: sebb
Date: Wed Nov  5 09:03:10 2008
New Revision: 711622

URL: http://svn.apache.org/viewvc?rev=711622&view=rev
Log:
Use new AbstractTCPClient super-class

Modified:
    
jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientImpl.java

Modified: 
jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientImpl.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientImpl.java?rev=711622&r1=711621&r2=711622&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientImpl.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientImpl.java
 Wed Nov  5 09:03:10 2008
@@ -38,13 +38,17 @@
 import org.apache.log.Logger;
 
 /**
- * Sample TCPClient implementation
- *
+ * Sample TCPClient implementation.
+ * Reads data until the defined EOL byte is reached.
+ * If there is no EOL byte defined, then reads until
+ * the end of the stream is reached.
+ * The EOL byte is defined by the property "tcp.eolByte".
  */
-public class TCPClientImpl implements TCPClient {
+public class TCPClientImpl extends AbstractTCPClient {
     private static final Logger log = LoggingManager.getLoggerForClass();
 
-    private int eolInt = JMeterUtils.getPropDefault("tcp.eolByte", 1000); // 
default is not in range
+    private int eolInt = JMeterUtils.getPropDefault("tcp.eolByte", 1000); // 
$NON-NLS-1$
+    // default is not in range of a byte
 
     private byte eolByte = (byte) eolInt; // -128 to +127
 
@@ -60,25 +64,6 @@
     /*
      * (non-Javadoc)
      *
-     * @see org.apache.jmeter.protocol.tcp.sampler.TCPClient#setupTest()
-     */
-    public void setupTest() {
-        log.info("setuptest");
-    }
-
-    /*
-     * (non-Javadoc)
-     *
-     * @see org.apache.jmeter.protocol.tcp.sampler.TCPClient#teardownTest()
-     */
-    public void teardownTest() {
-        log.info("teardowntest");
-
-    }
-
-    /*
-     * (non-Javadoc)
-     *
      * @see 
org.apache.jmeter.protocol.tcp.sampler.TCPClient#write(java.io.OutputStream,
      *      java.lang.String)
      */
@@ -111,10 +96,10 @@
         }
     }
 
-    /*
-     * (non-Javadoc)
-     *
-     * @see 
org.apache.jmeter.protocol.tcp.sampler.TCPClient#read(java.io.InputStream)
+    /**
+     * Reads data until the defined EOL byte is reached.
+     * If there is no EOL byte defined, then reads until
+     * the end of the stream is reached.
      */
     public String read(InputStream is) {
         byte[] buffer = new byte[4096];



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to