Mercurial > stress-tester
changeset 1068:4cc986525893
dpdk, pcap - emitter plugins
author | Devel 2 |
---|---|
date | Mon, 27 Apr 2020 14:28:29 +0200 |
parents | 2f85c6a344c5 |
children | 7f90462908c1 |
files | stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketEmitter.java stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitter.java |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketEmitter.java Mon Apr 27 13:39:46 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketEmitter.java Mon Apr 27 14:28:29 2020 +0200 @@ -1,9 +1,14 @@ package com.passus.st.emitter.raw; +import com.passus.commons.annotations.Plugin; import com.passus.dpdk.DpdkAO; +import com.passus.st.plugin.PluginConstants; +@Plugin(name = DpdkUnidirectionalRawPacketEmitter.TYPE, category = PluginConstants.CATEGORY_EMITTER) public class DpdkUnidirectionalRawPacketEmitter extends UnidirectionalRawPacketEmitter<DpdkAO> { + public static final String TYPE = "dpdk"; + @Override protected UnidirectionalRawPacketWorker<DpdkAO>[] createWorkersArray(int workersNum) { return new DpdkUnidirectionalRawPacketWorker[workersNum];
--- a/stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitter.java Mon Apr 27 13:39:46 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitter.java Mon Apr 27 14:28:29 2020 +0200 @@ -1,7 +1,13 @@ package com.passus.st.emitter.raw; +import com.passus.commons.annotations.Plugin; +import com.passus.st.plugin.PluginConstants; + +@Plugin(name = PcapUnidirectionalRawPacketEmitter.TYPE, category = PluginConstants.CATEGORY_EMITTER) public class PcapUnidirectionalRawPacketEmitter extends UnidirectionalRawPacketEmitter<PcapOutput> { + public static final String TYPE = "pcap"; + @Override protected UnidirectionalRawPacketWorker<PcapOutput>[] createWorkersArray(int workersNum) { return new PcapUnidirectionalRawPacketWorker[workersNum];