public class SiddhiAppRuntime extends Object
| Constructor and Description |
|---|
SiddhiAppRuntime(Map<String,AbstractDefinition> streamDefinitionMap,
Map<String,AbstractDefinition> tableDefinitionMap,
Map<String,AbstractDefinition> windowDefinitionMap,
Map<String,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,
SiddhiAppContext siddhiAppContext,
Map<String,SiddhiAppRuntime> siddhiAppRuntimeMap) |
public SiddhiAppRuntime(Map<String,AbstractDefinition> streamDefinitionMap, Map<String,AbstractDefinition> tableDefinitionMap, Map<String,AbstractDefinition> windowDefinitionMap, Map<String,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, SiddhiAppContext siddhiAppContext, Map<String,SiddhiAppRuntime> siddhiAppRuntimeMap)
public String getName()
public Map<String,StreamDefinition> getStreamDefinitionMap()
StreamDefinitions.public Map<String,TableDefinition> getTableDefinitionMap()
TableDefinitions.public Map<String,WindowDefinition> getWindowDefinitionMap()
WindowDefinitions.public Map<String,AggregationDefinition> getAggregationDefinitionMap()
AggregationDefinitions.public Set<String> getQueryNames()
public Map<String,Map<String,AbstractDefinition>> getPartitionedInnerStreamDefinitionMap()
public void addCallback(String streamId, StreamCallback streamCallback)
public void addCallback(String queryName, QueryCallback callback)
public Event[] query(StoreQuery storeQuery)
public Attribute[] getStoreQueryOutputAttributes(StoreQuery storeQuery)
public InputHandler getInputHandler(String streamId)
public Collection<List<Source>> getSources()
public Collection<List<Sink>> getSinks()
public Collection<Table> getTables()
public void start()
public void shutdown()
public SiddhiDebugger debug()
public PersistenceReference persist()
public byte[] snapshot()
public void restore(byte[] snapshot)
throws CannotRestoreSiddhiAppStateException
public void restoreRevision(String revision) throws CannotRestoreSiddhiAppStateException
public String restoreLastRevision() throws CannotRestoreSiddhiAppStateException
public void handleExceptionWith(com.lmax.disruptor.ExceptionHandler<Object> exceptionHandler)
public boolean isStatsEnabled()
public void enableStats(boolean statsEnabled)
statsEnabled - whether statistics is enabled or notCopyright © 2018 WSO2. All rights reserved.