com.alarmpoint.spectrum.cli
Class SpectrumCLIManager

java.lang.Object
  extended by com.alarmpoint.spectrum.cli.SpectrumCLIManager
All Implemented Interfaces:
SpectrumManager

public class SpectrumCLIManager
extends java.lang.Object
implements SpectrumManager

Manager Class to handle the interaction with the Spectrum CLI Commands

Author:
Mike Bennett

Constructor Summary
SpectrumCLIManager(java.lang.String commandPath)
          Creates a new instance of SpectrumCLIManager
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpectrumCLIManager

public SpectrumCLIManager(java.lang.String commandPath)
Creates a new instance of SpectrumCLIManager

Parameters:
commandPath - path where the spectrum commands to be executed are maintained
Method Detail

querySpectrum

public java.util.List<?> querySpectrum(java.lang.String command,
                                       java.lang.String className)
                                throws SpectrumException
Runs a CLI Command against the Spectrum Server

Specified by:
querySpectrum in interface SpectrumManager
Parameters:
command - String command to run
className - name of the class that will contain the results
Returns:
Collection of results
Throws:
SpectrumException - if the command fails to run successfully

setCommandPath

public void setCommandPath(java.lang.String commandPath)

getCommandPath

public java.lang.String getCommandPath()