public interface EPAdministratorIsolated
Modifier and Type | Method and Description |
---|---|
void |
addStatement(EPStatement statement)
Add a statement to the isolated service.
|
void |
addStatement(EPStatement[] statements)
Add statements to the isolated service.
|
EPStatement |
createEPL(String eplStatement,
String statementName,
Object userObject)
Create and starts an EPL statement.
|
String[] |
getStatementNames()
Returns the statement names of all started and stopped statements.
|
void |
removeStatement(EPStatement statement)
Remove a statement from the isolated service.
|
void |
removeStatement(EPStatement[] statements)
Remove statements from the isolated service.
|
EPStatement createEPL(String eplStatement, String statementName, Object userObject) throws EPException
The statement name is optimally a unique name. If a statement of the same name has already been created, the engine assigns a postfix to create a unique statement name.
Accepts an application defined user data object associated with the statement. The user object is a single, unnamed field that is stored with every statement. Applications may put arbitrary objects in this field or a null value.
eplStatement
- is the query language statementuserObject
- is the application-defined user object, or null if none providedstatementName
- is the statement name or null if not provided or provided via annotation insteadEPException
- when the expression was not validString[] getStatementNames()
This excludes the name of destroyed statements.
void addStatement(EPStatement statement) throws EPServiceIsolationException
statement
- to addEPServiceIsolationException
- if the statement cannot be isolated, typically because it already is isolatedvoid removeStatement(EPStatement statement) throws EPServiceIsolationException
statement
- to removeEPServiceIsolationException
- if the statement was not isolated hereinvoid addStatement(EPStatement[] statements) throws EPServiceIsolationException
statements
- to addEPServiceIsolationException
- if the statement cannot be isolated, typically because it already is isolatedvoid removeStatement(EPStatement[] statements) throws EPServiceIsolationException
statements
- to removeEPServiceIsolationException
- if the statement was not isolated herein