implemented decode from opened cache
This commit is contained in:
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
@@ -2,9 +2,8 @@ package net.irext.decoder.businesslogic;
|
|||||||
|
|
||||||
import net.irext.decoder.alioss.OSSHelper;
|
import net.irext.decoder.alioss.OSSHelper;
|
||||||
import net.irext.decoder.cache.IDecodeSessionRepository;
|
import net.irext.decoder.cache.IDecodeSessionRepository;
|
||||||
import net.irext.decoder.model.IRBinary;
|
|
||||||
import net.irext.decoder.model.RemoteIndex;
|
|
||||||
import net.irext.decoder.cache.IIRBinaryRepository;
|
import net.irext.decoder.cache.IIRBinaryRepository;
|
||||||
|
import net.irext.decoder.model.RemoteIndex;
|
||||||
import net.irext.decoder.utils.FileUtil;
|
import net.irext.decoder.utils.FileUtil;
|
||||||
import net.irext.decoder.utils.LoggerUtil;
|
import net.irext.decoder.utils.LoggerUtil;
|
||||||
import net.irext.decoder.utils.MD5Util;
|
import net.irext.decoder.utils.MD5Util;
|
||||||
@@ -44,7 +43,7 @@ public class DecodeLogic {
|
|||||||
return decodeLogic;
|
return decodeLogic;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] openIRBinary(ServletContext context, IIRBinaryRepository irBinaryRepository,
|
public RemoteIndex openIRBinary(ServletContext context, IIRBinaryRepository irBinaryRepository,
|
||||||
RemoteIndex remoteIndex) {
|
RemoteIndex remoteIndex) {
|
||||||
if (null == remoteIndex) {
|
if (null == remoteIndex) {
|
||||||
return null;
|
return null;
|
||||||
@@ -56,15 +55,16 @@ public class DecodeLogic {
|
|||||||
LoggerUtil.getInstance().trace(TAG, "checksum for remoteIndex " +
|
LoggerUtil.getInstance().trace(TAG, "checksum for remoteIndex " +
|
||||||
remoteIndex.getId() + " = " + checksum);
|
remoteIndex.getId() + " = " + checksum);
|
||||||
|
|
||||||
byte[] binaries = irBinaryRepository.find(remoteIndex.getId());
|
RemoteIndex cachedRemoteIndex = irBinaryRepository.find(remoteIndex.getId());
|
||||||
if (null != binaries) {
|
if (null != cachedRemoteIndex) {
|
||||||
LoggerUtil.getInstance().trace(TAG, "binary content fetched from redis : " + binaries.length);
|
LoggerUtil.getInstance().trace(TAG, "binary content fetched from redis : " +
|
||||||
|
cachedRemoteIndex.getRemoteMap());
|
||||||
// validate binary content
|
// validate binary content
|
||||||
String cachedChecksum =
|
String cachedChecksum =
|
||||||
MD5Util.byteArrayToHexString(MessageDigest.getInstance("MD5")
|
MD5Util.byteArrayToHexString(MessageDigest.getInstance("MD5")
|
||||||
.digest(binaries)).toUpperCase();
|
.digest(cachedRemoteIndex.getBinaries())).toUpperCase();
|
||||||
if (cachedChecksum.equals(checksum)) {
|
if (cachedChecksum.equals(checksum)) {
|
||||||
return binaries;
|
return cachedRemoteIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,9 +79,9 @@ public class DecodeLogic {
|
|||||||
if (null != fin) {
|
if (null != fin) {
|
||||||
byte[] newBinaries = IOUtils.toByteArray(fin);
|
byte[] newBinaries = IOUtils.toByteArray(fin);
|
||||||
LoggerUtil.getInstance().trace(TAG, "binary content get, save it to redis");
|
LoggerUtil.getInstance().trace(TAG, "binary content get, save it to redis");
|
||||||
|
remoteIndex.setBinaries(newBinaries);
|
||||||
irBinaryRepository.add(remoteIndex.getId(), newBinaries);
|
irBinaryRepository.add(remoteIndex.getId(), remoteIndex);
|
||||||
return binaries;
|
return remoteIndex;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LoggerUtil.getInstance().trace(TAG, "servlet context is null");
|
LoggerUtil.getInstance().trace(TAG, "servlet context is null");
|
||||||
@@ -99,15 +99,19 @@ public class DecodeLogic {
|
|||||||
Integer cachedRemoteIndexId = decodeSessionRepository.find(sessionId);
|
Integer cachedRemoteIndexId = decodeSessionRepository.find(sessionId);
|
||||||
int[] decoded = null;
|
int[] decoded = null;
|
||||||
if (null != cachedRemoteIndexId) {
|
if (null != cachedRemoteIndexId) {
|
||||||
byte[] remoteBinary = irBinaryRepository.find(cachedRemoteIndexId);
|
RemoteIndex cachedRemoteIndex = irBinaryRepository.find(cachedRemoteIndexId);
|
||||||
|
if (null != cachedRemoteIndex) {
|
||||||
|
int categoryId = cachedRemoteIndex.getCategoryId();
|
||||||
|
int subCate = cachedRemoteIndex.getSubCate();
|
||||||
|
byte[] binaryContent = cachedRemoteIndex.getBinaries();
|
||||||
IRDecode irDecode = IRDecode.getInstance();
|
IRDecode irDecode = IRDecode.getInstance();
|
||||||
int ret = 0;
|
int ret = irDecode.openBinary(categoryId, subCate, binaryContent, binaryContent.length);
|
||||||
// int ret = irDecode.openBinary(categoryId, subCate, binaryContent, binaryContent.length);
|
|
||||||
if (0 == ret) {
|
if (0 == ret) {
|
||||||
decoded = irDecode.decodeBinary(keyCode, acStatus, changeWindDirection);
|
decoded = irDecode.decodeBinary(keyCode, acStatus, changeWindDirection);
|
||||||
}
|
}
|
||||||
irDecode.closeBinary();
|
irDecode.closeBinary();
|
||||||
return decoded;
|
return decoded;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LoggerUtil.getInstance().trace(TAG, "session cache missed, need to re-open binary");
|
LoggerUtil.getInstance().trace(TAG, "session cache missed, need to re-open binary");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package net.irext.decoder.cache;
|
package net.irext.decoder.cache;
|
||||||
|
|
||||||
import net.irext.decoder.model.DecodeSession;
|
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package net.irext.decoder.cache;
|
package net.irext.decoder.cache;
|
||||||
|
|
||||||
import net.irext.decoder.model.IRBinary;
|
import net.irext.decoder.model.RemoteIndex;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -16,11 +16,11 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public interface IIRBinaryRepository {
|
public interface IIRBinaryRepository {
|
||||||
|
|
||||||
Map<Object, Object> findAllIRBinaries();
|
Map<Object, Object> findAllRemoteIndexes();
|
||||||
|
|
||||||
void add(Integer id, byte[] binaries);
|
void add(Integer id, RemoteIndex remoteIndex);
|
||||||
|
|
||||||
void delete(Integer id);
|
void delete(Integer id);
|
||||||
|
|
||||||
byte[] find(Integer id);
|
RemoteIndex find(Integer id);
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package net.irext.decoder.cache.impl;
|
package net.irext.decoder.cache.impl;
|
||||||
|
|
||||||
import net.irext.decoder.model.DecodeSession;
|
|
||||||
import net.irext.decoder.cache.IDecodeSessionRepository;
|
import net.irext.decoder.cache.IDecodeSessionRepository;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.HashOperations;
|
import org.springframework.data.redis.core.HashOperations;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package net.irext.decoder.cache.impl;
|
package net.irext.decoder.cache.impl;
|
||||||
|
|
||||||
import net.irext.decoder.cache.IIRBinaryRepository;
|
import net.irext.decoder.cache.IIRBinaryRepository;
|
||||||
|
import net.irext.decoder.model.RemoteIndex;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.HashOperations;
|
import org.springframework.data.redis.core.HashOperations;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
@@ -38,19 +39,19 @@ public class IRBinaryRepositoryImpl implements IIRBinaryRepository {
|
|||||||
hashOperations = redisTemplate.opsForHash();
|
hashOperations = redisTemplate.opsForHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add(Integer id, byte[] binaries) {
|
public void add(Integer id, RemoteIndex remoteIndex) {
|
||||||
hashOperations.put(KEY, id, binaries);
|
hashOperations.put(KEY, id, remoteIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void delete(final Integer id) {
|
public void delete(final Integer id) {
|
||||||
hashOperations.delete(KEY, id);
|
hashOperations.delete(KEY, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] find(final Integer id) {
|
public RemoteIndex find(final Integer id) {
|
||||||
return (byte[])hashOperations.get(KEY, id);
|
return (RemoteIndex) hashOperations.get(KEY, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<Object, Object> findAllIRBinaries() {
|
public Map<Object, Object> findAllRemoteIndexes() {
|
||||||
return hashOperations.entries(KEY);
|
return hashOperations.entries(KEY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,693 +1,255 @@
|
|||||||
package net.irext.decoder.model;
|
package net.irext.decoder.model;
|
||||||
|
|
||||||
public class RemoteIndex {
|
public class RemoteIndex {
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.id
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.category_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Integer categoryId;
|
private Integer categoryId;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.category_name
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String categoryName;
|
private String categoryName;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.brand_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Integer brandId;
|
private Integer brandId;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.brand_name
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String brandName;
|
private String brandName;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.city_code
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String cityCode;
|
private String cityCode;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.city_name
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String cityName;
|
private String cityName;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.operator_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String operatorId;
|
private String operatorId;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.operator_name
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String operatorName;
|
private String operatorName;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.protocol
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.remote
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String remote;
|
private String remote;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.remote_map
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String remoteMap;
|
private String remoteMap;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.status
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Byte status;
|
private Byte status;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.sub_cate
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Byte subCate;
|
private Byte subCate;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.priority
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private Integer priority;
|
private Integer priority;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.remote_number
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String remoteNumber;
|
private String remoteNumber;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.operator_name_tw
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String operatorNameTw;
|
private String operatorNameTw;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.category_name_tw
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String categoryNameTw;
|
private String categoryNameTw;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.brand_name_tw
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String brandNameTw;
|
private String brandNameTw;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.city_name_tw
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String cityNameTw;
|
private String cityNameTw;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.binary_md5
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String binaryMd5;
|
private String binaryMd5;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.contributor
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String contributor;
|
private String contributor;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column remote_index.update_time
|
|
||||||
*
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
private String updateTime;
|
private String updateTime;
|
||||||
|
private byte[] binaries;
|
||||||
|
|
||||||
|
public RemoteIndex(Integer id, Integer categoryId, String categoryName, Integer brandId, String brandName,
|
||||||
|
String cityCode, String cityName, String operatorId, String operatorName, String protocol,
|
||||||
|
String remote, String remoteMap, Byte status, Byte subCate, Integer priority,
|
||||||
|
String remoteNumber, String operatorNameTw, String categoryNameTw, String brandNameTw,
|
||||||
|
String cityNameTw, String binaryMd5, String contributor, String updateTime, byte[] binaries) {
|
||||||
|
this.id = id;
|
||||||
|
this.categoryId = categoryId;
|
||||||
|
this.categoryName = categoryName;
|
||||||
|
this.brandId = brandId;
|
||||||
|
this.brandName = brandName;
|
||||||
|
this.cityCode = cityCode;
|
||||||
|
this.cityName = cityName;
|
||||||
|
this.operatorId = operatorId;
|
||||||
|
this.operatorName = operatorName;
|
||||||
|
this.protocol = protocol;
|
||||||
|
this.remote = remote;
|
||||||
|
this.remoteMap = remoteMap;
|
||||||
|
this.status = status;
|
||||||
|
this.subCate = subCate;
|
||||||
|
this.priority = priority;
|
||||||
|
this.remoteNumber = remoteNumber;
|
||||||
|
this.operatorNameTw = operatorNameTw;
|
||||||
|
this.categoryNameTw = categoryNameTw;
|
||||||
|
this.brandNameTw = brandNameTw;
|
||||||
|
this.cityNameTw = cityNameTw;
|
||||||
|
this.binaryMd5 = binaryMd5;
|
||||||
|
this.contributor = contributor;
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
this.binaries = binaries;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RemoteIndex() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.id
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Integer getId() {
|
public Integer getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.id
|
|
||||||
*
|
|
||||||
* @param id the value for remote_index.id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setId(Integer id) {
|
public void setId(Integer id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.category_id
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.category_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Integer getCategoryId() {
|
public Integer getCategoryId() {
|
||||||
return categoryId;
|
return categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.category_id
|
|
||||||
*
|
|
||||||
* @param categoryId the value for remote_index.category_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCategoryId(Integer categoryId) {
|
public void setCategoryId(Integer categoryId) {
|
||||||
this.categoryId = categoryId;
|
this.categoryId = categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.category_name
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.category_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getCategoryName() {
|
public String getCategoryName() {
|
||||||
return categoryName;
|
return categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.category_name
|
|
||||||
*
|
|
||||||
* @param categoryName the value for remote_index.category_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCategoryName(String categoryName) {
|
public void setCategoryName(String categoryName) {
|
||||||
this.categoryName = categoryName;
|
this.categoryName = categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.brand_id
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.brand_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Integer getBrandId() {
|
public Integer getBrandId() {
|
||||||
return brandId;
|
return brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.brand_id
|
|
||||||
*
|
|
||||||
* @param brandId the value for remote_index.brand_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setBrandId(Integer brandId) {
|
public void setBrandId(Integer brandId) {
|
||||||
this.brandId = brandId;
|
this.brandId = brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.brand_name
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.brand_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getBrandName() {
|
public String getBrandName() {
|
||||||
return brandName;
|
return brandName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.brand_name
|
|
||||||
*
|
|
||||||
* @param brandName the value for remote_index.brand_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setBrandName(String brandName) {
|
public void setBrandName(String brandName) {
|
||||||
this.brandName = brandName;
|
this.brandName = brandName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.city_code
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.city_code
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getCityCode() {
|
public String getCityCode() {
|
||||||
return cityCode;
|
return cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.city_code
|
|
||||||
*
|
|
||||||
* @param cityCode the value for remote_index.city_code
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCityCode(String cityCode) {
|
public void setCityCode(String cityCode) {
|
||||||
this.cityCode = cityCode;
|
this.cityCode = cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.city_name
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.city_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getCityName() {
|
public String getCityName() {
|
||||||
return cityName;
|
return cityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.city_name
|
|
||||||
*
|
|
||||||
* @param cityName the value for remote_index.city_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCityName(String cityName) {
|
public void setCityName(String cityName) {
|
||||||
this.cityName = cityName;
|
this.cityName = cityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.operator_id
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.operator_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getOperatorId() {
|
public String getOperatorId() {
|
||||||
return operatorId;
|
return operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.operator_id
|
|
||||||
*
|
|
||||||
* @param operatorId the value for remote_index.operator_id
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setOperatorId(String operatorId) {
|
public void setOperatorId(String operatorId) {
|
||||||
this.operatorId = operatorId;
|
this.operatorId = operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.operator_name
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.operator_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getOperatorName() {
|
public String getOperatorName() {
|
||||||
return operatorName;
|
return operatorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.operator_name
|
|
||||||
*
|
|
||||||
* @param operatorName the value for remote_index.operator_name
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setOperatorName(String operatorName) {
|
public void setOperatorName(String operatorName) {
|
||||||
this.operatorName = operatorName;
|
this.operatorName = operatorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.protocol
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.protocol
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getProtocol() {
|
public String getProtocol() {
|
||||||
return protocol;
|
return protocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.protocol
|
|
||||||
*
|
|
||||||
* @param protocol the value for remote_index.protocol
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setProtocol(String protocol) {
|
public void setProtocol(String protocol) {
|
||||||
this.protocol = protocol;
|
this.protocol = protocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.remote
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.remote
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getRemote() {
|
public String getRemote() {
|
||||||
return remote;
|
return remote;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.remote
|
|
||||||
*
|
|
||||||
* @param remote the value for remote_index.remote
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setRemote(String remote) {
|
public void setRemote(String remote) {
|
||||||
this.remote = remote;
|
this.remote = remote;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.remote_map
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.remote_map
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getRemoteMap() {
|
public String getRemoteMap() {
|
||||||
return remoteMap;
|
return remoteMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.remote_map
|
|
||||||
*
|
|
||||||
* @param remoteMap the value for remote_index.remote_map
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setRemoteMap(String remoteMap) {
|
public void setRemoteMap(String remoteMap) {
|
||||||
this.remoteMap = remoteMap;
|
this.remoteMap = remoteMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.status
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.status
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Byte getStatus() {
|
public Byte getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.status
|
|
||||||
*
|
|
||||||
* @param status the value for remote_index.status
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setStatus(Byte status) {
|
public void setStatus(Byte status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.sub_cate
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.sub_cate
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Byte getSubCate() {
|
public Byte getSubCate() {
|
||||||
return subCate;
|
return subCate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.sub_cate
|
|
||||||
*
|
|
||||||
* @param subCate the value for remote_index.sub_cate
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setSubCate(Byte subCate) {
|
public void setSubCate(Byte subCate) {
|
||||||
this.subCate = subCate;
|
this.subCate = subCate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.priority
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.priority
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public Integer getPriority() {
|
public Integer getPriority() {
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.priority
|
|
||||||
*
|
|
||||||
* @param priority the value for remote_index.priority
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setPriority(Integer priority) {
|
public void setPriority(Integer priority) {
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.remote_number
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.remote_number
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getRemoteNumber() {
|
public String getRemoteNumber() {
|
||||||
return remoteNumber;
|
return remoteNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.remote_number
|
|
||||||
*
|
|
||||||
* @param remoteNumber the value for remote_index.remote_number
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setRemoteNumber(String remoteNumber) {
|
public void setRemoteNumber(String remoteNumber) {
|
||||||
this.remoteNumber = remoteNumber;
|
this.remoteNumber = remoteNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.operator_name_tw
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.operator_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getOperatorNameTw() {
|
public String getOperatorNameTw() {
|
||||||
return operatorNameTw;
|
return operatorNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.operator_name_tw
|
|
||||||
*
|
|
||||||
* @param operatorNameTw the value for remote_index.operator_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setOperatorNameTw(String operatorNameTw) {
|
public void setOperatorNameTw(String operatorNameTw) {
|
||||||
this.operatorNameTw = operatorNameTw;
|
this.operatorNameTw = operatorNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.category_name_tw
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.category_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getCategoryNameTw() {
|
public String getCategoryNameTw() {
|
||||||
return categoryNameTw;
|
return categoryNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.category_name_tw
|
|
||||||
*
|
|
||||||
* @param categoryNameTw the value for remote_index.category_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCategoryNameTw(String categoryNameTw) {
|
public void setCategoryNameTw(String categoryNameTw) {
|
||||||
this.categoryNameTw = categoryNameTw;
|
this.categoryNameTw = categoryNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.brand_name_tw
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.brand_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getBrandNameTw() {
|
public String getBrandNameTw() {
|
||||||
return brandNameTw;
|
return brandNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.brand_name_tw
|
|
||||||
*
|
|
||||||
* @param brandNameTw the value for remote_index.brand_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setBrandNameTw(String brandNameTw) {
|
public void setBrandNameTw(String brandNameTw) {
|
||||||
this.brandNameTw = brandNameTw;
|
this.brandNameTw = brandNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.city_name_tw
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.city_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getCityNameTw() {
|
public String getCityNameTw() {
|
||||||
return cityNameTw;
|
return cityNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.city_name_tw
|
|
||||||
*
|
|
||||||
* @param cityNameTw the value for remote_index.city_name_tw
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setCityNameTw(String cityNameTw) {
|
public void setCityNameTw(String cityNameTw) {
|
||||||
this.cityNameTw = cityNameTw;
|
this.cityNameTw = cityNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.binary_md5
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.binary_md5
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getBinaryMd5() {
|
public String getBinaryMd5() {
|
||||||
return binaryMd5;
|
return binaryMd5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.binary_md5
|
|
||||||
*
|
|
||||||
* @param binaryMd5 the value for remote_index.binary_md5
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setBinaryMd5(String binaryMd5) {
|
public void setBinaryMd5(String binaryMd5) {
|
||||||
this.binaryMd5 = binaryMd5;
|
this.binaryMd5 = binaryMd5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.contributor
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.contributor
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getContributor() {
|
public String getContributor() {
|
||||||
return contributor;
|
return contributor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.contributor
|
|
||||||
*
|
|
||||||
* @param contributor the value for remote_index.contributor
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setContributor(String contributor) {
|
public void setContributor(String contributor) {
|
||||||
this.contributor = contributor;
|
this.contributor = contributor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column remote_index.update_time
|
|
||||||
*
|
|
||||||
* @return the value of remote_index.update_time
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public String getUpdateTime() {
|
public String getUpdateTime() {
|
||||||
return updateTime;
|
return updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column remote_index.update_time
|
|
||||||
*
|
|
||||||
* @param updateTime the value for remote_index.update_time
|
|
||||||
* @mbggenerated Thu May 04 12:06:44 CST 2017
|
|
||||||
*/
|
|
||||||
public void setUpdateTime(String updateTime) {
|
public void setUpdateTime(String updateTime) {
|
||||||
this.updateTime = updateTime;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] getBinaries() {
|
||||||
|
return binaries;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBinaries(byte[] binaries) {
|
||||||
|
this.binaries = binaries;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
package net.irext.decoder.queue;
|
package net.irext.decoder.queue;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.springframework.data.redis.connection.Message;
|
import org.springframework.data.redis.connection.Message;
|
||||||
import org.springframework.data.redis.connection.MessageListener;
|
import org.springframework.data.redis.connection.MessageListener;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filename: MessageSubscriber.java
|
* Filename: MessageSubscriber.java
|
||||||
* Revised: Date: 2018-12-29
|
* Revised: Date: 2018-12-29
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ package net.irext.decoder.service;
|
|||||||
|
|
||||||
import net.irext.decoder.businesslogic.DecodeLogic;
|
import net.irext.decoder.businesslogic.DecodeLogic;
|
||||||
import net.irext.decoder.businesslogic.IndexLogic;
|
import net.irext.decoder.businesslogic.IndexLogic;
|
||||||
|
import net.irext.decoder.cache.IDecodeSessionRepository;
|
||||||
|
import net.irext.decoder.cache.IIRBinaryRepository;
|
||||||
import net.irext.decoder.mapper.RemoteIndexMapper;
|
import net.irext.decoder.mapper.RemoteIndexMapper;
|
||||||
import net.irext.decoder.model.DecodeSession;
|
import net.irext.decoder.model.DecodeSession;
|
||||||
import net.irext.decoder.model.RemoteIndex;
|
import net.irext.decoder.model.RemoteIndex;
|
||||||
import net.irext.decoder.cache.IDecodeSessionRepository;
|
|
||||||
import net.irext.decoder.cache.IIRBinaryRepository;
|
|
||||||
import net.irext.decoder.request.CloseRequest;
|
import net.irext.decoder.request.CloseRequest;
|
||||||
import net.irext.decoder.request.DecodeRequest;
|
import net.irext.decoder.request.DecodeRequest;
|
||||||
import net.irext.decoder.request.OpenRequest;
|
import net.irext.decoder.request.OpenRequest;
|
||||||
@@ -21,7 +21,10 @@ import net.irext.decodesdk.bean.ACStatus;
|
|||||||
import net.irext.decodesdk.utils.Constants;
|
import net.irext.decodesdk.utils.Constants;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.ServletContext;
|
import javax.servlet.ServletContext;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ import net.irext.decoder.response.ServiceResponse;
|
|||||||
import net.irext.decoder.response.Status;
|
import net.irext.decoder.response.Status;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.springframework.context.ApplicationContext;
|
|
||||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filename: AbstractBaseService.java
|
* Filename: AbstractBaseService.java
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package net.irext.decoder.utils;
|
package net.irext.decoder.utils;
|
||||||
|
|
||||||
import net.irext.decoder.service.IRDecodeService;
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
server.port=8082
|
server.port=8082
|
||||||
|
|
||||||
spring.cache.type=redis
|
spring.cache.type=redis
|
||||||
spring.redis.host=localhost
|
spring.redis.host=localhost
|
||||||
spring.redis.port=6379
|
spring.redis.port=6379
|
||||||
|
|
||||||
spring.datasource.url=jdbc:mysql://localhost:3306/irext?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
spring.datasource.url=jdbc:mysql://localhost:3306/irext?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
||||||
spring.datasource.username=root
|
spring.datasource.username=root
|
||||||
spring.datasource.password=root
|
spring.datasource.password=root
|
||||||
Reference in New Issue
Block a user