Package de.gmxhome.conrad.jpos.jpos_base
Class DirectIO
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.DirectIO
- All Implemented Interfaces:
Runnable
Output request executor for common method DirectIO.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Common method DirectIO parameter data, see UPOS specification.Common method DirectIO parameter object, see UPOS specification.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionDirectIO(JposCommonProperties props, int command, int[] datum, Object object)
Constructor.DirectIO(JposCommonProperties props, int command, int datum, Object object)
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionFactory for output complete events.int
Common method DirectIO parameter command, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createErrorEvent, createIdleEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Field Details
-
Datum
public final int DatumCommon method DirectIO parameter data, see UPOS specification. -
Object
Common method DirectIO parameter object, see UPOS specification.
-
-
Constructor Details
-
DirectIO
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.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
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 classJposOutputRequest
- Returns:
- The resulting output complete event or null if no output complete event shall be enqueued.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-