public static class ProcessWrap.ProcessImpl extends Referenceable implements TriremeProcess
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTIPC_DISCONNECT| Constructor and Description |
|---|
ProcessImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
disconnect(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn) |
java.lang.Object |
getChildProcess() |
java.lang.String |
getClassName() |
IpcHandle |
getIpcHandle() |
org.mozilla.javascript.Function |
getOnExit() |
org.mozilla.javascript.Function |
getOnMessage() |
int |
getPid() |
ScriptRunner |
getRuntime() |
boolean |
isConnected() |
void |
kill(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
int code,
int signal) |
java.lang.Object |
kill(java.lang.String signal) |
static void |
send(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn) |
void |
setOnExit(org.mozilla.javascript.Function onExit) |
void |
setOnMessage(org.mozilla.javascript.Function om) |
static java.lang.Object |
spawn(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn) |
clearErrno, clearPin, getRunner, getRunner, ref, requestPin, setErrno, setErrno, unrefapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final java.lang.String CLASS_NAME
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class Referenceablepublic ScriptRunner getRuntime()
getRuntime in interface TriremeProcess@JSFunction public void close()
close in class Referenceable@JSFunction
public static java.lang.Object spawn(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn)
@JSFunction public java.lang.Object kill(java.lang.String signal)
public void kill(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
int code,
int signal)
kill in interface TriremeProcess@JSFunction
public static void send(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn)
@JSFunction
public static void disconnect(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function fn)
@JSGetter(value="connected") public boolean isConnected()
@JSGetter(value="onexit") public org.mozilla.javascript.Function getOnExit()
@JSSetter(value="onexit") public void setOnExit(org.mozilla.javascript.Function onExit)
@JSGetter(value="pid") public int getPid()
@JSGetter(value="childProcess") public java.lang.Object getChildProcess()
@JSSetter(value="onMessage") public void setOnMessage(org.mozilla.javascript.Function om)
@JSGetter(value="onMessage") public org.mozilla.javascript.Function getOnMessage()
getOnMessage in interface TriremeProcesspublic IpcHandle getIpcHandle()
getIpcHandle in interface TriremeProcessCopyright © 2018 Apigee Corporation. All Rights Reserved.