Class OperationBean

java.lang.Object
uk.ac.diamond.scisoft.analysis.processing.bean.OperationBean
All Implemented Interfaces:
IOperationBean

public class OperationBean extends Object implements IOperationBean
Bean to serialise with JSON and be sent to the server, and deserialise in the processing headless runner. JSON is used rather than the direct object because we may want to have a python server, and JSON files allow the headless runner input file to be built by hand
  • Constructor Details

    • OperationBean

      public OperationBean()
  • Method Details

    • getDataKey

      public String getDataKey()
    • setDataKey

      public void setDataKey(String dataKey)
      Description copied from interface: IOperationBean
      Path to the node containing the unique keys for live processing
      Specified by:
      setDataKey in interface IOperationBean
      Parameters:
      dataKey -
    • getFilePath

      public String getFilePath()
      Description copied from interface: IOperationBean
      Get the path to the file to be processed
      Specified by:
      getFilePath in interface IOperationBean
      Returns:
      filePath
    • setFilePath

      public void setFilePath(String fileName)
      Description copied from interface: IOperationBean
      Set the path to the file to be processed
      Specified by:
      setFilePath in interface IOperationBean
      Parameters:
      fileName -
    • getOutputFilePath

      public String getOutputFilePath()
      Description copied from interface: IOperationBean
      Get the absolute path the processed data should be saved as
      Specified by:
      getOutputFilePath in interface IOperationBean
      Returns:
      outputPath
    • setOutputFilePath

      public void setOutputFilePath(String outputFilePath)
      Description copied from interface: IOperationBean
      Set the absolute path the processed data should be saved as
      Specified by:
      setOutputFilePath in interface IOperationBean
      Parameters:
      outputFilePath -
    • getDatasetPath

      public String getDatasetPath()
    • setDatasetPath

      public void setDatasetPath(String datasetPath)
      Description copied from interface: IOperationBean
      Set the path to the dataset, or NXData node, to be processed
      Specified by:
      setDatasetPath in interface IOperationBean
      Parameters:
      datasetPath -
    • getSlicing

      public String getSlicing()
    • setSlicing

      public void setSlicing(String slicing)
      Description copied from interface: IOperationBean
      Set a string representation of the slicing of the dataset
      Specified by:
      setSlicing in interface IOperationBean
      Parameters:
      slicing -
    • getProcessingPath

      public String getProcessingPath()
    • setProcessingPath

      public void setProcessingPath(String processingPath)
      Description copied from interface: IOperationBean
      Set the path to the NeXus file containing the processing chain
      Specified by:
      setProcessingPath in interface IOperationBean
      Parameters:
      processingPath -
    • setAxesNames

      public void setAxesNames(List<String>[] axesNames)
      Description copied from interface: IOperationBean
      Set axes names for each dimension of the dataset set
      Specified by:
      setAxesNames in interface IOperationBean
      Parameters:
      axesNames -
    • getAxesNames

      public List<String>[] getAxesNames()
    • isDeleteProcessingFile

      public boolean isDeleteProcessingFile()
    • setDeleteProcessingFile

      public void setDeleteProcessingFile(boolean deleteProcessingFile)
      Description copied from interface: IOperationBean
      Set whether the processing chain file should be deleted when processing is complete
      Specified by:
      setDeleteProcessingFile in interface IOperationBean
      Parameters:
      deleteProcessingFile -
    • getXmx

      public String getXmx()
    • setXmx

      public void setXmx(String xmx)
      Description copied from interface: IOperationBean
      Set the Xmx value used for the processing runner
      Specified by:
      setXmx in interface IOperationBean
      Parameters:
      xmx -
    • getDataDimensionsForRank

      public int[] getDataDimensionsForRank(int rank)
    • getDataDimensions

      public int[] getDataDimensions()
    • setDataDimensions

      public void setDataDimensions(int[] dataDimensions)
      Description copied from interface: IOperationBean
      Set which dimensions of the dataset are the detector dimensions Not needed if the scan rank is set
      Specified by:
      setDataDimensions in interface IOperationBean
      Parameters:
      dataDimensions -
    • isReadable

      public boolean isReadable()
    • setReadable

      public void setReadable(boolean readable)
      Description copied from interface: IOperationBean
      Sets whether the processed file should be readable while being written to
      Specified by:
      setReadable in interface IOperationBean
      Parameters:
      readable -
    • getNumberOfCores

      public int getNumberOfCores()
    • setNumberOfCores

      public void setNumberOfCores(int numberOfCores)
      Description copied from interface: IOperationBean
      Set the number of core to be used
      Specified by:
      setNumberOfCores in interface IOperationBean
      Parameters:
      numberOfCores -
    • getPublisherURI

      public String getPublisherURI()
    • setPublisherURI

      public void setPublisherURI(String publisherURI)
    • setScanRank

      public void setScanRank(Integer scanRank)
      Description copied from interface: IOperationBean
      Set the rank of the scan Not needed if the data dimensions are set
      Specified by:
      setScanRank in interface IOperationBean
      Parameters:
      scanRank -
    • getScanRank

      public Integer getScanRank()
    • getTimeOut

      public int getTimeOut()
    • setTimeOut

      public void setTimeOut(int timeOut)
      Description copied from interface: IOperationBean
      Set the timeOut for live processing in ms
      Specified by:
      setTimeOut in interface IOperationBean
      Parameters:
      timeOut -
    • setLinkParentEntry

      public void setLinkParentEntry(boolean linkEntry)
      Description copied from interface: IOperationBean
      Set whether a link to the input data should be included in the processed
      Specified by:
      setLinkParentEntry in interface IOperationBean
      Parameters:
      linkEntry -
    • getLinkParentEntry

      public boolean getLinkParentEntry()
    • setMonitorForOverwrite

      public void setMonitorForOverwrite(boolean overwrite)
      Set whether the raw data is going to be overwritten
      Specified by:
      setMonitorForOverwrite in interface IOperationBean
      Parameters:
      overwrite -
    • isMonitorForOverwrite

      public boolean isMonitorForOverwrite()
    • setName

      public void setName(String name)
      Description copied from interface: IOperationBean
      Set the name of the processing
      Specified by:
      setName in interface IOperationBean
      Parameters:
      name -
    • setRunDirectory

      public void setRunDirectory(String runDirectory)
      Description copied from interface: IOperationBean
      Set the run directory for the logs
      Specified by:
      setRunDirectory in interface IOperationBean
      Parameters:
      runDirectory -
    • getRunDirectory

      public String getRunDirectory()
    • getName

      public String getName()
    • getTemplatePath

      public String getTemplatePath()
    • setTemplatePath

      public void setTemplatePath(String templatePath)
    • isUseRabbitMQ

      public boolean isUseRabbitMQ()
    • setUseRabbitMQ

      public void setUseRabbitMQ(boolean useRabbitMQ)