This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-27
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-27 by this push:
new cbcc9b7 WIP.
cbcc9b7 is described below
commit cbcc9b7c43ed2edd632adb120832a8af94ceb543
Author: Sergey Kamov
AuthorDate: Wed Mar 25 19:59:44 2020 +0300
WIP.
---
.../common/nlp/core/NCNlpCoreManager.scala | 2 +-
.../common/nlp/dict/NCDictionaryManager.scala | 4 +--
.../probe/mgrs/conn/NCConnectionManager.scala | 40 +++--
.../mgrs/conversation/NCConversationManager.scala | 3 +-
.../probe/mgrs/deploy/NCDeployManager.scala| 15
.../mgrs/dialogflow/NCDialogFlowManager.scala | 5 +--
.../probe/mgrs/lifecycle/NCLifecycleManager.scala | 10 +++---
.../nlpcraft/probe/mgrs/model/NCModelManager.scala | 4 ++-
.../probe/mgrs/nlp/NCProbeEnrichmentManager.scala | 12 ---
.../mgrs/nlp/validate/NCValidateManager.scala | 2 +-
.../apache/nlpcraft/server/geo/NCGeoManager.scala | 4 +--
.../lifecycle/NCServerLifecycleManager.scala | 4 +--
.../lifecycle/opencensus/NCJaegerExporter.scala| 6 ++--
.../opencensus/NCPrometheusExporter.scala | 8 ++---
.../opencensus/NCStackdriverStatsExporter.scala| 4 +--
.../opencensus/NCStackdriverTraceExporter.scala| 2 +-
.../lifecycle/opencensus/NCZipkinExporter.scala| 8 ++---
.../server/nlp/core/NCNlpServerManager.scala | 6 ++--
.../server/nlp/core/spacy/NCSpaCyNerEnricher.scala | 2 +-
.../nlp/core/stanford/NCStanfordCoreManager.scala | 2 +-
.../nlp/enrichers/NCServerEnrichmentManager.scala | 2 +-
.../server/nlp/enrichers/date/NCDateEnricher.scala | 2 +-
.../nlpcraft/server/probe/NCProbeManager.scala | 41 ++
.../nlpcraft/server/query/NCQueryManager.scala | 4 ++-
.../nlpcraft/server/rest/NCRestManager.scala | 6 ++--
.../org/apache/nlpcraft/server/sql/NCSql.scala | 20 +--
.../apache/nlpcraft/server/sql/NCSqlManager.scala | 2 +-
.../apache/nlpcraft/server/tx/NCTxManager.scala| 5 +--
.../nlpcraft/server/user/NCUserManager.scala | 10 +++---
29 files changed, 131 insertions(+), 104 deletions(-)
diff --git
a/src/main/scala/org/apache/nlpcraft/common/nlp/core/NCNlpCoreManager.scala
b/src/main/scala/org/apache/nlpcraft/common/nlp/core/NCNlpCoreManager.scala
index 6dedbbd..d8e431c 100644
--- a/src/main/scala/org/apache/nlpcraft/common/nlp/core/NCNlpCoreManager.scala
+++ b/src/main/scala/org/apache/nlpcraft/common/nlp/core/NCNlpCoreManager.scala
@@ -29,7 +29,7 @@ object NCNlpCoreManager extends NCService {
private final val SUPPORTED_NLP_ENGINES = Seq("opennlp", "stanford")
private object Config extends NCConfigurable {
-val engine: String = getString("nlpcraft.nlpEngine")
+def engine: String = getString("nlpcraft.nlpEngine")
}
@volatile private var tokenizer: NCNlpTokenizer = _
diff --git
a/src/main/scala/org/apache/nlpcraft/common/nlp/dict/NCDictionaryManager.scala
b/src/main/scala/org/apache/nlpcraft/common/nlp/dict/NCDictionaryManager.scala
index c5bdcc7..9eafe87 100644
---
a/src/main/scala/org/apache/nlpcraft/common/nlp/dict/NCDictionaryManager.scala
+++
b/src/main/scala/org/apache/nlpcraft/common/nlp/dict/NCDictionaryManager.scala
@@ -40,8 +40,8 @@ object NCDictionaryManager extends NCService {
require(NCDictionaryType.values.forall(dictFiles.contains))
// Summary dictionary for all types.
-private var full: Set[String] = _
-private var dicts: Map[NCDictionaryType, Set[String]] = _
+@volatile private var full: Set[String] = _
+@volatile private var dicts: Map[NCDictionaryType, Set[String]] = _
override def start(parent: Span): NCService = startScopedSpan("start",
parent, "dictionaries" → dictFiles.values.mkString(",")) { _ ⇒
dicts = dictFiles.map(p ⇒ {
diff --git
a/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
b/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
index b200b87..1094b16 100644
---
a/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
+++
b/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
@@ -49,30 +49,30 @@ object NCConnectionManager extends NCService {
private final val PING_TIMEOUT = 5 * 1000
// Internal probe GUID.
-final val PROBE_GUID = U.genGuid()
+@volatile private var probeGuid: String = _
// Internal semaphores.
-private val stopSem: AtomicInteger = new AtomicInteger(1)
+@volatile private var stopSem: AtomicInteger = _
private final val sysProps: Properties = System.getProperties
private final val localHost: InetAddress = InetAddress.getLocalHost
-private var hwAddrs: String = _
+@volatile private var hwA