1 19 20 package org.apache.jmeter.module.loadgenerator.spi.impl; 21 22 import java.awt.Image ; 23 import java.util.ArrayList ; 24 import java.util.Collection ; 25 import org.apache.jmeter.module.integration.*; 26 import org.apache.jmeter.util.JMeterUtils; 27 import org.netbeans.modules.loadgenerator.spi.Engine; 28 import org.netbeans.modules.loadgenerator.spi.ProcessInstance; 29 30 34 public class JMeterEngine extends Engine { 35 private static final Collection <String > EXTENSIONS = new ArrayList <String >(); 36 37 static { 38 EXTENSIONS.add("jmx"); 39 } 40 41 public Collection <String > getSupportedExtensions() { 42 return EXTENSIONS; 43 } 44 45 public synchronized ProcessInstance prepareInstance(final String scriptPath) { 46 ProcessInstance instance = new JMeterProcess(this); 47 return instance; 48 } 49 50 public Image getIcon() { 51 return JMeterUtils.getImage("feather.gif").getImage(); 52 } 53 54 public String getDisplayName() { 55 return "JMeter"; 56 } 57 58 public boolean isReady() { 59 return true; 60 } 61 } 62 | Popular Tags |