public class CompiledSandboxRules
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static CompiledSandboxRules |
compile(SandboxRules sandbox) |
java.lang.Integer |
getMaxExecTimeSeconds() |
java.lang.Integer |
getMaxFutureThreadPoolSize() |
boolean |
isBlackListedVeniceFunction(java.lang.String funcName) |
boolean |
isWhiteListed(java.lang.Class<?> clazz)
Returns
true if the class is white listed otherwise
false |
boolean |
isWhiteListed(java.lang.Class<?> clazz,
java.lang.String accessor)
Returns
true if the class/accessor is white listed otherwise
false |
boolean |
isWhiteListedClasspathResource(java.lang.String resource)
Returns
true if the classpath resource is white listed otherwise
false |
boolean |
isWhiteListedSystemEnv(java.lang.String name) |
boolean |
isWhiteListedSystemProperty(java.lang.String property) |
boolean |
isWhiteListedVeniceModule(java.lang.String moduleName) |
public static CompiledSandboxRules compile(SandboxRules sandbox)
public boolean isWhiteListed(java.lang.Class<?> clazz)
true if the class is white listed otherwise
falseclazz - A classtrue if the class is white listed otherwise
falsepublic boolean isWhiteListed(java.lang.Class<?> clazz,
java.lang.String accessor)
true if the class/accessor is white listed otherwise
falseclazz - A classaccessor - An accessor (method or field name)true if the class/accessor is white listed otherwise
falsepublic boolean isWhiteListedClasspathResource(java.lang.String resource)
true if the classpath resource is white listed otherwise
falseresource - A classpath resourcetrue if the classpath resource is white listed otherwise
falsepublic boolean isBlackListedVeniceFunction(java.lang.String funcName)
public boolean isWhiteListedVeniceModule(java.lang.String moduleName)
public boolean isWhiteListedSystemProperty(java.lang.String property)
public boolean isWhiteListedSystemEnv(java.lang.String name)
public java.lang.Integer getMaxExecTimeSeconds()
public java.lang.Integer getMaxFutureThreadPoolSize()