31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task loads a sampler engine in a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class LoadEngine extends EnhancedTask { |
public class LoadEngine extends EnhancedTask { |
38 |
private String engine; |
private String engine; |
39 |
private int channel; |
private int channel; |
40 |
|
|
41 |
|
/** |
42 |
|
* Creates new instance of <code>LoadEngine</code>. |
43 |
|
* @param engine The name of the engine to load. |
44 |
|
* @param channel The number of the sampler channel |
45 |
|
* the deployed engine should be assigned to. |
46 |
|
*/ |
47 |
public |
public |
48 |
LoadEngine(String engine, int channel) { |
LoadEngine(String engine, int channel) { |
49 |
this.engine = engine; |
this.engine = engine; |
55 |
setDescription(i18n.getMessage("LoadEngine.description", objs)); |
setDescription(i18n.getMessage("LoadEngine.description", objs)); |
56 |
} |
} |
57 |
|
|
58 |
|
/** The entry point of the task. */ |
59 |
public void |
public void |
60 |
run() { |
run() { |
61 |
try { CC.getClient().loadSamplerEngine(engine, channel); } |
try { CC.getClient().loadSamplerEngine(engine, channel); } |