public class Engine extends SimpleService implements Service
| Modifier and Type | Class and Description |
|---|---|
class |
Engine.StdStreamProcessingContext |
Service.FailedToStart| Constructor and Description |
|---|
Engine(Program p)
Construct an engine to run a given program.
|
| Modifier and Type | Method and Description |
|---|---|
StreamProcessingContext |
getStreamContextFor(String sourceName)
Get the stream context for a given source
|
String |
getUserData(String key) |
boolean |
isRunning()
Is this engine running? (That is, does it have processing threads that have not yet exited?)
|
protected void |
onStartRequested() |
protected void |
onStopRequested() |
void |
removeUserData(String key) |
Engine |
setUserData(String key,
String value) |
void |
startAndWait()
Start the engine and wait for its completion.
|
void |
waitForCompletion() |
requestFinish, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestFinish, startpublic Engine(Program p)
p - public boolean isRunning()
isRunning in interface ServiceisRunning in class SimpleServicepublic void startAndWait()
throws Service.FailedToStart
FailedToStartService.FailedToStartpublic void waitForCompletion()
public StreamProcessingContext getStreamContextFor(String sourceName)
sourceName - public void removeUserData(String key)
protected void onStartRequested()
throws Service.FailedToStart
onStartRequested in class SimpleServiceService.FailedToStartprotected void onStopRequested()
onStopRequested in class SimpleServiceCopyright © 2021 continual.io. All rights reserved.