Commit 7ba82aef3be961cfc3c6f0df0a9b9bb25faf32dd

Authored by Andrew Shvayka
1 parent 2ada821d

Fixes to configuration

@@ -29,13 +29,13 @@ public class NashornJsInvokeService extends AbstractNashornJsInvokeService { @@ -29,13 +29,13 @@ public class NashornJsInvokeService extends AbstractNashornJsInvokeService {
29 @Value("${js.local.use_js_sandbox}") 29 @Value("${js.local.use_js_sandbox}")
30 private boolean useJsSandbox; 30 private boolean useJsSandbox;
31 31
32 - @Value("${js.local.js_sandbox.monitor_thread_pool_size}") 32 + @Value("${js.local.monitor_thread_pool_size}")
33 private int monitorThreadPoolSize; 33 private int monitorThreadPoolSize;
34 34
35 - @Value("${js.local.js_sandbox.max_cpu_time}") 35 + @Value("${js.local.max_cpu_time}")
36 private long maxCpuTime; 36 private long maxCpuTime;
37 37
38 - @Value("${js.local.js_sandbox.max_errors}") 38 + @Value("${js.local.max_errors}")
39 private int maxErrors; 39 private int maxErrors;
40 40
41 @Override 41 @Override
1 /** 1 /**
2 * Copyright © 2016-2018 The Thingsboard Authors 2 * Copyright © 2016-2018 The Thingsboard Authors
3 - * <p> 3 + *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 - * <p>  
8 - * http://www.apache.org/licenses/LICENSE-2.0  
9 - * <p> 7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, 11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@ public class TbKafkaSettings { @@ -36,7 +36,7 @@ public class TbKafkaSettings {
36 public static final String RESPONSE_TOPIC_HEADER = "responseTopic"; 36 public static final String RESPONSE_TOPIC_HEADER = "responseTopic";
37 37
38 38
39 - @Value("${kafka.bootstrap.server}") 39 + @Value("${kafka.bootstrap.servers}")
40 private String servers; 40 private String servers;
41 41
42 @Value("${kafka.acks}") 42 @Value("${kafka.acks}")
@@ -54,7 +54,7 @@ public class TbKafkaSettings { @@ -54,7 +54,7 @@ public class TbKafkaSettings {
54 @Value("${kafka.buffer.memory}") 54 @Value("${kafka.buffer.memory}")
55 private long bufferMemory; 55 private long bufferMemory;
56 56
57 - @Value("${kafka.other:null}") 57 + @Value("${kafka.other:#{null}}")
58 private List<TbKafkaProperty> other; 58 private List<TbKafkaProperty> other;
59 59
60 public Properties toProps() { 60 public Properties toProps() {