public abstract class AbstractProcess extends AbstractIdObject<AbstractProcess>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
connected |
static int |
DEFAULT_UMASK
We don't really know what the umask is in Java, so we set a reasonable default that the tests expected.
|
protected org.mozilla.javascript.Scriptable |
env |
protected String |
eval |
protected Object[] |
execArgv |
static String |
EXECUTABLE_NAME |
protected boolean |
exiting |
protected boolean |
forceRepl |
protected boolean |
printEval |
protected ScriptRunner |
runner |
protected long |
startTime |
protected int |
umask |
Id_constructor| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProcess(IdPropertyMap props) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chdir(org.mozilla.javascript.Context cx,
Object[] args) |
protected String |
cwd() |
protected void |
doKill(org.mozilla.javascript.Context cx,
Object[] args) |
abstract void |
emitEvent(String name,
Object arg,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope)
Call "emit" to emit an event
|
protected String |
getArch() |
protected org.mozilla.javascript.Scriptable |
getConfig() |
abstract Object |
getDomain() |
Object[] |
getExecArgv() |
protected Object |
getFeatures(org.mozilla.javascript.Context cx) |
abstract org.mozilla.javascript.Function |
getHandleFatal() |
abstract Object |
getInternalModule(String name,
org.mozilla.javascript.Context cx) |
protected Object |
getJSExecArgv() |
protected int |
getPid() |
protected String |
getPlatform() |
protected static ScriptRunner |
getRunner(org.mozilla.javascript.Context cx) |
int |
getUmask() |
protected String |
getVersion() |
protected Object |
getVersions() |
protected static Object |
hrtime(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Scriptable thisObj) |
boolean |
isExiting() |
abstract boolean |
isImmediateTaskPending()
Are there tasks waiting to be invoked by "processImmediate tasks?
|
abstract boolean |
isTickTaskPending()
Are there tasks scheduled by "nextTick" pending?
|
static void |
JsGc() |
protected static Object |
memoryUsage(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj) |
abstract void |
processImmediateTasks(org.mozilla.javascript.Context cx)
Handle all tasks registered by "setImmediate"
|
abstract void |
processTickTasks(org.mozilla.javascript.Context cx)
Process tasks scheduled by "nextTick".
|
abstract void |
setArgv(String[] args) |
void |
setConnected(boolean connected) |
abstract void |
setDomain(Object domain) |
void |
setEnv(ProcessEnvironment env) |
void |
setEval(String eval) |
void |
setExecArgv(List<String> args) |
void |
setExiting(boolean exiting) |
void |
setForceRepl(boolean forceRepl) |
void |
setPrintEval(boolean printEval) |
void |
setRunner(NodeRuntime runner) |
abstract void |
submitTick(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable thisObj,
Object callDomain)
Immediately and synchronously invoke the specified function and arguments.
|
protected Object |
umask(Object[] args) |
protected Object |
uptime() |
anonymousCall, defaultConstructor, defaultConstructor, execIdCall, exportAsClass, findInstanceIdInfo, findPrototypeId, getClassName, getInstanceIdName, getMaxInstanceId, initPrototypeId, prototypeCallactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, exportAsJSClass, fillConstructorProperties, get, getAttributes, getInstanceIdValue, getOwnPropertyDescriptor, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdAttributes, setInstanceIdValueapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final String EXECUTABLE_NAME
public static final int DEFAULT_UMASK
protected ScriptRunner runner
protected boolean forceRepl
protected boolean printEval
protected boolean exiting
protected boolean connected
protected String eval
protected org.mozilla.javascript.Scriptable env
protected long startTime
protected int umask
protected Object[] execArgv
protected AbstractProcess(IdPropertyMap props)
public void setRunner(NodeRuntime runner)
public abstract Object getDomain()
public abstract void setDomain(Object domain)
public void setEnv(ProcessEnvironment env)
public abstract void submitTick(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable thisObj,
Object callDomain)
public abstract void emitEvent(String name, Object arg, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope)
public abstract org.mozilla.javascript.Function getHandleFatal()
public abstract boolean isImmediateTaskPending()
public abstract void processImmediateTasks(org.mozilla.javascript.Context cx)
public abstract boolean isTickTaskPending()
public abstract void processTickTasks(org.mozilla.javascript.Context cx)
public abstract Object getInternalModule(String name, org.mozilla.javascript.Context cx)
public abstract void setArgv(String[] args)
public int getUmask()
protected String getVersion()
protected Object getVersions()
protected org.mozilla.javascript.Scriptable getConfig()
protected String getArch()
protected void doKill(org.mozilla.javascript.Context cx,
Object[] args)
protected void chdir(org.mozilla.javascript.Context cx,
Object[] args)
protected String cwd()
public Object[] getExecArgv()
protected Object getJSExecArgv()
protected Object getFeatures(org.mozilla.javascript.Context cx)
protected Object uptime()
protected static Object hrtime(org.mozilla.javascript.Context cx, Object[] args, org.mozilla.javascript.Scriptable thisObj)
protected static Object memoryUsage(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj)
protected String getPlatform()
protected int getPid()
protected static ScriptRunner getRunner(org.mozilla.javascript.Context cx)
public void setForceRepl(boolean forceRepl)
public void setEval(String eval)
public void setPrintEval(boolean printEval)
public void setExiting(boolean exiting)
public boolean isExiting()
public void setConnected(boolean connected)
public static void JsGc()
Copyright © 2016 Apigee Corporation. All Rights Reserved.