|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.services.landp.MsreLandp
Field Summary | |
---|---|
protected ReadListener |
aReadListener
|
protected TimeoutListener |
aTimeoutListener
|
protected WriteListener |
aWriteListener
|
boolean |
doTrace
|
static int |
RC_ALREADY_OPENED
|
static int |
RC_IN_PROCESS
|
static int |
RC_INVALID_DATA
|
static int |
RC_NOT_OPENED
|
static int |
RC_OK
|
java.lang.String |
serverName
|
static int |
TIMEOUT_FOREVER
|
Constructor Summary | |
---|---|
MsreLandp()
This constructor creates the CPRB object and initializes the LANDP supervisor. |
Method Summary | |
---|---|
void |
addReadListener(ReadListener newListener)
|
void |
addTimeoutListener(TimeoutListener newListener)
|
void |
addWriteListener(WriteListener newListener)
|
int |
cancel()
Cancels a previous read or write operation. |
int |
close()
Closes the device. |
protected void |
fireRead(ReadEvent event)
Supports listener events. |
protected void |
fireTimedOut(TimeoutEvent event)
Supports listener events. |
protected void |
fireWritten(WriteEvent event)
Supports listener events. |
int |
getAllTrackParams(MsreTrackParams[] tp)
Gets the track parameters for all three tracks |
int |
getCapabilities(MsreCapabilities cap)
Gets the device capabilities. |
int |
getCounters(MsreErrorCounters ec)
Gets the error counters. |
DeviceStatus |
getStatus()
Gets the device status: OPEN,CLOSED,READING or WRITING |
int |
getTrackParams(int trackNum,
MsreTrackParams tp)
Gets track parameters |
int |
getTrackSelFlags(MsreTrackSelFlags tf)
Gets the track selection flags. |
int |
open()
Opens the device with its default server name. |
int |
open(java.lang.String name)
Opens the device. |
int |
read()
Prepares (arms) the device for reading. |
int |
read(int timeout)
Prepares (arms) the device for reading. |
void |
removeReadListener(ReadListener newListener)
|
void |
removeTimeoutListener(TimeoutListener newListener)
|
void |
removeWriteListener(WriteListener newListener)
|
void |
run()
Waits for event thread main method. |
int |
setAllTrackParams(MsreTrackParams[] tps)
Sets the track parameters for all three tracks. |
int |
setTrackParams(int trackNum,
MsreTrackParams tp)
Sets track parameter.s |
int |
setTrackSelFlags(MsreTrackSelFlags tf)
Sets the track selection flags. |
int |
write(java.lang.String data)
Prepares the device for writing. |
int |
write(java.lang.String data,
int timeout)
Prepares the device for writing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TIMEOUT_FOREVER
public static final int RC_OK
public static final int RC_ALREADY_OPENED
public static final int RC_NOT_OPENED
public static final int RC_IN_PROCESS
public static final int RC_INVALID_DATA
public java.lang.String serverName
public boolean doTrace
protected transient ReadListener aReadListener
protected transient WriteListener aWriteListener
protected transient TimeoutListener aTimeoutListener
Constructor Detail |
public MsreLandp() throws LandpException
LandpException
- thrown when LANDP is not loaded.Method Detail |
public void addReadListener(ReadListener newListener)
newListener
- ReadListenerpublic void addTimeoutListener(TimeoutListener newListener)
newListener
- TimeoutListenerpublic void addWriteListener(WriteListener newListener)
newListener
- WriteListenerpublic int cancel() throws LandpException
LandpException
- thrown when the remote request returned some unexpected error.public int close() throws LandpException
LandpException
- thrown when the remote request returned some unexpected error.protected void fireRead(ReadEvent event)
event
- ReadEventprotected void fireTimedOut(TimeoutEvent event)
event
- TimeoutEventprotected void fireWritten(WriteEvent event)
event
- WriteEventpublic int getAllTrackParams(MsreTrackParams[] tp) throws LandpException
tp
- - array of track parameters
LandpException
- thrown when the remote request returned some unexpected error.public int getCapabilities(MsreCapabilities cap) throws LandpException
cap
- destination - capabilities object
LandpException
- thrown when the remote request returned some unexpected error.public int getCounters(MsreErrorCounters ec) throws LandpException
ec
- destination - error counter object
LandpException
- thrown when the remote request returned some unexpected error.public DeviceStatus getStatus()
public int getTrackParams(int trackNum, MsreTrackParams tp) throws LandpException
trackNum
- - number of track, 1 to 3.tp
- destination - track parameters
LandpException
- thrown when the remote request returned some unexpected error.public int getTrackSelFlags(MsreTrackSelFlags tf) throws LandpException
tf
- destination flags
LandpException
- thrown when the remote request returned some unexpected error.public int open() throws LandpException
LandpException
- thrown when the remote request returned some unexpected error.public int open(java.lang.String name) throws LandpException
name
- - the LANDP MSRE server name.
LandpException
- thrown when the remote request returned some unexpected error.public int read() throws LandpException
LandpException
- thrown when the remote request returned some unexpected error.public int read(int timeout) throws LandpException
timeout
- - Time out in seconds.
LandpException
- thrown when the remote request returned some unexpected error.public void removeReadListener(ReadListener newListener)
newListener
- ReadListenerpublic void removeTimeoutListener(TimeoutListener newListener)
newListener
- TimeoutListenerpublic void removeWriteListener(WriteListener newListener)
newListener
- WriteListenerpublic void run()
run
in interface java.lang.Runnable
public int setAllTrackParams(MsreTrackParams[] tps) throws LandpException
tps
- array of track parameters
LandpException
- thrown when the remote request returned some unexpected error.public int setTrackParams(int trackNum, MsreTrackParams tp) throws LandpException
trackNum
- - number of track, 1 to 3.tp
- - track parameters
LandpException
- thrown when the remote request returned some unexpected error.public int setTrackSelFlags(MsreTrackSelFlags tf) throws LandpException
LandpException
- thrown when the remote request returned some unexpected error.public int write(java.lang.String data) throws LandpException
data
- String - the data to write to the magnetic stripe.
LandpException
- thrown when the remote request returned some unexpected error.public int write(java.lang.String data, int timeout) throws LandpException
timeout
- - Time out in seconds.data
- String - the data to write to the stripe.
LandpException
- thrown when the remote request returned some unexpected error.
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |