Package delight.nashornsandbox.internal
Class ThreadMonitor
java.lang.Object
delight.nashornsandbox.internal.ThreadMonitor
JS executor thread monitor. It is designed to be run in main thread (the JS
script is executed in other thread).
Created on 2015-08-07
- Version:
- $Id$
- Author:
- invalid input: '<'a href="mailto:mxro@nowhere.com>mxro, Marcin Golebski
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadMonitor
public ThreadMonitor(long maxCPUTime, long maxMemory)
-
-
Method Details
-
run
public void run() -
stopMonitor
public void stopMonitor() -
registerThreadToMonitor
-
scriptFinished
public void scriptFinished() -
isCPULimitExceeded
public boolean isCPULimitExceeded() -
isMemoryLimitExceeded
public boolean isMemoryLimitExceeded() -
isScriptKilled
public boolean isScriptKilled()
-