Browse Source

format

thing_master
siyang 1 year ago
parent
commit
819e1e9f39
  1. 8
      common/script/pom.xml
  2. 1
      modules/dequeue/src/main/java/com/thing/queue/DefaultCoreConsumerService.java
  3. 2
      modules/thing/src/main/java/com/thing/thing/cache/service/ThingCache.java

8
common/script/pom.xml

@ -27,10 +27,6 @@
<groupId>com.thing.common</groupId> <groupId>com.thing.common</groupId>
<artifactId>util</artifactId> <artifactId>util</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.thing.common</groupId>
<artifactId>core</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.javadelight</groupId> <groupId>org.javadelight</groupId>
<artifactId>delight-nashorn-sandbox</artifactId> <artifactId>delight-nashorn-sandbox</artifactId>
@ -55,6 +51,10 @@
<groupId>com.thing.common</groupId> <groupId>com.thing.common</groupId>
<artifactId>tskv</artifactId> <artifactId>tskv</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

1
modules/dequeue/src/main/java/com/thing/queue/DefaultCoreConsumerService.java

@ -285,6 +285,7 @@ public class DefaultCoreConsumerService extends AbstractConsumerService<Transpor
ScriptCache scriptCache = Objects.isNull(calculationId) ? null : scriptCacheService.get(String.valueOf(calculationId)); ScriptCache scriptCache = Objects.isNull(calculationId) ? null : scriptCacheService.get(String.valueOf(calculationId));
if (Objects.isNull(scriptCache)) { if (Objects.isNull(scriptCache)) {
entity.setOutputMsg(inputMsg); entity.setOutputMsg(inputMsg);
return;
} }
ScriptLanguage scriptLanguage = ScriptLanguage.get(scriptCache.getScriptType()); ScriptLanguage scriptLanguage = ScriptLanguage.get(scriptCache.getScriptType());
ScriptEngine scriptEngine = scriptCreateService.createScriptEngine(scriptCache.getScriptEId(), scriptLanguage, scriptCache.getScriptBody(), scriptCache.getDebug()); ScriptEngine scriptEngine = scriptCreateService.createScriptEngine(scriptCache.getScriptEId(), scriptLanguage, scriptCache.getScriptBody(), scriptCache.getDebug());

2
modules/thing/src/main/java/com/thing/thing/cache/service/ThingCache.java

@ -158,7 +158,7 @@ public final class ThingCache {
public void printStats() { public void printStats() {
thingMap.forEach((topic, queue) -> { thingMap.forEach((topic, queue) -> {
log.info("---dataMap-内存主题:{}----->数据量:{}------{}", topic, queue.size(), queue);
log.info("---dataMap-内存主题:{}----->数据量:{}", topic, queue.size());
}); });
} }

Loading…
Cancel
Save