diff --git a/plugin.xml b/plugin.xml
index 89c8d91..76e51c2 100755
--- a/plugin.xml
+++ b/plugin.xml
@@ -18,12 +18,10 @@
-
-
-
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 667c936..6b7a55f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,6 +11,13 @@
jar
demo-tabledata-redis
+
+
+ redis.clients
+ jedis
+ 2.9.0
+
+
${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.solution.plugin.db.redis.v10-1.0/classes
diff --git a/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java b/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java
index f078d41..8edf946 100755
--- a/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java
+++ b/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java
@@ -11,8 +11,11 @@ import com.fr.file.DatasourceManager;
import com.fr.general.Inter;
import com.fr.general.data.DataModel;
import com.fr.general.xml.GeneralXMLTools;
+import com.fr.intelli.record.Focus;
+import com.fr.intelli.record.Original;
import com.fr.plugin.ExtraClassManager;
import com.fr.plugin.db.redis.core.order.OrderValue;
+import com.fr.record.analyzer.EnableMetrics;
import com.fr.script.Calculator;
import com.fr.stable.ArrayUtils;
import com.fr.stable.ParameterProvider;
@@ -26,25 +29,9 @@ import java.util.HashMap;
import java.util.Map;
+@EnableMetrics
public class RedisTableData extends AbstractParameterTableData {
- private static final FunctionProcessor REDIS = new AbstractFunctionProcessor() {
-
- @Override
- public int getId() {
- return FunctionHelper.generateFunctionID(RedisConstants.PLUGIN_ID);
- }
-
- @Override
- public String getLocaleKey() {
- return "Plugin-Redis_DB";
- }
-
- @Override
- public String toString() {
- return Inter.getLocText("Plugin-Redis_DB");
- }
- };
private Connection database;
private OrderValue dbIndex;
@@ -85,11 +72,8 @@ public class RedisTableData extends AbstractParameterTableData {
}
@Override
+ @Focus(id = RedisConstants.PLUGIN_ID, text = "Plugin-Redis_DB", source = Original.PLUGIN)
public DataModel createDataModel(Calculator calculator, int rowCount) {
- FunctionProcessor processor = ExtraClassManager.getInstance().getFunctionProcessor();
- if (processor != null) {
- processor.recordFunction(REDIS);
- }
Parameter[] ps = Parameter.providers2Parameter(getParameters(calculator));
if (database instanceof NameDatabaseConnection) {
String name = ((NameDatabaseConnection) database).getName();
diff --git a/src/main/java/com/fr/plugin/db/redis/core/RedisTableDataModel.java b/src/main/java/com/fr/plugin/db/redis/core/RedisTableDataModel.java
index a13eb33..f5fd901 100755
--- a/src/main/java/com/fr/plugin/db/redis/core/RedisTableDataModel.java
+++ b/src/main/java/com/fr/plugin/db/redis/core/RedisTableDataModel.java
@@ -1,10 +1,9 @@
package com.fr.plugin.db.redis.core;
-import com.fr.base.FRContext;
import com.fr.base.Parameter;
import com.fr.data.AbstractDataModel;
-import com.fr.general.FRLogger;
import com.fr.general.data.TableDataException;
+import com.fr.log.FineLoggerFactory;
import com.fr.plugin.PluginLicense;
import com.fr.plugin.PluginLicenseManager;
import com.fr.plugin.db.redis.core.visit.VisitorFactory;
@@ -12,7 +11,7 @@ import com.fr.script.Calculator;
import com.fr.stable.StringUtils;
import redis.clients.jedis.Jedis;
-import java.util.*;
+import java.util.List;
public class RedisTableDataModel extends AbstractDataModel {
@@ -37,7 +36,7 @@ public class RedisTableDataModel extends AbstractDataModel {
if (redisClient == null) {
redisClient = mc.createRedisClient();
redisClient.select(dbIndex);
- FRContext.getLogger().info("Connect to redis and select database:" + dbIndex);
+ FineLoggerFactory.getLogger().info("Connect to redis and select database:" + dbIndex);
}
try {
DataWrapper