Stats interval fixes
This commit is contained in:
parent
e563939c66
commit
57eeff3c12
@ -295,7 +295,7 @@ public class ActorSystemContext {
|
|||||||
@Getter
|
@Getter
|
||||||
private final AtomicInteger jsInvokeFailuresCount = new AtomicInteger(0);
|
private final AtomicInteger jsInvokeFailuresCount = new AtomicInteger(0);
|
||||||
|
|
||||||
@Scheduled(fixedDelayString = "${js.remote.stats.print_interval_ms}")
|
@Scheduled(fixedDelayString = "${actors.statistics.js_print_interval_ms}")
|
||||||
public void printStats() {
|
public void printStats() {
|
||||||
if (statisticsEnabled) {
|
if (statisticsEnabled) {
|
||||||
if (jsInvokeRequestsCount.get() > 0 || jsInvokeResponsesCount.get() > 0 || jsInvokeFailuresCount.get() > 0) {
|
if (jsInvokeRequestsCount.get() > 0 || jsInvokeResponsesCount.get() > 0 || jsInvokeFailuresCount.get() > 0) {
|
||||||
|
|||||||
@ -70,7 +70,7 @@ public abstract class AbstractNashornJsInvokeService extends AbstractJsInvokeSer
|
|||||||
@Value("${js.local.stats.enabled:false}")
|
@Value("${js.local.stats.enabled:false}")
|
||||||
private boolean statsEnabled;
|
private boolean statsEnabled;
|
||||||
|
|
||||||
@Scheduled(fixedDelayString = "${js.remote.stats.print_interval_ms:10000}")
|
@Scheduled(fixedDelayString = "${js.local.stats.print_interval_ms:10000}")
|
||||||
public void printStats() {
|
public void printStats() {
|
||||||
if (statsEnabled) {
|
if (statsEnabled) {
|
||||||
int pushedMsgs = jsPushedMsgs.getAndSet(0);
|
int pushedMsgs = jsPushedMsgs.getAndSet(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user