Class DirectIO

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.DirectIO
All Implemented Interfaces:
Runnable

public class DirectIO extends JposOutputRequest
Output request executor for common method DirectIO.
  • Field Details

    • Datum

      public final int Datum
      Common method DirectIO parameter data, see UPOS specification.
    • Object

      public final Object Object
      Common method DirectIO parameter object, see UPOS specification.
  • Constructor Details

    • DirectIO

      public DirectIO(JposCommonProperties props, int command, int[] datum, Object object)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      command - Command number, see UPOS specification.
      datum - Integer value contained in data array, see UPOS specification.
      object - Additional data, see UPOS specification.
    • DirectIO

      @Deprecated public DirectIO(JposCommonProperties props, int command, int datum, Object object)
      Deprecated.
      Constructor. Stores given parameters for later use. Since this version does not store the original parameter data as passed by the application (this would be an int[1]), any change of that value will not be passed back to the application at the end of the invoke method. Therefore, this constructor is deprecated now. You should use the other constructor instead or (better) use the default implementation of method directIO in JposCommonProperties for creation within an implementation of the validation or final part for a specific device service.
      Parameters:
      props - Property set of device service.
      command - Command number, see UPOS specification.
      datum - Integer value contained in data array, see UPOS specification.
      object - Additional data, see UPOS specification.
  • Method Details

    • getCommand

      public int getCommand()
      Common method DirectIO parameter command, see UPOS specification.
      Returns:
      Parameter command.
    • createOutputEvent

      public JposOutputCompleteEvent createOutputEvent()
      Description copied from class: JposOutputRequest
      Factory for output complete events. Must be overwritten whenever a device specific output complete event shall be created.
      Overrides:
      createOutputEvent in class JposOutputRequest
      Returns:
      The resulting output complete event or null if no output complete event shall be enqueued.
    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.