|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rythmengine.sandbox.SandboxExecutingService
public class SandboxExecutingService
A secure executing service run template in a separate thread in case there are infinite loop, and also set the SecurityManager in the executing thread
| Constructor Summary | |
|---|---|
SandboxExecutingService(int poolSize,
SandboxThreadFactory fact,
long timeout,
RythmEngine re,
String code)
|
|
| Method Summary | |
|---|---|
String |
execute(Map<String,Object> context,
File template,
Object... args)
|
String |
execute(Map<String,Object> context,
String template,
Object... args)
|
Future<Object> |
executeAsync(ITemplate t)
|
protected void |
finalize()
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SandboxExecutingService(int poolSize,
SandboxThreadFactory fact,
long timeout,
RythmEngine re,
String code)
| Method Detail |
|---|
public String execute(Map<String,Object> context,
File template,
Object... args)
public String execute(Map<String,Object> context,
String template,
Object... args)
public Future<Object> executeAsync(ITemplate t)
public void shutdown()
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||