Class OperationBean
java.lang.Object
uk.ac.diamond.scisoft.analysis.processing.bean.OperationBean
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]int[]getDataDimensionsForRank(int rank) Get the path to the file to be processedbooleangetName()intGet the absolute path the processed data should be saved asintgetXmx()booleanbooleanbooleanbooleanvoidsetAxesNames(List<String>[] axesNames) Set axes names for each dimension of the dataset setvoidsetDataDimensions(int[] dataDimensions) Set which dimensions of the dataset are the detector dimensions Not needed if the scan rank is setvoidsetDataKey(String dataKey) Path to the node containing the unique keys for live processingvoidsetDatasetPath(String datasetPath) Set the path to the dataset, or NXData node, to be processedvoidsetDeleteProcessingFile(boolean deleteProcessingFile) Set whether the processing chain file should be deleted when processing is completevoidsetFilePath(String fileName) Set the path to the file to be processedvoidsetLinkParentEntry(boolean linkEntry) Set whether a link to the input data should be included in the processedvoidsetMonitorForOverwrite(boolean overwrite) Set whether the raw data is going to be overwrittenvoidSet the name of the processingvoidsetNumberOfCores(int numberOfCores) Set the number of core to be usedvoidsetOutputFilePath(String outputFilePath) Set the absolute path the processed data should be saved asvoidsetProcessingPath(String processingPath) Set the path to the NeXus file containing the processing chainvoidsetPublisherURI(String publisherURI) voidsetReadable(boolean readable) Sets whether the processed file should be readable while being written tovoidsetRunDirectory(String runDirectory) Set the run directory for the logsvoidsetScanRank(Integer scanRank) Set the rank of the scan Not needed if the data dimensions are setvoidsetSlicing(String slicing) Set a string representation of the slicing of the datasetvoidsetTemplatePath(String templatePath) voidsetTimeOut(int timeOut) Set the timeOut for live processing in msvoidsetUseRabbitMQ(boolean useRabbitMQ) voidSet the Xmx value used for the processing runner
-
Constructor Details
-
OperationBean
public OperationBean()
-
-
Method Details
-
getDataKey
-
setDataKey
Description copied from interface:IOperationBeanPath to the node containing the unique keys for live processing- Specified by:
setDataKeyin interfaceIOperationBean- Parameters:
dataKey-
-
getFilePath
Description copied from interface:IOperationBeanGet the path to the file to be processed- Specified by:
getFilePathin interfaceIOperationBean- Returns:
- filePath
-
setFilePath
Description copied from interface:IOperationBeanSet the path to the file to be processed- Specified by:
setFilePathin interfaceIOperationBean- Parameters:
fileName-
-
getOutputFilePath
Description copied from interface:IOperationBeanGet the absolute path the processed data should be saved as- Specified by:
getOutputFilePathin interfaceIOperationBean- Returns:
- outputPath
-
setOutputFilePath
Description copied from interface:IOperationBeanSet the absolute path the processed data should be saved as- Specified by:
setOutputFilePathin interfaceIOperationBean- Parameters:
outputFilePath-
-
getDatasetPath
-
setDatasetPath
Description copied from interface:IOperationBeanSet the path to the dataset, or NXData node, to be processed- Specified by:
setDatasetPathin interfaceIOperationBean- Parameters:
datasetPath-
-
getSlicing
-
setSlicing
Description copied from interface:IOperationBeanSet a string representation of the slicing of the dataset- Specified by:
setSlicingin interfaceIOperationBean- Parameters:
slicing-
-
getProcessingPath
-
setProcessingPath
Description copied from interface:IOperationBeanSet the path to the NeXus file containing the processing chain- Specified by:
setProcessingPathin interfaceIOperationBean- Parameters:
processingPath-
-
setAxesNames
Description copied from interface:IOperationBeanSet axes names for each dimension of the dataset set- Specified by:
setAxesNamesin interfaceIOperationBean- Parameters:
axesNames-
-
getAxesNames
-
isDeleteProcessingFile
public boolean isDeleteProcessingFile() -
setDeleteProcessingFile
public void setDeleteProcessingFile(boolean deleteProcessingFile) Description copied from interface:IOperationBeanSet whether the processing chain file should be deleted when processing is complete- Specified by:
setDeleteProcessingFilein interfaceIOperationBean- Parameters:
deleteProcessingFile-
-
getXmx
-
setXmx
Description copied from interface:IOperationBeanSet the Xmx value used for the processing runner- Specified by:
setXmxin interfaceIOperationBean- Parameters:
xmx-
-
getDataDimensionsForRank
public int[] getDataDimensionsForRank(int rank) -
getDataDimensions
public int[] getDataDimensions() -
setDataDimensions
public void setDataDimensions(int[] dataDimensions) Description copied from interface:IOperationBeanSet which dimensions of the dataset are the detector dimensions Not needed if the scan rank is set- Specified by:
setDataDimensionsin interfaceIOperationBean- Parameters:
dataDimensions-
-
isReadable
public boolean isReadable() -
setReadable
public void setReadable(boolean readable) Description copied from interface:IOperationBeanSets whether the processed file should be readable while being written to- Specified by:
setReadablein interfaceIOperationBean- Parameters:
readable-
-
getNumberOfCores
public int getNumberOfCores() -
setNumberOfCores
public void setNumberOfCores(int numberOfCores) Description copied from interface:IOperationBeanSet the number of core to be used- Specified by:
setNumberOfCoresin interfaceIOperationBean- Parameters:
numberOfCores-
-
getPublisherURI
-
setPublisherURI
-
setScanRank
Description copied from interface:IOperationBeanSet the rank of the scan Not needed if the data dimensions are set- Specified by:
setScanRankin interfaceIOperationBean- Parameters:
scanRank-
-
getScanRank
-
getTimeOut
public int getTimeOut() -
setTimeOut
public void setTimeOut(int timeOut) Description copied from interface:IOperationBeanSet the timeOut for live processing in ms- Specified by:
setTimeOutin interfaceIOperationBean- Parameters:
timeOut-
-
setLinkParentEntry
public void setLinkParentEntry(boolean linkEntry) Description copied from interface:IOperationBeanSet whether a link to the input data should be included in the processed- Specified by:
setLinkParentEntryin interfaceIOperationBean- Parameters:
linkEntry-
-
getLinkParentEntry
public boolean getLinkParentEntry() -
setMonitorForOverwrite
public void setMonitorForOverwrite(boolean overwrite) Set whether the raw data is going to be overwritten- Specified by:
setMonitorForOverwritein interfaceIOperationBean- Parameters:
overwrite-
-
isMonitorForOverwrite
public boolean isMonitorForOverwrite() -
setName
Description copied from interface:IOperationBeanSet the name of the processing- Specified by:
setNamein interfaceIOperationBean- Parameters:
name-
-
setRunDirectory
Description copied from interface:IOperationBeanSet the run directory for the logs- Specified by:
setRunDirectoryin interfaceIOperationBean- Parameters:
runDirectory-
-
getRunDirectory
-
getName
-
getTemplatePath
-
setTemplatePath
-
isUseRabbitMQ
public boolean isUseRabbitMQ() -
setUseRabbitMQ
public void setUseRabbitMQ(boolean useRabbitMQ)
-