public class SiddhiDebugger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SiddhiDebugger.QueryTerminal
SiddhiDebugger allows to add breakpoints only at the beginning and the end of a query.
|
| Constructor and Description |
|---|
SiddhiDebugger(ExecutionPlanContext executionPlanContext)
Create a new SiddhiDebugger instance for the given
ExecutionPlanContext. |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireBreakPoint(String queryName,
SiddhiDebugger.QueryTerminal queryTerminal)
Acquire the given breakpoint.
|
void |
checkBreakPoint(String queryName,
SiddhiDebugger.QueryTerminal queryTerminal,
ComplexEvent complexEvent)
Check for active breakpoint at the given endpoint and if there is an active checkpoint, block the thread and
send the event for debug callback.
|
QueryState |
getQueryState(String queryName)
Get all the events stored in the
Snapshotable entities of the given
query. |
void |
next()
Release the current lock and wait for the events arrive to the next point.
|
void |
play()
Release the current lock and wait for the next event arrive to the same break point.
|
void |
releaseAllBreakPoints()
Release all the breakpoints from the Siddhi debugger.
|
void |
releaseBreakPoint(String queryName,
SiddhiDebugger.QueryTerminal queryTerminal)
Release the given breakpoint from the SiddhiDebugger.
|
void |
setDebuggerCallback(SiddhiDebuggerCallback siddhiDebuggerCallback)
A callback to be called by the Siddhi debugger when reaching an active breakpoint.
|
public SiddhiDebugger(ExecutionPlanContext executionPlanContext)
ExecutionPlanContext.executionPlanContext - the ExecutionPlanContextpublic void acquireBreakPoint(String queryName, SiddhiDebugger.QueryTerminal queryTerminal)
queryName - name of the Siddhi queryqueryTerminal - IN or OUT endpoint of the querypublic void releaseBreakPoint(String queryName, SiddhiDebugger.QueryTerminal queryTerminal)
queryName - name of the Siddhi queryqueryTerminal - IN or OUT endpoint of the querypublic void releaseAllBreakPoints()
public void checkBreakPoint(String queryName, SiddhiDebugger.QueryTerminal queryTerminal, ComplexEvent complexEvent)
queryName - name of the Siddhi queryqueryTerminal - IN or OUT endpoint of the querycomplexEvent - the ComplexEvent which is waiting at the endpointpublic void next()
public void play()
public void setDebuggerCallback(SiddhiDebuggerCallback siddhiDebuggerCallback)
siddhiDebuggerCallback - the SiddhiDebuggerCallbackpublic QueryState getQueryState(String queryName)
Snapshotable entities of the given
query.queryName - name of the Siddhi queryCopyright © 2018 WSO2. All Rights Reserved.