public class SiddhiAppRuntimeImpl extends Object implements SiddhiAppRuntime
| Constructor and Description |
|---|
SiddhiAppRuntimeImpl(Map<String,io.siddhi.query.api.definition.AbstractDefinition> streamDefinitionMap,
Map<String,io.siddhi.query.api.definition.AbstractDefinition> tableDefinitionMap,
Map<String,io.siddhi.query.api.definition.AbstractDefinition> windowDefinitionMap,
Map<String,io.siddhi.query.api.definition.AbstractDefinition> aggregationDefinitionMap,
InputManager inputManager,
Map<String,QueryRuntime> queryProcessorMap,
Map<String,StreamJunction> streamJunctionMap,
Map<String,Table> tableMap,
Map<String,Window> windowMap,
ConcurrentMap<String,AggregationRuntime> aggregationMap,
Map<String,List<Source>> sourceMap,
Map<String,List<Sink>> sinkMap,
Map<String,PartitionRuntime> partitionMap,
ConcurrentMap<String,Trigger> triggerMap,
SiddhiAppContext siddhiAppContext,
Map<String,SiddhiAppRuntime> siddhiAppRuntimeMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(String queryName,
QueryCallback callback) |
void |
addCallback(String streamId,
StreamCallback streamCallback) |
void |
clearAllRevisions() |
SiddhiDebugger |
debug() |
void |
enablePlayBack(boolean playBackEnabled,
Long idleTime,
Long incrementInMilliseconds)
To enable and disable Siddhi App playback mode on runtime along with optional parameters.
|
Map<String,io.siddhi.query.api.definition.AggregationDefinition> |
getAggregationDefinitionMap()
Get the aggregation definition map.
|
InputHandler |
getInputHandler(String streamId) |
String |
getName() |
Map<String,Map<String,io.siddhi.query.api.definition.AbstractDefinition>> |
getPartitionedInnerStreamDefinitionMap() |
Collection<PartitionRuntime> |
getPartitions() |
Collection<QueryRuntime> |
getQueries() |
Set<String> |
getQueryNames()
Get the names of the available queries.
|
io.siddhi.query.api.SiddhiApp |
getSiddhiApp() |
Collection<List<Sink>> |
getSinks() |
Collection<List<Source>> |
getSources() |
Level |
getStatisticsLevel()
Method to check the Siddhi App statistics level enabled.
|
io.siddhi.query.api.definition.Attribute[] |
getStoreQueryOutputAttributes(io.siddhi.query.api.execution.query.StoreQuery storeQuery) |
io.siddhi.query.api.definition.Attribute[] |
getStoreQueryOutputAttributes(String storeQuery) |
Map<String,io.siddhi.query.api.definition.StreamDefinition> |
getStreamDefinitionMap()
Get the stream definition map.
|
Map<String,io.siddhi.query.api.definition.TableDefinition> |
getTableDefinitionMap()
Get the table definition map.
|
Collection<Table> |
getTables() |
Collection<Trigger> |
getTiggers() |
Map<String,io.siddhi.query.api.definition.WindowDefinition> |
getWindowDefinitionMap()
Get the window definition map.
|
Collection<Window> |
getWindows() |
void |
handleExceptionWith(com.lmax.disruptor.ExceptionHandler<Object> exceptionHandler) |
void |
handleRuntimeExceptionWith(ExceptionListener exceptionListener) |
PersistenceReference |
persist() |
Event[] |
query(io.siddhi.query.api.execution.query.StoreQuery storeQuery) |
Event[] |
query(String storeQuery) |
void |
restore(byte[] snapshot) |
String |
restoreLastRevision() |
void |
restoreRevision(String revision) |
void |
setPurgingEnabled(boolean purgingEnabled) |
void |
setStatisticsLevel(Level level)
To enable, disable and change Siddhi App statistics level on runtime.
|
void |
shutdown() |
byte[] |
snapshot() |
void |
start() |
void |
startSources() |
void |
startWithoutSources() |
public SiddhiAppRuntimeImpl(Map<String,io.siddhi.query.api.definition.AbstractDefinition> streamDefinitionMap, Map<String,io.siddhi.query.api.definition.AbstractDefinition> tableDefinitionMap, Map<String,io.siddhi.query.api.definition.AbstractDefinition> windowDefinitionMap, Map<String,io.siddhi.query.api.definition.AbstractDefinition> aggregationDefinitionMap, InputManager inputManager, Map<String,QueryRuntime> queryProcessorMap, Map<String,StreamJunction> streamJunctionMap, Map<String,Table> tableMap, Map<String,Window> windowMap, ConcurrentMap<String,AggregationRuntime> aggregationMap, Map<String,List<Source>> sourceMap, Map<String,List<Sink>> sinkMap, Map<String,PartitionRuntime> partitionMap, ConcurrentMap<String,Trigger> triggerMap, SiddhiAppContext siddhiAppContext, Map<String,SiddhiAppRuntime> siddhiAppRuntimeMap)
public String getName()
getName in interface SiddhiAppRuntimepublic Map<String,io.siddhi.query.api.definition.StreamDefinition> getStreamDefinitionMap()
getStreamDefinitionMap in interface SiddhiAppRuntimeStreamDefinitions.public Map<String,io.siddhi.query.api.definition.TableDefinition> getTableDefinitionMap()
getTableDefinitionMap in interface SiddhiAppRuntimeTableDefinitions.public Map<String,io.siddhi.query.api.definition.WindowDefinition> getWindowDefinitionMap()
getWindowDefinitionMap in interface SiddhiAppRuntimeWindowDefinitions.public Map<String,io.siddhi.query.api.definition.AggregationDefinition> getAggregationDefinitionMap()
getAggregationDefinitionMap in interface SiddhiAppRuntimeAggregationDefinitions.public Set<String> getQueryNames()
getQueryNames in interface SiddhiAppRuntimepublic Map<String,Map<String,io.siddhi.query.api.definition.AbstractDefinition>> getPartitionedInnerStreamDefinitionMap()
getPartitionedInnerStreamDefinitionMap in interface SiddhiAppRuntimepublic void addCallback(String streamId, StreamCallback streamCallback)
addCallback in interface SiddhiAppRuntimepublic void addCallback(String queryName, QueryCallback callback)
addCallback in interface SiddhiAppRuntimepublic Event[] query(String storeQuery)
query in interface SiddhiAppRuntimepublic Event[] query(io.siddhi.query.api.execution.query.StoreQuery storeQuery)
query in interface SiddhiAppRuntimepublic io.siddhi.query.api.definition.Attribute[] getStoreQueryOutputAttributes(String storeQuery)
getStoreQueryOutputAttributes in interface SiddhiAppRuntimepublic io.siddhi.query.api.definition.Attribute[] getStoreQueryOutputAttributes(io.siddhi.query.api.execution.query.StoreQuery storeQuery)
getStoreQueryOutputAttributes in interface SiddhiAppRuntimepublic InputHandler getInputHandler(String streamId)
getInputHandler in interface SiddhiAppRuntimepublic Collection<List<Source>> getSources()
getSources in interface SiddhiAppRuntimepublic Collection<List<Sink>> getSinks()
getSinks in interface SiddhiAppRuntimepublic Collection<Table> getTables()
getTables in interface SiddhiAppRuntimepublic Collection<Window> getWindows()
getWindows in interface SiddhiAppRuntimepublic Collection<Trigger> getTiggers()
getTiggers in interface SiddhiAppRuntimepublic void start()
start in interface SiddhiAppRuntimepublic void startWithoutSources()
startWithoutSources in interface SiddhiAppRuntimepublic void setPurgingEnabled(boolean purgingEnabled)
setPurgingEnabled in interface SiddhiAppRuntimepublic void startSources()
startSources in interface SiddhiAppRuntimepublic void shutdown()
shutdown in interface SiddhiAppRuntimepublic SiddhiDebugger debug()
debug in interface SiddhiAppRuntimepublic PersistenceReference persist()
persist in interface SiddhiAppRuntimepublic byte[] snapshot()
snapshot in interface SiddhiAppRuntimepublic void restore(byte[] snapshot)
throws CannotRestoreSiddhiAppStateException
restore in interface SiddhiAppRuntimeCannotRestoreSiddhiAppStateExceptionpublic void restoreRevision(String revision) throws CannotRestoreSiddhiAppStateException
restoreRevision in interface SiddhiAppRuntimeCannotRestoreSiddhiAppStateExceptionpublic String restoreLastRevision() throws CannotRestoreSiddhiAppStateException
restoreLastRevision in interface SiddhiAppRuntimeCannotRestoreSiddhiAppStateExceptionpublic void clearAllRevisions()
throws CannotClearSiddhiAppStateException
clearAllRevisions in interface SiddhiAppRuntimeCannotClearSiddhiAppStateExceptionpublic void handleExceptionWith(com.lmax.disruptor.ExceptionHandler<Object> exceptionHandler)
handleExceptionWith in interface SiddhiAppRuntimepublic void handleRuntimeExceptionWith(ExceptionListener exceptionListener)
handleRuntimeExceptionWith in interface SiddhiAppRuntimepublic io.siddhi.query.api.SiddhiApp getSiddhiApp()
getSiddhiApp in interface SiddhiAppRuntimepublic Collection<QueryRuntime> getQueries()
getQueries in interface SiddhiAppRuntimepublic Collection<PartitionRuntime> getPartitions()
getPartitions in interface SiddhiAppRuntimepublic Level getStatisticsLevel()
getStatisticsLevel in interface SiddhiAppRuntimepublic void setStatisticsLevel(Level level)
setStatisticsLevel in interface SiddhiAppRuntimelevel - whether statistics is OFF, BASIC or DETAILpublic void enablePlayBack(boolean playBackEnabled,
Long idleTime,
Long incrementInMilliseconds)
enablePlayBack in interface SiddhiAppRuntimeplayBackEnabled - whether playback is enabled or notidleTime - incrementInMilliseconds - Copyright © 2019. All rights reserved.