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(SiddhiAppContext siddhiAppContext)
Create a new SiddhiDebugger instance for the given
SiddhiAppContext . |
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.
|
Map<String,Object> |
getQueryState(String queryName)
Get all the event states stored in 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(SiddhiAppContext siddhiAppContext)
SiddhiAppContext
.siddhiAppContext
- the SiddhiAppContextpublic 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 SiddhiDebuggerCallbackCopyright © 2021. All rights reserved.