com.espertech.esper.client
Interface EPAdministrator

All Known Subinterfaces:
EPAdministratorSPI
All Known Implementing Classes:
EPAdministratorImpl

public interface EPAdministrator

Administrative interface to the event stream processing engine. Includes methods to create patterns and EPL statements.


Method Summary
 EPStatementObjectModel compileEPL(java.lang.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, java.lang.String statementName)
          Creates and starts a prepared statement.
 EPStatement create(EPPreparedStatement prepared, java.lang.String statementName, java.lang.Object userObject)
          Creates and starts a prepared statement.
 EPStatement create(EPStatementObjectModel sodaStatement)
          Creates and starts an EPL statement.
 EPStatement create(EPStatementObjectModel sodaStatement, java.lang.String statementName)
          Creates and starts an EPL statement.
 EPStatement create(EPStatementObjectModel sodaStatement, java.lang.String statementName, java.lang.Object userObject)
          Creates and starts an EPL statement.
 EPStatement createEPL(java.lang.String eplStatement)
          Creates and starts an EPL statement.
 EPStatement createEPL(java.lang.String eplStatement, java.lang.Object userObject)
          Create and starts an EPL statement.
 EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName)
          Create and starts an EPL statement.
 EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject)
          Create and starts an EPL statement.
 EPStatement createPattern(java.lang.String onExpression)
          Create and starts an event pattern statement for the expressing string passed.
 EPStatement createPattern(java.lang.String onExpression, java.lang.Object userObject)
          Create and starts an event pattern statement for the expressing string passed and assign the name passed.
 EPStatement createPattern(java.lang.String onExpression, java.lang.String statementName)
          Create and starts an event pattern statement for the expressing string passed and assign the name passed.
 EPStatement createPattern(java.lang.String onExpression, java.lang.String statementName, java.lang.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(java.lang.String name)
          Returns the statement by the given statement name.
 java.lang.String[] getStatementNames()
          Returns the statement names of all started and stopped statements.
 EPPreparedStatement prepareEPL(java.lang.String eplExpression)
          Prepares a statement for the given EPL, which can include substitution parameters marked via question mark '?'.
 EPPreparedStatement preparePattern(java.lang.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.
 

Method Detail

getDeploymentAdmin

EPDeploymentAdmin getDeploymentAdmin()
Returns deployment administrative services.

Returns:
deployment administration

createPattern

EPStatement createPattern(java.lang.String onExpression)
                          throws EPException
Create and starts an event pattern statement for the expressing string passed.

The engine assigns a unique name to the statement.

Parameters:
onExpression - must follow the documented syntax for pattern statements
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createEPL

EPStatement createEPL(java.lang.String eplStatement)
                      throws EPException
Creates and starts an EPL statement.

The engine assigns a unique name to the statement. The returned statement is in started state.

Parameters:
eplStatement - is the query language statement
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createPattern

EPStatement createPattern(java.lang.String onExpression,
                          java.lang.String statementName)
                          throws EPException
Create and starts an event pattern statement for the expressing string passed and assign the name passed.

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.

Parameters:
onExpression - must follow the documented syntax for pattern statements
statementName - is the name to assign to the statement for use in managing the statement
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createPattern

EPStatement createPattern(java.lang.String onExpression,
                          java.lang.String statementName,
                          java.lang.Object userObject)
                          throws EPException
Create and starts an event pattern statement for the expressing string passed and assign the name passed.

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.

Parameters:
onExpression - must follow the documented syntax for pattern statements
statementName - is the name to assign to the statement for use in managing the statement
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createPattern

EPStatement createPattern(java.lang.String onExpression,
                          java.lang.Object userObject)
                          throws EPException
Create and starts an event pattern statement for the expressing string passed and assign the name passed.

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.

Parameters:
onExpression - must follow the documented syntax for pattern statements
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createEPL

EPStatement createEPL(java.lang.String eplStatement,
                      java.lang.String statementName)
                      throws EPException
Create and starts an EPL statement.

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.

Parameters:
eplStatement - is the query language statement
statementName - is the name to assign to the statement for use in managing the statement
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createEPL

EPStatement createEPL(java.lang.String eplStatement,
                      java.lang.String statementName,
                      java.lang.Object userObject)
                      throws EPException
Create and starts an EPL statement.

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.

Parameters:
eplStatement - is the query language statement
statementName - is the name to assign to the statement for use in managing the statement
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

createEPL

EPStatement createEPL(java.lang.String eplStatement,
                      java.lang.Object userObject)
                      throws EPException
Create and starts an EPL statement.

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.

Parameters:
eplStatement - is the query language statement
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

create

EPStatement create(EPStatementObjectModel sodaStatement,
                   java.lang.String statementName)
                   throws EPException
Creates and starts an EPL statement.

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.

Parameters:
sodaStatement - is the statement object model
statementName - is the name to assign to the statement for use in managing the statement
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

create

EPStatement create(EPStatementObjectModel sodaStatement,
                   java.lang.String statementName,
                   java.lang.Object userObject)
                   throws EPException
Creates and starts an EPL statement.

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.

Parameters:
sodaStatement - is the statement object model
statementName - is the name to assign to the statement for use in managing the statement
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

create

EPStatement create(EPStatementObjectModel sodaStatement)
                   throws EPException
Creates and starts an EPL statement.

Parameters:
sodaStatement - is the statement object model
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

compileEPL

EPStatementObjectModel compileEPL(java.lang.String eplExpression)
                                  throws EPException
Compiles a given EPL into an object model representation of the query.

Parameters:
eplExpression - is the statement text to compile
Returns:
object model of statement
Throws:
EPException - indicates compilation errors.

prepareEPL

EPPreparedStatement prepareEPL(java.lang.String eplExpression)
                               throws EPException
Prepares a statement for the given EPL, which can include substitution parameters marked via question mark '?'.

Parameters:
eplExpression - is the statement text to prepare
Returns:
prepared statement
Throws:
EPException - indicates compilation errors.

preparePattern

EPPreparedStatement preparePattern(java.lang.String patternExpression)
                                   throws EPException
Prepares a statement for the given pattern, which can include substitution parameters marked via question mark '?'.

Parameters:
patternExpression - is the statement text to prepare
Returns:
prepared statement
Throws:
EPException - indicates compilation errors.

create

EPStatement create(EPPreparedStatement prepared,
                   java.lang.String statementName)
                   throws EPException
Creates and starts a prepared statement.

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.

Parameters:
prepared - is the prepared statement for which all substitution values have been provided
statementName - is the name to assign to the statement for use in managing the statement
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the prepared statement was not valid

create

EPStatement create(EPPreparedStatement prepared,
                   java.lang.String statementName,
                   java.lang.Object userObject)
                   throws EPException
Creates and starts a prepared statement.

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.

Parameters:
prepared - is the prepared statement for which all substitution values have been provided
statementName - is the name to assign to the statement for use in managing the statement
userObject - is the application-defined user object
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the prepared statement was not valid

create

EPStatement create(EPPreparedStatement prepared)
                   throws EPException
Creates and starts a prepared statement.

Parameters:
prepared - is the prepared statement for which all substitution values have been provided
Returns:
EPStatement to poll data from or to add listeners to
Throws:
EPException - when the expression was not valid

getStatement

EPStatement getStatement(java.lang.String name)
Returns the statement by the given statement name. Returns null if a statement of that name has not been created, or if the statement by that name has been destroyed.

Parameters:
name - is the statement name to return the statement for
Returns:
statement for the given name, or null if no such started or stopped statement exists

getStatementNames

java.lang.String[] getStatementNames()
Returns the statement names of all started and stopped statements.

This excludes the name of destroyed statements.

Returns:
statement names

startAllStatements

void startAllStatements()
                        throws EPException
Starts all statements that are in stopped state. Statements in started state are not affected by this method.

Throws:
EPException - when an error occured starting statements.

stopAllStatements

void stopAllStatements()
                       throws EPException
Stops all statements that are in started state. Statements in stopped state are not affected by this method.

Throws:
EPException - when an error occured stopping statements

destroyAllStatements

void destroyAllStatements()
                          throws EPException
Stops and destroys all statements.

Throws:
EPException - when an error occured stopping or destroying statements

getConfiguration

ConfigurationOperations getConfiguration()
Returns configuration operations for runtime engine configuration.

Returns:
runtime engine configuration operations

getContextPartitionAdmin

EPContextPartitionAdmin getContextPartitionAdmin()
Returns the administrative interface for context partitions.

Returns:
context partition administrative interface

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com