Package gda.commandqueue
package gda.commandqueue
-
ClassDescriptionThe Command interface for commands to be stored in CommandQueue and processed by FindableProcessorQueue A Command can be run, paused, aborted and has a state.The class provides default implementations Command interface methods: getDescription and getState The developer need only subclass this class and define the
runmethod.Bean for aCommand, so that they can run on the new queueing system,A class that is used to uniquely identify each entry in a CommandQueue The static methodgenerateCommandIdis used to create an instance of CommandIdImplementation ofIBeanProcessfor running aCommand.CommandQueue is an implementation of Queue for handling Command objectsExtendsCommandBeanto add additional fields describing the scan.FindableProcessorQueue implements Processor and Queue The implementation of Queue is done using delegation to the Queue object set using the setQueue methodA scan servlet, based onScanServlet, but which can run GDA8 scans based onCommandas well as GD9ScanBeans.JythonScriptFileRunnerCommand is an implementation of Command whose run method runs the script file set by the setScriptFile method in the CommandRunnerJythonScriptFileRunnerCommand is an implementation of Command whose run method runs the script file set by the setScriptFile method in the CommandRunnerProcessor handles the processing of a collection of items, one item at a time.class returned from Processor getCurrentItem method Used to get information to display to usersQueue is used to handle a queue of Command objects As well as typical Queue methods such as addToTail, removeHead there are methods to move items around within the Queue referenced by unique CommandIds.QueuedCommandSummary is used to provide a summary of the Commands in a CommandQueue For contains the unique CommandId that can be used in calls to manipulate the Queue and a descriptive string to display to the user