public class SpectrumCLIManager extends java.lang.Object implements SpectrumManager
Constructor and Description |
---|
SpectrumCLIManager(java.lang.String commandPath)
Creates a new instance of SpectrumCLIManager
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandPath() |
java.util.List<?> |
querySpectrum(java.lang.String command,
java.lang.String className)
Runs a CLI Command against the Spectrum Server
|
void |
setCommandPath(java.lang.String commandPath) |
public SpectrumCLIManager(java.lang.String commandPath)
commandPath
- path where the spectrum commands to be executed are maintainedpublic java.util.List<?> querySpectrum(java.lang.String command, java.lang.String className) throws SpectrumException
querySpectrum
in interface SpectrumManager
command
- String command to runclassName
- name of the class that will contain the resultsSpectrumException
- if the command fails to run successfullypublic void setCommandPath(java.lang.String commandPath)
public java.lang.String getCommandPath()