| Modifier and Type | Method and Description |
|---|---|
WorkerExecutionContext |
NativeCallContext.getParentWorkerExecutionContext() |
WorkerExecutionContext |
Context.getParentWorkerExecutionContext() |
| Constructor and Description |
|---|
BLangCallableUnitCallback(Context nativeCallCtx,
WorkerExecutionContext parentCtx,
int[] retRegs,
BType[] retTypes) |
NativeCallContext(WorkerExecutionContext parentCtx,
CallableUnitInfo callableUnitInfo,
WorkerData workerLocal) |
| Modifier and Type | Field and Description |
|---|---|
WorkerExecutionContext |
CPU.HandleErrorException.ctx |
WorkerExecutionContext |
WorkerExecutionContext.parent |
protected WorkerExecutionContext |
BaseWorkerResponseContext.targetCtx |
| Modifier and Type | Method and Description |
|---|---|
static WorkerExecutionContext |
BLangScheduler.errorThrown(WorkerExecutionContext ctx,
BStruct error) |
WorkerExecutionContext |
WorkerSignal.getSourceContext() |
WorkerExecutionContext |
InitWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
WorkerExecutionContext |
WorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes)
Joins a new target worker execution context to the current response
context.
|
WorkerExecutionContext |
AsyncInvocableWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
WorkerExecutionContext |
BaseWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
protected WorkerExecutionContext |
ForkJoinWorkerResponseContext.onError(WorkerSignal signal) |
protected WorkerExecutionContext |
SyncCallableWorkerResponseContext.onError(WorkerSignal signal) |
protected WorkerExecutionContext |
BaseWorkerResponseContext.onError(WorkerSignal signal) |
protected WorkerExecutionContext |
CallableWorkerResponseContext.onError(WorkerSignal signal) |
protected WorkerExecutionContext |
CallableWorkerResponseContext.onFinalizedError(WorkerExecutionContext targetCtx,
BStruct error) |
WorkerExecutionContext |
AsyncInvocableWorkerResponseContext.onFulfillment(boolean runInCaller) |
WorkerExecutionContext |
CallableWorkerResponseContext.onFulfillment(boolean runInCaller) |
protected WorkerExecutionContext |
ForkJoinWorkerResponseContext.onHalt(WorkerSignal signal) |
protected WorkerExecutionContext |
SyncCallableWorkerResponseContext.onHalt(WorkerSignal signal) |
protected WorkerExecutionContext |
BaseWorkerResponseContext.onHalt(WorkerSignal signal) |
protected WorkerExecutionContext |
CallableWorkerResponseContext.onHalt(WorkerSignal signal) |
protected WorkerExecutionContext |
ForkJoinWorkerResponseContext.onHaltFinalized() |
protected WorkerExecutionContext |
ForkJoinWorkerResponseContext.onReturn(WorkerSignal signal) |
protected WorkerExecutionContext |
SyncCallableWorkerResponseContext.onReturn(WorkerSignal signal) |
protected WorkerExecutionContext |
BaseWorkerResponseContext.onReturn(WorkerSignal signal) |
protected WorkerExecutionContext |
CallableWorkerResponseContext.onReturn(WorkerSignal signal) |
protected WorkerExecutionContext |
ForkJoinWorkerResponseContext.onTimeout(WorkerSignal signal) |
protected WorkerExecutionContext |
BaseWorkerResponseContext.onTimeout(WorkerSignal signal) |
protected WorkerExecutionContext |
AsyncInvocableWorkerResponseContext.propagateErrorToTarget() |
protected WorkerExecutionContext |
CallableWorkerResponseContext.propagateErrorToTarget() |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx,
boolean runInCaller) |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx,
int targetIp,
boolean runInCaller) |
static WorkerExecutionContext |
BLangScheduler.schedule(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangScheduler.schedule(WorkerExecutionContext ctx,
boolean runInCaller) |
WorkerExecutionContext |
InitWorkerResponseContext.signal(WorkerSignal signal) |
WorkerExecutionContext |
WorkerResponseContext.signal(WorkerSignal signal)
This is called by the workers to signal the response context of any
signal that needs to be passed into.
|
WorkerExecutionContext |
AsyncInvocableWorkerResponseContext.signal(WorkerSignal signal) |
WorkerExecutionContext |
BaseWorkerResponseContext.signal(WorkerSignal signal) |
| Modifier and Type | Method and Description |
|---|---|
static void |
BLangVMErrors.attachStackFrame(BStruct error,
WorkerExecutionContext context) |
static void |
CPU.copyValues(WorkerExecutionContext ctx,
WorkerData parent,
WorkerData workerSF) |
static BStruct |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BStruct> errors) |
static BStruct |
BLangVMErrors.createError(WorkerExecutionContext context,
String message) |
static BStruct |
BLangVMErrors.createNullRefException(WorkerExecutionContext context) |
static BStruct |
BLangVMErrors.createTypeCastError(WorkerExecutionContext context,
String sourceType,
String targetType) |
static BStruct |
BLangVMErrors.createTypeConversionError(WorkerExecutionContext context,
String errorMessage) |
static void |
BLangScheduler.dumpCallStack(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangScheduler.errorThrown(WorkerExecutionContext ctx,
BStruct error) |
static void |
CPU.exec(WorkerExecutionContext ctx) |
static void |
BLangScheduler.executeNow(WorkerExecutionContext ctx)
This method executes a scheduled worker execution context which is in
CREATED state, which means, it is not yet ready for executing.
|
static BRefValueArray |
BLangVMErrors.generateCallStack(WorkerExecutionContext context,
CallableUnitInfo nativeCUI) |
static BStruct |
BLangVMErrors.getStackFrame(WorkerExecutionContext context) |
static void |
CPU.handleError(WorkerExecutionContext ctx) |
WorkerExecutionContext |
InitWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
WorkerExecutionContext |
WorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes)
Joins a new target worker execution context to the current response
context.
|
WorkerExecutionContext |
AsyncInvocableWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
WorkerExecutionContext |
BaseWorkerResponseContext.joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes) |
boolean |
VarLock.lock(WorkerExecutionContext ctx) |
protected void |
BaseWorkerResponseContext.modifyDebugCommands(WorkerExecutionContext parent,
WorkerExecutionContext child) |
protected WorkerExecutionContext |
CallableWorkerResponseContext.onFinalizedError(WorkerExecutionContext targetCtx,
BStruct error) |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx,
boolean runInCaller) |
static WorkerExecutionContext |
BLangScheduler.resume(WorkerExecutionContext ctx,
int targetIp,
boolean runInCaller) |
static WorkerExecutionContext |
BLangScheduler.schedule(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangScheduler.schedule(WorkerExecutionContext ctx,
boolean runInCaller) |
void |
BLangScheduler.SchedulerStats.stateTransition(WorkerExecutionContext currentCtx,
WorkerState newState) |
static void |
BLangScheduler.stopWorker(WorkerExecutionContext ctx) |
protected void |
CallableWorkerResponseContext.storeError(WorkerExecutionContext sourceCtx,
BStruct error) |
BRefType |
WorkerDataChannel.tryTakeData(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerDone(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerExcepted(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerPaused(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerReady(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerRunning(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerWaitForLock(WorkerExecutionContext ctx) |
static void |
BLangScheduler.workerWaitForResponse(WorkerExecutionContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncInvocableWorkerResponseContext.setWorkerExecutionContexts(List<WorkerExecutionContext> workerExecutionContexts) |
| Constructor and Description |
|---|
ForkJoinWorkerResponseContext(WorkerExecutionContext targetCtx,
int joinTargetIp,
int joinVarReg,
int timeoutTargetIp,
int timeoutVarReg,
int workerCount,
int reqJoinCount,
Set<String> joinWorkerNames,
Map<String,String> channelNames) |
HandleErrorException(WorkerExecutionContext ctx) |
InitWorkerResponseContext(WorkerExecutionContext targetCtx) |
WorkerExecutionContext(WorkerExecutionContext parent,
WorkerResponseContext respCtx,
CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
WorkerData workerLocal,
boolean runInCaller) |
WorkerExecutionContext(WorkerExecutionContext parent,
WorkerResponseContext respCtx,
CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
WorkerData workerLocal,
WorkerData workerResult,
int[] retRegIndexes,
boolean runInCaller) |
WorkerSignal(WorkerExecutionContext sourceContext,
SignalType type,
WorkerData result) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BStruct.lockBlobField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockBlobField(WorkerExecutionContext ctx,
int index) |
boolean |
BStruct.lockBooleanField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockBooleanField(WorkerExecutionContext ctx,
int index) |
boolean |
BStruct.lockFloatField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockFloatField(WorkerExecutionContext ctx,
int index) |
boolean |
BStruct.lockIntField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockIntField(WorkerExecutionContext ctx,
int index) |
boolean |
BStruct.lockRefField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockRefField(WorkerExecutionContext ctx,
int index) |
boolean |
BStruct.lockStringField(WorkerExecutionContext ctx,
int index) |
boolean |
LockableStructureType.lockStringField(WorkerExecutionContext ctx,
int index) |
| Modifier and Type | Method and Description |
|---|---|
WorkerExecutionContext |
VMDebugClientHandler.getWorkerContext(String workerId) |
WorkerExecutionContext |
DebugClientHandler.getWorkerContext(String workerId)
Method to get worker context given the workerId.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,WorkerExecutionContext> |
VMDebugClientHandler.getAllWorkerContexts() |
Map<String,WorkerExecutionContext> |
DebugClientHandler.getAllWorkerContexts()
Method to get all worker contexts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Debugger.addWorkerContext(WorkerExecutionContext ctx)
Add
WorkerExecutionContext to current execution. |
void |
VMDebugClientHandler.addWorkerContext(WorkerExecutionContext ctx) |
void |
DebugClientHandler.addWorkerContext(WorkerExecutionContext ctx)
Called when adding a context.
|
void |
Debugger.notifyDebugHit(WorkerExecutionContext ctx,
LineNumberInfo currentExecLine,
String workerId)
Send a message to the debug client when a breakpoint is hit.
|
void |
Debugger.pauseWorker(WorkerExecutionContext ctx)
Helper method to stop execution of current worker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BallerinaMetricsObserver.startClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaMetricsObserver.startServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaMetricsObserver.stopClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaMetricsObserver.stopServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ObservabilityUtils.continueClientObservation(ObserverContext observerContext,
String connectorName,
String actionName,
WorkerExecutionContext executionContext)
Continue client observation if the
ObservabilityUtils.startClientObservation(String, String, WorkerExecutionContext) was
called without WorkerExecutionContext. |
static void |
ObservabilityUtils.continueServerObservation(ObserverContext observerContext,
String serviceName,
String resourceName,
WorkerExecutionContext executionContext)
Continue server observation if the
ObservabilityUtils.startServerObservation(String, String, String, WorkerExecutionContext) was called without
WorkerExecutionContext. |
static ObserverContext |
ObservabilityUtils.getCurrentContext(WorkerExecutionContext executionContext)
Get an
ObserverContext for current WorkerExecutionContext. |
void |
BallerinaObserver.startClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext)
Start observing client execution code.
|
static ObserverContext |
ObservabilityUtils.startClientObservation(String connectorName,
String actionName,
WorkerExecutionContext executionContext)
Start a client observation.
|
void |
BallerinaObserver.startServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext)
Start observing server execution code.
|
static ObserverContext |
ObservabilityUtils.startServerObservation(String connectorName,
String serviceName,
String resourceName,
WorkerExecutionContext executionContext)
Start a server observation.
|
void |
BallerinaObserver.stopClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext)
Stop observing client execution code.
|
static void |
ObservabilityUtils.stopObservation(WorkerExecutionContext executionContext)
Stop server or client observation.
|
void |
BallerinaObserver.stopServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext)
Stop observing server execution code.
|
| Constructor and Description |
|---|
CallableUnitCallbackObserver(WorkerExecutionContext ctx,
CallableUnitCallback callback) |
CallbackObserver(WorkerExecutionContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
static WorkerExecutionContext |
BLangVMUtils.handleNativeInvocationError(WorkerExecutionContext parentCtx,
BStruct error) |
static WorkerExecutionContext |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse) |
static WorkerExecutionContext |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse,
int flags) |
static WorkerExecutionContext |
BLangFunctions.invokeForkJoin(WorkerExecutionContext parentCtx,
ForkjoinInfo forkjoinInfo,
int joinTargetIp,
int joinVarReg,
int timeoutRegIndex,
int timeoutTargetIp,
int timeoutVarReg) |
static WorkerExecutionContext |
BLangFunctions.invokeNonNativeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
static WorkerData |
BLangVMUtils.createWorkerDataForLocal(WorkerInfo workerInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
BType[] paramTypes) |
static boolean |
BLangVMUtils.getGlobalTransactionenabled(WorkerExecutionContext ctx) |
static ServiceInfo |
BLangVMUtils.getServiceInfo(WorkerExecutionContext ctx) |
static LocalTransactionInfo |
BLangVMUtils.getTransactionInfo(WorkerExecutionContext ctx) |
static WorkerExecutionContext |
BLangVMUtils.handleNativeInvocationError(WorkerExecutionContext parentCtx,
BStruct error) |
static void |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx) |
static BValue[] |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
BValue[] args) |
static WorkerExecutionContext |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse) |
static WorkerExecutionContext |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse,
int flags) |
static WorkerExecutionContext |
BLangFunctions.invokeForkJoin(WorkerExecutionContext parentCtx,
ForkjoinInfo forkjoinInfo,
int joinTargetIp,
int joinVarReg,
int timeoutRegIndex,
int timeoutTargetIp,
int timeoutVarReg) |
static WorkerExecutionContext |
BLangFunctions.invokeNonNativeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
boolean waitForResponse,
int flags) |
static void |
BLangFunctions.invokeNonNativeCallableAsync(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs) |
static void |
BLangFunctions.invokePackageInitFunction(FunctionInfo initFuncInfo,
WorkerExecutionContext context) |
static void |
BLangFunctions.invokeServiceCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
BValue[] args,
CallableUnitCallback responseCallback) |
static void |
BLangFunctions.invokeServiceCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
int[] retRegs,
CallableUnitCallback responseCallback)
This method does not short circuit the execution of the first worker to execute in the
same calling thread, but rather executes all the workers in their own separate threads.
|
static void |
BLangFunctions.invokeVMUtilFunction(FunctionInfo utilFuncInfo,
WorkerExecutionContext context) |
static int[][] |
BLangVMUtils.populateArgAndReturnData(WorkerExecutionContext ctx,
CallableUnitInfo callableUnitInfo,
BValue[] args) |
static BValue[] |
BLangVMUtils.populateReturnData(WorkerExecutionContext ctx,
CallableUnitInfo callableUnitInfo,
int[] retRegs) |
static void |
BLangVMUtils.removeTransactionInfo(WorkerExecutionContext ctx) |
static void |
BLangVMUtils.setGlobalTransactionEnabledStatus(WorkerExecutionContext ctx,
boolean isGlobalTransactionEnabled) |
static void |
BLangVMUtils.setServiceInfo(WorkerExecutionContext ctx,
ServiceInfo serviceInfo) |
static void |
BLangVMUtils.setTransactionInfo(WorkerExecutionContext ctx,
LocalTransactionInfo localTransactionInfo) |
| Modifier and Type | Method and Description |
|---|---|
static BSpan |
TraceUtil.getBSpan(WorkerExecutionContext ctx) |
static void |
TraceUtil.setBSpan(WorkerExecutionContext ctx,
BSpan span) |
void |
BallerinaTracingObserver.startClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaTracingObserver.startServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
TraceManager.startSpan(WorkerExecutionContext ctx) |
void |
BallerinaTracingObserver.stopClientObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaTracingObserver.stopObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
void |
BallerinaTracingObserver.stopServerObservation(ObserverContext observerContext,
WorkerExecutionContext executionContext) |
| Constructor and Description |
|---|
BSpan(WorkerExecutionContext executionContext,
boolean isClientContext) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TransactionUtils.isInitiator(WorkerExecutionContext ctx,
String globalTransactionId,
int transactionBlockId) |
boolean |
LocalTransactionInfo.isRetryPossible(WorkerExecutionContext context,
int transactionId) |
static void |
TransactionUtils.notifyTransactionAbort(WorkerExecutionContext ctx,
String globalTransactionId,
int transactionBlockId) |
static BValue[] |
TransactionUtils.notifyTransactionBegin(WorkerExecutionContext ctx,
String globalTransactionId,
String url,
int transactionBlockId,
String protocol) |
static void |
TransactionUtils.notifyTransactionEnd(WorkerExecutionContext ctx,
String globalTransactionId,
int transactionBlockId) |
boolean |
LocalTransactionInfo.onTransactionFailed(WorkerExecutionContext context,
int transactionBlockId) |
Copyright © 2018 WSO2. All rights reserved.