org.apache.jmeter.protocol.tcp.sampler.TCPOnewayClientImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tcp-sampler-oneway Show documentation
Show all versions of tcp-sampler-oneway Show documentation
A TCP Sampler that deals without responses (i.e. one way)
package org.apache.jmeter.protocol.tcp.sampler;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TCPOnewayClientImpl extends TCPClientImpl {
private static final Logger LOGGER = LoggerFactory.getLogger(TCPOnewayClientImpl.class);
public TCPOnewayClientImpl() {
LOGGER.debug("Custom tcp client handler created...");
}
@Override
public void write(OutputStream outputStream, InputStream inputStream) throws IOException {
LOGGER.debug("Write called (InputStream)...");
super.write(outputStream, inputStream);
}
@Override
public void write(OutputStream outputStream, String s) throws IOException {
LOGGER.debug("Write called (String)...");
super.write(outputStream, s);
}
@Override
public String read(InputStream inputStream) throws ReadException {
LOGGER.debug("Read called...");
return "";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy