|
IBM LANDP J/XFS Wrappers | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.landp.device.internal.LandpDeviceService | +--com.ibm.landp.device.LandpIBM47xxMSD
This class implements the necessary functionality for the IBM 4777 MSR device. It extends the LandpDeviceService class and implements the rest of the methods, as well as those methods of the IJxfsMagStripeInterface that actually perform the reading and writing of tracks.
Field Summary | |
static java.lang.String |
copyrightNotice
|
Fields inherited from class com.ibm.landp.device.internal.LandpDeviceService |
controls,
DESCRIPTION,
INTERNAL_TIMEOUT,
isShutdownActive,
landpServer,
localDeviceInfo,
logger,
openCount,
ORIGIN,
physicalDeviceDescription,
physicalDeviceName,
queue,
status,
subclass,
version |
Fields inherited from interface com.jxfs.service.IJxfsMagStripeService |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.jxfs.forum.support.IQueueResponse |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.ibm.landp.device.internal.msd.ILandpMagStripeService |
copyrightNotice |
Fields inherited from interface com.jxfs.service.IJxfsBaseService |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Constructor Summary | |
LandpIBM47xxMSD()
Default constructor. |
Method Summary | |
void |
cancel(int identification_id,
int control_id)
Attempts to cancel the operation identified by the identification ID. |
boolean |
checkInternal()
Implemented just to keep the compiler happy |
boolean |
claim(int timeout,
int control_id)
Sets up a claim operation for a specific device control. |
void |
claimInternal(int control_id)
Simply logs the fact that the device has been claimed |
int |
close(int control_id)
Closes the device for the calling device control. |
void |
closeInternal(com.jxfs.forum.support.IJxfsServiceJob job)
Implements the operations necessary for a DC to close the device. |
int |
getDeviceType(int control_id)
Identifies which type of mag stripe device this is. |
com.jxfs.general.JxfsMediaStatus |
getMediaStatus(int control_id)
Returns the state of the media in the device. |
com.jxfs.control.msd.JxfsMSDTracks |
getSupportedReadTracks(int control_id)
Returns the tracks that this device supports for reading. |
com.jxfs.control.msd.JxfsMSDTracks |
getSupportedWriteTracks(int control_id)
Returns the tracks that this device supports for writing. |
int |
open(int control_id)
Opens the device for a device control to use. |
void |
openInternal(com.jxfs.forum.support.IJxfsServiceJob job)
Implements the operations necessary for a DC to open the device. |
int |
readData(com.jxfs.control.msd.JxfsMSDTrackSelection tracksToRead,
int control_id)
Creates a ReadTracksJob and then returns an identification ID for the operation. |
void |
readInternal(com.ibm.landp.device.internal.msd.ReadTracksJob job,
com.jxfs.control.msd.JxfsMSDTrackSelection tracksToRead)
Implements the operations necessary for a readTracks operation. |
boolean |
release(int timeout,
int control_id)
Sets up a release operation for a specific device control. |
void |
releaseInternal(int control_id)
Simply logs the fact that the device claim has been released |
int |
writeData(java.util.Vector wdata,
boolean newCard,
int control_id)
Creates a WriteTracksJob and then returns an identification ID for the operation. |
void |
writeInternal(com.ibm.landp.device.internal.msd.WriteTracksJob job,
java.util.Vector wdata)
Implements the operations necessary for a writeTracks operation. |
Methods inherited from class com.ibm.landp.device.internal.LandpDeviceService |
checkShutdown,
connectionFailure,
deregisterControl,
directIO,
getDeviceFirmwareVersion,
getDeviceServiceVersion,
getFirmwareStatus,
getPhysicalDeviceDescription,
getPhysicalDeviceName,
getRepositoryFirmwareVersion,
getStatus,
initialize,
isPowerSaveModeSupported,
registerControl,
shutdown,
updateFirmware,
wakeUpFromPowerSave |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String copyrightNotice
Constructor Detail |
public LandpIBM47xxMSD()
Method Detail |
public int open(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public int close(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public boolean claim(int timeout, int control_id) throws com.jxfs.events.JxfsException
timeout
- The amount of time in millis before stopping the claim attempt.control_id
- The control ID of the calling DC.public boolean release(int timeout, int control_id) throws com.jxfs.events.JxfsException
timeout
- The amount of time in millis before stopping the release attempt.control_id
- The control ID of the calling DC.public void cancel(int identification_id, int control_id) throws com.jxfs.events.JxfsException
identification_id
- The identification ID of the operation to be cancelled.control_id
- The control ID of the calling DC.public int getDeviceType(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public int readData(com.jxfs.control.msd.JxfsMSDTrackSelection tracksToRead, int control_id) throws com.jxfs.events.JxfsException
tracksToRead
- Object that identifies which tracks are to be read from
the card.control_id
- The control ID of the calling DC.public int writeData(java.util.Vector wdata, boolean newCard, int control_id) throws com.jxfs.events.JxfsException
wdata
- Vector containing three elements representing the data to
write to track 1 2 and 3. If any element is null then that
track is not to be written.control_id
- The control ID of the calling DC.public com.jxfs.general.JxfsMediaStatus getMediaStatus(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public com.jxfs.control.msd.JxfsMSDTracks getSupportedReadTracks(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public com.jxfs.control.msd.JxfsMSDTracks getSupportedWriteTracks(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public boolean checkInternal()
public void openInternal(com.jxfs.forum.support.IJxfsServiceJob job) throws com.jxfs.events.JxfsException
job
- Object implementing the IJxfsServiceJob interfacepublic void closeInternal(com.jxfs.forum.support.IJxfsServiceJob job) throws com.jxfs.events.JxfsException
job
- Object implementing the IJxfsServiceJob interfacepublic void claimInternal(int control_id)
control_id
- The control ID of the calling DC.public void releaseInternal(int control_id)
control_id
- The control ID of the calling DC.public void readInternal(com.ibm.landp.device.internal.msd.ReadTracksJob job, com.jxfs.control.msd.JxfsMSDTrackSelection tracksToRead)
job
- Object implementing the IJxfsServiceJob interfacetracksToRead
- Specifies which tracks are to be read from the cardpublic void writeInternal(com.ibm.landp.device.internal.msd.WriteTracksJob job, java.util.Vector wdata)
job
- Object implementing the IJxfsServiceJob interfacetracksToRead
- Specifies the data to write to the card
|
IBM LANDP J/XFS Wrappers | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |