java.lang.Objectcom.idtech.MinimagService
public class MinimagService
Field Summary |
---|
Fields inherited from interface 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 |
Fields inherited from interface 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 |
Fields inherited from interface com.idtech.Notifior |
---|
INPUT, OUTPUT |
Fields inherited from interface com.idtech.serviceConst |
---|
connectorClass, connectorName, physicalDesc, physicalName, serviceDesc, serviceVersion |
Constructor Summary | |
---|---|
MinimagService(jpos.config.JposEntry entries)
Constructor called by instance factory to get setting. |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinimagService(jpos.config.JposEntry entries)
Method Detail |
---|
public java.lang.String getCheckHealthText() throws jpos.JposException
getCheckHealthText
in interface jpos.services.BaseService
jpos.JposException
public boolean getClaimed() throws jpos.JposException
getClaimed
in interface jpos.services.BaseService
jpos.JposException
public boolean getDeviceEnabled() throws jpos.JposException
getDeviceEnabled
in interface jpos.services.BaseService
jpos.JposException
public void setDeviceEnabled(boolean deviceEnabled) throws jpos.JposException
setDeviceEnabled
in interface jpos.services.BaseService
jpos.JposException
public java.lang.String getDeviceServiceDescription() throws jpos.JposException
getDeviceServiceDescription
in interface jpos.services.BaseService
jpos.JposException
public int getDeviceServiceVersion() throws jpos.JposException
getDeviceServiceVersion
in interface jpos.services.BaseService
jpos.JposException
public boolean getFreezeEvents() throws jpos.JposException
getFreezeEvents
in interface jpos.services.BaseService
jpos.JposException
public void setFreezeEvents(boolean freezeEvents) throws jpos.JposException
setFreezeEvents
in interface jpos.services.BaseService
jpos.JposException
public java.lang.String getPhysicalDeviceDescription() throws jpos.JposException
getPhysicalDeviceDescription
in interface jpos.services.BaseService
jpos.JposException
public java.lang.String getPhysicalDeviceName() throws jpos.JposException
getPhysicalDeviceName
in interface jpos.services.BaseService
jpos.JposException
public int getState() throws jpos.JposException
getState
in interface jpos.services.BaseService
jpos.JposException
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.
open
in interface jpos.services.BaseService
logicalName
- it the entry name in the jpos.xml
jpos.JposException
public void close() throws jpos.JposException
close
in interface jpos.services.BaseService
jpos.JposException
public void claim(int timeout) throws jpos.JposException
claim
in interface jpos.services.BaseService
jpos.JposException
public void release() throws jpos.JposException
release
in interface jpos.services.BaseService
jpos.JposException
public void checkHealth(int level) throws jpos.JposException
checkHealth
in interface jpos.services.BaseService
jpos.JposException
public void directIO(int command, int[] data, java.lang.Object object) throws jpos.JposException
directIO
in interface jpos.services.BaseService
jpos.JposException
public boolean getCapISO() throws jpos.JposException
getCapISO
in interface jpos.services.MSRService12
jpos.JposException
public boolean getCapJISOne() throws jpos.JposException
getCapJISOne
in interface jpos.services.MSRService12
jpos.JposException
public boolean getCapJISTwo() throws jpos.JposException
getCapJISTwo
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getAccountNumber() throws jpos.JposException
getAccountNumber
in interface jpos.services.MSRService12
jpos.JposException
public boolean getAutoDisable() throws jpos.JposException
getAutoDisable
in interface jpos.services.MSRService12
jpos.JposException
public void setAutoDisable(boolean autoDisable) throws jpos.JposException
setAutoDisable
in interface jpos.services.MSRService12
jpos.JposException
public int getDataCount() throws jpos.JposException
getDataCount
in interface jpos.services.MSRService12
jpos.JposException
public boolean getDataEventEnabled() throws jpos.JposException
getDataEventEnabled
in interface jpos.services.MSRService12
jpos.JposException
public void setDataEventEnabled(boolean dataEventEnabled) throws jpos.JposException
setDataEventEnabled
in interface jpos.services.MSRService12
jpos.JposException
public boolean getDecodeData() throws jpos.JposException
getDecodeData
in interface jpos.services.MSRService12
jpos.JposException
public void setDecodeData(boolean bv) throws jpos.JposException
setDecodeData
in interface jpos.services.MSRService12
jpos.JposException
public int getErrorReportingType() throws jpos.JposException
getErrorReportingType
in interface jpos.services.MSRService12
jpos.JposException
public void setErrorReportingType(int errorReportingType) throws jpos.JposException
setErrorReportingType
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getExpirationDate() throws jpos.JposException
getExpirationDate
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getFirstName() throws jpos.JposException
getFirstName
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getMiddleInitial() throws jpos.JposException
getMiddleInitial
in interface jpos.services.MSRService12
jpos.JposException
public boolean getParseDecodeData() throws jpos.JposException
getParseDecodeData
in interface jpos.services.MSRService12
jpos.JposException
public void setParseDecodeData(boolean val) throws jpos.JposException
setParseDecodeData
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getServiceCode() throws jpos.JposException
getServiceCode
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getSuffix() throws jpos.JposException
getSuffix
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getSurname() throws jpos.JposException
getSurname
in interface jpos.services.MSRService12
jpos.JposException
public java.lang.String getTitle() throws jpos.JposException
getTitle
in interface jpos.services.MSRService12
jpos.JposException
public byte[] getTrack1Data() throws jpos.JposException
getTrack1Data
in interface jpos.services.MSRService12
jpos.JposException
public byte[] getTrack1DiscretionaryData() throws jpos.JposException
getTrack1DiscretionaryData
in interface jpos.services.MSRService12
jpos.JposException
public byte[] getTrack2Data() throws jpos.JposException
getTrack2Data
in interface jpos.services.MSRService12
jpos.JposException
public byte[] getTrack2DiscretionaryData() throws jpos.JposException
getTrack2DiscretionaryData
in interface jpos.services.MSRService12
jpos.JposException
public byte[] getTrack3Data() throws jpos.JposException
getTrack3Data
in interface jpos.services.MSRService12
jpos.JposException
public int getTracksToRead() throws jpos.JposException
getTracksToRead
in interface jpos.services.MSRService12
jpos.JposException
public void setTracksToRead(int tracksToRead) throws jpos.JposException
setTracksToRead
in interface jpos.services.MSRService12
jpos.JposException
public void clearInput() throws jpos.JposException
clearInput
in interface jpos.services.MSRService12
jpos.JposException
public int getCapPowerReporting() throws jpos.JposException
getCapPowerReporting
in interface jpos.services.MSRService13
jpos.JposException
public int getPowerNotify() throws jpos.JposException
getPowerNotify
in interface jpos.services.MSRService13
jpos.JposException
public void setPowerNotify(int powerNotify) throws jpos.JposException
setPowerNotify
in interface jpos.services.MSRService13
jpos.JposException
public int getPowerState() throws jpos.JposException
getPowerState
in interface jpos.services.MSRService13
jpos.JposException
public boolean getCapTransmitSentinels() throws jpos.JposException
getCapTransmitSentinels
in interface jpos.services.MSRService15
jpos.JposException
public byte[] getTrack4Data() throws jpos.JposException
getTrack4Data
in interface jpos.services.MSRService15
jpos.JposException
public boolean getTransmitSentinels() throws jpos.JposException
getTransmitSentinels
in interface jpos.services.MSRService15
jpos.JposException
public void setTransmitSentinels(boolean transmitSentinels) throws jpos.JposException
setTransmitSentinels
in interface jpos.services.MSRService15
jpos.JposException
public boolean getCapStatisticsReporting() throws jpos.JposException
getCapStatisticsReporting
in interface jpos.services.MSRService18
jpos.JposException
public boolean getCapUpdateStatistics() throws jpos.JposException
getCapUpdateStatistics
in interface jpos.services.MSRService18
jpos.JposException
public void resetStatistics(java.lang.String statisticsBuffer) throws jpos.JposException
resetStatistics
in interface jpos.services.MSRService18
jpos.JposException
public void retrieveStatistics(java.lang.String[] statisticsBuffer) throws jpos.JposException
retrieveStatistics
in interface jpos.services.MSRService18
jpos.JposException
public void updateStatistics(java.lang.String statisticsBuffer) throws jpos.JposException
updateStatistics
in interface jpos.services.MSRService18
jpos.JposException
public boolean getCapCompareFirmwareVersion() throws jpos.JposException
getCapCompareFirmwareVersion
in interface jpos.services.MSRService19
jpos.JposException
public boolean getCapUpdateFirmware() throws jpos.JposException
getCapUpdateFirmware
in interface jpos.services.MSRService19
jpos.JposException
public void compareFirmwareVersion(java.lang.String firmwareFileName, int[] result) throws jpos.JposException
compareFirmwareVersion
in interface jpos.services.MSRService19
jpos.JposException
public void updateFirmware(java.lang.String firmwareFileName) throws jpos.JposException
updateFirmware
in interface jpos.services.MSRService19
jpos.JposException
public void deleteInstance() throws jpos.JposException
deleteInstance
in interface jpos.loader.JposServiceInstance
jpos.JposException
public void notify(int local, int result, byte[] buf)
notify
in interface com.idtech.Notifior