java.lang.Objectcom.idtech.MinimagService
public class MinimagService
字段摘要 |
---|
从接口 jpos.JposConst 继承的字段 |
---|
JPOS_BC_DECIMAL, JPOS_BC_NIBBLE, JPOS_BC_NONE, JPOS_CFV_FIRMWARE_DIFFERENT, JPOS_CFV_FIRMWARE_NEWER, JPOS_CFV_FIRMWARE_OLDER, JPOS_CFV_FIRMWARE_SAME, JPOS_CFV_FIRMWARE_UNKNOWN, JPOS_CH_EXTERNAL, JPOS_CH_INTERACTIVE, JPOS_CH_INTERNAL, JPOS_E_BUSY, JPOS_E_CLAIMED, JPOS_E_CLOSED, JPOS_E_DISABLED, JPOS_E_EXISTS, JPOS_E_EXTENDED, JPOS_E_FAILURE, JPOS_E_ILLEGAL, JPOS_E_NOEXIST, JPOS_E_NOHARDWARE, JPOS_E_NOSERVICE, JPOS_E_NOTCLAIMED, JPOS_E_OFFLINE, JPOS_E_TIMEOUT, JPOS_EFIRMWARE_BAD_FILE, JPOS_EL_INPUT, JPOS_EL_INPUT_DATA, JPOS_EL_OUTPUT, JPOS_ER_CLEAR, JPOS_ER_CONTINUEINPUT, JPOS_ER_RETRY, JPOS_ESTATS_ERROR, JPOS_FOREVER, JPOS_PN_DISABLED, JPOS_PN_ENABLED, JPOS_PR_ADVANCED, JPOS_PR_NONE, JPOS_PR_STANDARD, JPOS_PS_OFF, JPOS_PS_OFF_OFFLINE, JPOS_PS_OFFLINE, JPOS_PS_ONLINE, JPOS_PS_UNKNOWN, JPOS_S_BUSY, JPOS_S_CLOSED, JPOS_S_ERROR, JPOS_S_IDLE, JPOS_SUCCESS, JPOS_SUE_POWER_OFF, JPOS_SUE_POWER_OFF_OFFLINE, JPOS_SUE_POWER_OFFLINE, JPOS_SUE_POWER_ONLINE, JPOS_SUE_UF_COMPLETE, JPOS_SUE_UF_COMPLETE_DEV_NOT_RESTORED, JPOS_SUE_UF_FAILED_DEV_NEEDS_FIRMWARE, JPOS_SUE_UF_FAILED_DEV_OK, JPOS_SUE_UF_FAILED_DEV_UNKNOWN, JPOS_SUE_UF_FAILED_DEV_UNRECOVERABLE, JPOS_SUE_UF_PROGRESS, JPOSERR, JPOSERREXT |
从接口 jpos.MSRConst 继承的字段 |
---|
JPOS_EMSR_END, JPOS_EMSR_LRC, JPOS_EMSR_PARITY, JPOS_EMSR_START, MSR_ERT_CARD, MSR_ERT_TRACK, MSR_TR_1, MSR_TR_1_2, MSR_TR_1_2_3, MSR_TR_1_2_3_4, MSR_TR_1_2_4, MSR_TR_1_3, MSR_TR_1_3_4, MSR_TR_1_4, MSR_TR_2, MSR_TR_2_3, MSR_TR_2_3_4, MSR_TR_2_4, MSR_TR_3, MSR_TR_3_4, MSR_TR_4 |
从接口 com.idtech.Notifior 继承的字段 |
---|
INPUT, OUTPUT |
从接口 com.idtech.serviceConst 继承的字段 |
---|
connectorClass, connectorName, physicalDesc, physicalName, serviceDesc, serviceVersion |
构造方法摘要 | |
---|---|
MinimagService(jpos.config.JposEntry entries)
Constructor called by instance factory to get setting. |
方法摘要 | |
---|---|
void |
checkHealth(int level)
Support Intenale check health. |
void |
claim(int timeout)
Claim the device. |
void |
clearInput()
Clear input data and error. |
void |
close()
free all resource. |
void |
compareFirmwareVersion(java.lang.String firmwareFileName,
int[] result)
NOT suport compare firmware version now. |
void |
deleteInstance()
|
void |
directIO(int command,
int[] data,
java.lang.Object object)
No dirctIO is possible. |
java.lang.String |
getAccountNumber()
Get the parse account number. |
boolean |
getAutoDisable()
Get autodisable flag. |
boolean |
getCapCompareFirmwareVersion()
No capabliity to compare firmware version. |
boolean |
getCapISO()
Support ISO card |
boolean |
getCapJISOne()
Support JIS one Card |
boolean |
getCapJISTwo()
Support JIS Two card |
int |
getCapPowerReporting()
No power reporting is possible |
boolean |
getCapStatisticsReporting()
No capablity to report statistics A JposException with error JPOS_E_CLOSED is thrown if Service is closed. |
boolean |
getCapTransmitSentinels()
Support this capblity for transmit sentinel. |
boolean |
getCapUpdateFirmware()
No capablity to update firmware. |
boolean |
getCapUpdateStatistics()
No capablity to update statistics A JposException with error JPOS_E_CLOSED is thrown if Service is closed. |
java.lang.String |
getCheckHealthText()
Get result string for last check health. |
boolean |
getClaimed()
Get claimed state. |
int |
getDataCount()
get the data event hold in the queue. |
boolean |
getDataEventEnabled()
get the data event enabled flag. |
boolean |
getDecodeData()
Get deocde data flag. |
boolean |
getDeviceEnabled()
Get device enabled state. |
java.lang.String |
getDeviceServiceDescription()
"JPOS service for MiniMag II id-tech.net" returned. |
int |
getDeviceServiceVersion()
V1.9 |
int |
getErrorReportingType()
Get error reporting mode. |
java.lang.String |
getExpirationDate()
Get expiration date can not be parsed now. |
java.lang.String |
getFirstName()
Get first name in the parsed CC card data. |
boolean |
getFreezeEvents()
Get the flag for freeze event. |
java.lang.String |
getMiddleInitial()
Get middle initial Can not be parsed now. |
boolean |
getParseDecodeData()
Get flag for parsed decode data. |
java.lang.String |
getPhysicalDeviceDescription()
"MiniMag II ID TECH 2005" returned. |
java.lang.String |
getPhysicalDeviceName()
"Minimag II" returned. |
int |
getPowerNotify()
Get Power Notify mode. |
int |
getPowerState()
No power state can be known by application. |
java.lang.String |
getServiceCode()
Get service code. |
int |
getState()
Get control state. |
java.lang.String |
getSuffix()
Get parsed suffix Can not be parsed now. |
java.lang.String |
getSurname()
Get parsed surname when a parsed CC card data event happened. |
java.lang.String |
getTitle()
Get parsed titile in the name. |
byte[] |
getTrack1Data()
Get track1 data when a data event happened. |
byte[] |
getTrack1DiscretionaryData()
Get the track 1 discretionary data when a data event occurred. |
byte[] |
getTrack2Data()
Get track2 data when a data event happened. |
byte[] |
getTrack2DiscretionaryData()
Get the track 2 discretionary data when a data event occurred. |
byte[] |
getTrack3Data()
Get track 3 data when a data event occurred. |
byte[] |
getTrack4Data()
Get the track 4 data when a data event happened. |
int |
getTracksToRead()
Get Tracks to read. |
boolean |
getTransmitSentinels()
Get the flag for if sent sentinel. |
void |
notify(int local,
int result,
byte[] buf)
Interface Notifior |
void |
open(java.lang.String logicalName,
jpos.services.EventCallbacks cb)
open device. |
void |
release()
free the resouce and notify other thread. |
void |
resetStatistics(java.lang.String statisticsBuffer)
NOT support reset statiscics now. |
void |
retrieveStatistics(java.lang.String[] statisticsBuffer)
NOT support retrieve statistics now. |
void |
setAutoDisable(boolean autoDisable)
set the flag for autodesable after a data event happened. |
void |
setDataEventEnabled(boolean dataEventEnabled)
Set data event enable flag. |
void |
setDecodeData(boolean bv)
Set decode data flag. |
void |
setDeviceEnabled(boolean deviceEnabled)
enable device. |
void |
setErrorReportingType(int errorReportingType)
Set error reporting type. |
void |
setFreezeEvents(boolean freezeEvents)
set the flag for freeze evnts. |
void |
setParseDecodeData(boolean val)
set flag for parse decode data. |
void |
setPowerNotify(int powerNotify)
Set the power notify mode. |
void |
setTracksToRead(int tracksToRead)
set the tracks to read. |
void |
setTransmitSentinels(boolean transmitSentinels)
Set flag for tranmis sentinels. |
void |
StatusUpdated(int event)
|
void |
updateFirmware(java.lang.String firmwareFileName)
NOT suport update Firmware now. |
void |
updateStatistics(java.lang.String statisticsBuffer)
NOT support update statistics now Nothing would be done by calling this method. |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public MinimagService(jpos.config.JposEntry entries)
方法详细信息 |
---|
public java.lang.String getCheckHealthText() throws jpos.JposException
jpos.services.BaseService
中的 getCheckHealthText
jpos.JposException
public boolean getClaimed() throws jpos.JposException
jpos.services.BaseService
中的 getClaimed
jpos.JposException
public boolean getDeviceEnabled() throws jpos.JposException
jpos.services.BaseService
中的 getDeviceEnabled
jpos.JposException
public void setDeviceEnabled(boolean deviceEnabled) throws jpos.JposException
jpos.services.BaseService
中的 setDeviceEnabled
jpos.JposException
public java.lang.String getDeviceServiceDescription() throws jpos.JposException
jpos.services.BaseService
中的 getDeviceServiceDescription
jpos.JposException
public int getDeviceServiceVersion() throws jpos.JposException
jpos.services.BaseService
中的 getDeviceServiceVersion
jpos.JposException
public boolean getFreezeEvents() throws jpos.JposException
jpos.services.BaseService
中的 getFreezeEvents
jpos.JposException
public void setFreezeEvents(boolean freezeEvents) throws jpos.JposException
jpos.services.BaseService
中的 setFreezeEvents
jpos.JposException
public java.lang.String getPhysicalDeviceDescription() throws jpos.JposException
jpos.services.BaseService
中的 getPhysicalDeviceDescription
jpos.JposException
public java.lang.String getPhysicalDeviceName() throws jpos.JposException
jpos.services.BaseService
中的 getPhysicalDeviceName
jpos.JposException
public int getState() throws jpos.JposException
jpos.services.BaseService
中的 getState
jpos.JposException
public void StatusUpdated(int event)
com.idtech.connector.ConnectorListener
中的 StatusUpdated
public void open(java.lang.String logicalName, jpos.services.EventCallbacks cb) throws jpos.JposException
If the method fail, it maybe following:
1. the DLLs is not in the proper directory.
2. The directory "connector/xxx" not exists.
3. The file "connecotr/xxx/connector.ini" not exists or the conten is bad.
4. The connnector access drive class file not exists or bad.
jpos.services.BaseService
中的 open
logicalName
- it the entry name in the jpos.xml
jpos.JposException
public void close() throws jpos.JposException
jpos.services.BaseService
中的 close
jpos.JposException
public void claim(int timeout) throws jpos.JposException
jpos.services.BaseService
中的 claim
jpos.JposException
public void release() throws jpos.JposException
jpos.services.BaseService
中的 release
jpos.JposException
public void checkHealth(int level) throws jpos.JposException
jpos.services.BaseService
中的 checkHealth
jpos.JposException
public void directIO(int command, int[] data, java.lang.Object object) throws jpos.JposException
jpos.services.BaseService
中的 directIO
jpos.JposException
public boolean getCapISO() throws jpos.JposException
jpos.services.MSRService12
中的 getCapISO
jpos.JposException
public boolean getCapJISOne() throws jpos.JposException
jpos.services.MSRService12
中的 getCapJISOne
jpos.JposException
public boolean getCapJISTwo() throws jpos.JposException
jpos.services.MSRService12
中的 getCapJISTwo
jpos.JposException
public java.lang.String getAccountNumber() throws jpos.JposException
jpos.services.MSRService12
中的 getAccountNumber
jpos.JposException
public boolean getAutoDisable() throws jpos.JposException
jpos.services.MSRService12
中的 getAutoDisable
jpos.JposException
public void setAutoDisable(boolean autoDisable) throws jpos.JposException
jpos.services.MSRService12
中的 setAutoDisable
jpos.JposException
public int getDataCount() throws jpos.JposException
jpos.services.MSRService12
中的 getDataCount
jpos.JposException
public boolean getDataEventEnabled() throws jpos.JposException
jpos.services.MSRService12
中的 getDataEventEnabled
jpos.JposException
public void setDataEventEnabled(boolean dataEventEnabled) throws jpos.JposException
jpos.services.MSRService12
中的 setDataEventEnabled
jpos.JposException
public boolean getDecodeData() throws jpos.JposException
jpos.services.MSRService12
中的 getDecodeData
jpos.JposException
public void setDecodeData(boolean bv) throws jpos.JposException
jpos.services.MSRService12
中的 setDecodeData
jpos.JposException
public int getErrorReportingType() throws jpos.JposException
jpos.services.MSRService12
中的 getErrorReportingType
jpos.JposException
public void setErrorReportingType(int errorReportingType) throws jpos.JposException
jpos.services.MSRService12
中的 setErrorReportingType
jpos.JposException
public java.lang.String getExpirationDate() throws jpos.JposException
jpos.services.MSRService12
中的 getExpirationDate
jpos.JposException
public java.lang.String getFirstName() throws jpos.JposException
jpos.services.MSRService12
中的 getFirstName
jpos.JposException
public java.lang.String getMiddleInitial() throws jpos.JposException
jpos.services.MSRService12
中的 getMiddleInitial
jpos.JposException
public boolean getParseDecodeData() throws jpos.JposException
jpos.services.MSRService12
中的 getParseDecodeData
jpos.JposException
public void setParseDecodeData(boolean val) throws jpos.JposException
jpos.services.MSRService12
中的 setParseDecodeData
jpos.JposException
public java.lang.String getServiceCode() throws jpos.JposException
jpos.services.MSRService12
中的 getServiceCode
jpos.JposException
public java.lang.String getSuffix() throws jpos.JposException
jpos.services.MSRService12
中的 getSuffix
jpos.JposException
public java.lang.String getSurname() throws jpos.JposException
jpos.services.MSRService12
中的 getSurname
jpos.JposException
public java.lang.String getTitle() throws jpos.JposException
jpos.services.MSRService12
中的 getTitle
jpos.JposException
public byte[] getTrack1Data() throws jpos.JposException
jpos.services.MSRService12
中的 getTrack1Data
jpos.JposException
public byte[] getTrack1DiscretionaryData() throws jpos.JposException
jpos.services.MSRService12
中的 getTrack1DiscretionaryData
jpos.JposException
public byte[] getTrack2Data() throws jpos.JposException
jpos.services.MSRService12
中的 getTrack2Data
jpos.JposException
public byte[] getTrack2DiscretionaryData() throws jpos.JposException
jpos.services.MSRService12
中的 getTrack2DiscretionaryData
jpos.JposException
public byte[] getTrack3Data() throws jpos.JposException
jpos.services.MSRService12
中的 getTrack3Data
jpos.JposException
public int getTracksToRead() throws jpos.JposException
jpos.services.MSRService12
中的 getTracksToRead
jpos.JposException
public void setTracksToRead(int tracksToRead) throws jpos.JposException
jpos.services.MSRService12
中的 setTracksToRead
jpos.JposException
public void clearInput() throws jpos.JposException
jpos.services.MSRService12
中的 clearInput
jpos.JposException
public int getCapPowerReporting() throws jpos.JposException
jpos.services.MSRService13
中的 getCapPowerReporting
jpos.JposException
public int getPowerNotify() throws jpos.JposException
jpos.services.MSRService13
中的 getPowerNotify
jpos.JposException
public void setPowerNotify(int powerNotify) throws jpos.JposException
jpos.services.MSRService13
中的 setPowerNotify
jpos.JposException
public int getPowerState() throws jpos.JposException
jpos.services.MSRService13
中的 getPowerState
jpos.JposException
public boolean getCapTransmitSentinels() throws jpos.JposException
jpos.services.MSRService15
中的 getCapTransmitSentinels
jpos.JposException
public byte[] getTrack4Data() throws jpos.JposException
jpos.services.MSRService15
中的 getTrack4Data
jpos.JposException
public boolean getTransmitSentinels() throws jpos.JposException
jpos.services.MSRService15
中的 getTransmitSentinels
jpos.JposException
public void setTransmitSentinels(boolean transmitSentinels) throws jpos.JposException
jpos.services.MSRService15
中的 setTransmitSentinels
jpos.JposException
public boolean getCapStatisticsReporting() throws jpos.JposException
jpos.services.MSRService18
中的 getCapStatisticsReporting
jpos.JposException
public boolean getCapUpdateStatistics() throws jpos.JposException
jpos.services.MSRService18
中的 getCapUpdateStatistics
jpos.JposException
public void resetStatistics(java.lang.String statisticsBuffer) throws jpos.JposException
jpos.services.MSRService18
中的 resetStatistics
jpos.JposException
public void retrieveStatistics(java.lang.String[] statisticsBuffer) throws jpos.JposException
jpos.services.MSRService18
中的 retrieveStatistics
jpos.JposException
public void updateStatistics(java.lang.String statisticsBuffer) throws jpos.JposException
jpos.services.MSRService18
中的 updateStatistics
jpos.JposException
public boolean getCapCompareFirmwareVersion() throws jpos.JposException
jpos.services.MSRService19
中的 getCapCompareFirmwareVersion
jpos.JposException
public boolean getCapUpdateFirmware() throws jpos.JposException
jpos.services.MSRService19
中的 getCapUpdateFirmware
jpos.JposException
public void compareFirmwareVersion(java.lang.String firmwareFileName, int[] result) throws jpos.JposException
jpos.services.MSRService19
中的 compareFirmwareVersion
jpos.JposException
public void updateFirmware(java.lang.String firmwareFileName) throws jpos.JposException
jpos.services.MSRService19
中的 updateFirmware
jpos.JposException
public void deleteInstance() throws jpos.JposException
jpos.loader.JposServiceInstance
中的 deleteInstance
jpos.JposException
public void notify(int local, int result, byte[] buf)
com.idtech.Notifior
中的 notify