public interface EPAdministrator
Modifier and Type | Method and Description |
---|---|
EPStatementObjectModel |
compileEPL(String eplExpression)
Compiles a given EPL into an object model representation of the query.
|
EPStatement |
create(EPPreparedStatement prepared)
Creates and starts a prepared statement.
|
EPStatement |
create(EPPreparedStatement prepared,
String statementName)
Creates and starts a prepared statement.
|
EPStatement |
create(EPPreparedStatement prepared,
String statementName,
Object userObject)
Creates and starts a prepared statement.
|
EPStatement |
create(EPStatementObjectModel sodaStatement)
Creates and starts an EPL statement.
|
EPStatement |
create(EPStatementObjectModel sodaStatement,
String statementName)
Creates and starts an EPL statement.
|
EPStatement |
create(EPStatementObjectModel sodaStatement,
String statementName,
Object userObject)
Creates and starts an EPL statement.
|
EPStatement |
createEPL(String eplStatement)
Creates and starts an EPL statement.
|
EPStatement |
createEPL(String eplStatement,
Object userObject)
Create and starts an EPL statement.
|
EPStatement |
createEPL(String eplStatement,
String statementName)
Create and starts an EPL statement.
|
EPStatement |
createEPL(String eplStatement,
String statementName,
Object userObject)
Create and starts an EPL statement.
|
EPStatement |
createPattern(String onExpression)
Create and starts an event pattern statement for the expressing string passed.
|
EPStatement |
createPattern(String onExpression,
Object userObject)
Create and starts an event pattern statement for the expressing string passed and assign the name passed.
|
EPStatement |
createPattern(String onExpression,
String statementName)
Create and starts an event pattern statement for the expressing string passed and assign the name passed.
|
EPStatement |
createPattern(String onExpression,
String statementName,
Object userObject)
Create and starts an event pattern statement for the expressing string passed and assign the name passed.
|
void |
destroyAllStatements()
Stops and destroys all statements.
|
ConfigurationOperations |
getConfiguration()
Returns configuration operations for runtime engine configuration.
|
EPContextPartitionAdmin |
getContextPartitionAdmin()
Returns the administrative interface for context partitions.
|
EPDeploymentAdmin |
getDeploymentAdmin()
Returns deployment administrative services.
|
EPStatement |
getStatement(String name)
Returns the statement by the given statement name.
|
String[] |
getStatementNames()
Returns the statement names of all started and stopped statements.
|
EPPreparedStatement |
prepareEPL(String eplExpression)
Prepares a statement for the given EPL, which can include substitution parameters marked via question mark '?'.
|
EPPreparedStatement |
preparePattern(String patternExpression)
Prepares a statement for the given pattern, which can include substitution parameters marked via question mark '?'.
|
void |
startAllStatements()
Starts all statements that are in stopped state.
|
void |
stopAllStatements()
Stops all statements that are in started state.
|
EPDeploymentAdmin getDeploymentAdmin()
EPStatement createPattern(String onExpression) throws EPException
The engine assigns a unique name to the statement.
onExpression
- must follow the documented syntax for pattern statementsEPException
- when the expression was not validEPStatement createEPL(String eplStatement) throws EPException
The engine assigns a unique name to the statement. The returned statement is in started state.
eplStatement
- is the query language statementEPException
- when the expression was not validEPStatement createPattern(String onExpression, String statementName) 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.
onExpression
- must follow the documented syntax for pattern statementsstatementName
- is the name to assign to the statement for use in managing the statementEPException
- when the expression was not validEPStatement createPattern(String onExpression, 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.
onExpression
- must follow the documented syntax for pattern statementsstatementName
- is the name to assign to the statement for use in managing the statementuserObject
- is the application-defined user objectEPException
- when the expression was not validEPStatement createPattern(String onExpression, Object userObject) throws EPException
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.
onExpression
- must follow the documented syntax for pattern statementsuserObject
- is the application-defined user objectEPException
- when the expression was not validEPStatement createEPL(String eplStatement, String statementName) 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.
eplStatement
- is the query language statementstatementName
- is the name to assign to the statement for use in managing the statementEPException
- when the expression was not validEPStatement 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 statementstatementName
- is the name to assign to the statement for use in managing the statementuserObject
- is the application-defined user objectEPException
- when the expression was not validEPStatement createEPL(String eplStatement, Object userObject) throws EPException
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 objectEPException
- when the expression was not validEPStatement create(EPStatementObjectModel sodaStatement, String statementName) 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.
sodaStatement
- is the statement object modelstatementName
- is the name to assign to the statement for use in managing the statementEPException
- when the expression was not validEPStatement create(EPStatementObjectModel sodaStatement, 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.
sodaStatement
- is the statement object modelstatementName
- is the name to assign to the statement for use in managing the statementuserObject
- is the application-defined user objectEPException
- when the expression was not validEPStatement create(EPStatementObjectModel sodaStatement) throws EPException
sodaStatement
- is the statement object modelEPException
- when the expression was not validEPStatementObjectModel compileEPL(String eplExpression) throws EPException
eplExpression
- is the statement text to compileEPException
- indicates compilation errors.EPPreparedStatement prepareEPL(String eplExpression) throws EPException
eplExpression
- is the statement text to prepareEPException
- indicates compilation errors.EPPreparedStatement preparePattern(String patternExpression) throws EPException
patternExpression
- is the statement text to prepareEPException
- indicates compilation errors.EPStatement create(EPPreparedStatement prepared, String statementName) 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.
prepared
- is the prepared statement for which all substitution values have been providedstatementName
- is the name to assign to the statement for use in managing the statementEPException
- when the prepared statement was not validEPStatement create(EPPreparedStatement prepared, 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.
prepared
- is the prepared statement for which all substitution values have been providedstatementName
- is the name to assign to the statement for use in managing the statementuserObject
- is the application-defined user objectEPException
- when the prepared statement was not validEPStatement create(EPPreparedStatement prepared) throws EPException
prepared
- is the prepared statement for which all substitution values have been providedEPException
- when the expression was not validEPStatement getStatement(String name)
name
- is the statement name to return the statement forString[] getStatementNames()
This excludes the name of destroyed statements.
void startAllStatements() throws EPException
EPException
- when an error occured starting statements.void stopAllStatements() throws EPException
EPException
- when an error occured stopping statementsvoid destroyAllStatements() throws EPException
EPException
- when an error occured stopping or destroying statementsConfigurationOperations getConfiguration()
EPContextPartitionAdmin getContextPartitionAdmin()