|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.service.EPAdministratorImpl
public class EPAdministratorImpl
Implementation for the admin interface.
Constructor Summary | |
---|---|
EPAdministratorImpl(EPAdministratorContext adminContext)
Constructor - takes the services context as argument. |
Method Summary | |
---|---|
AnnotationPart |
compileAnnotationToSODA(java.lang.String annotationExpression)
Compile annotation expressions. |
EPStatementObjectModel |
compileEPL(java.lang.String eplStatement)
Compiles a given EPL into an object model representation of the query. |
StatementSpecRaw |
compileEPLToRaw(java.lang.String epl)
|
ExprNode |
compileExpression(java.lang.String expression)
Compile expression. |
Expression |
compileExpressionToSODA(java.lang.String expression)
Compile expression. |
MatchRecognizeRegEx |
compileMatchRecognizePatternToSODA(java.lang.String matchRecogPatternExpression)
Compile match recognize pattern expression. |
EvalFactoryNode |
compilePatternToNode(java.lang.String pattern)
Compile pattern. |
PatternExpr |
compilePatternToSODA(java.lang.String expression)
Compile pattern. |
EPStatementObjectModel |
compilePatternToSODAModel(java.lang.String expression)
Compile pattern. |
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(EPPreparedStatement prepared,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
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 |
create(EPStatementObjectModel sodaStatement,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
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 |
createEPLStatementId(java.lang.String eplStatement,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
EPStatement |
createModelStatementId(EPStatementObjectModel sodaStatement,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
EPStatement |
createPattern(java.lang.String onExpression)
Create and starts an event pattern statement for the expressing string passed. |
EPStatement |
createPattern(java.lang.String expression,
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 expression,
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 expression,
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. |
EPStatement |
createPatternStatementId(java.lang.String pattern,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
EPStatement |
createPreparedEPLStatementId(EPPreparedStatementImpl prepared,
java.lang.String statementName,
java.lang.Object userObject,
java.lang.String statementId)
|
void |
destroy()
Destroys an engine instance. |
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 |
getStatementNameForId(java.lang.String statementId)
|
java.lang.String[] |
getStatementNames()
Returns the statement names of all started and stopped statements. |
EPStatementObjectModel |
mapRawToSODA(StatementSpecRaw raw)
|
StatementSpecRaw |
mapSODAToRaw(EPStatementObjectModel model)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EPAdministratorImpl(EPAdministratorContext adminContext)
adminContext
- - administrative contextMethod Detail |
---|
public EPDeploymentAdmin getDeploymentAdmin()
EPAdministrator
getDeploymentAdmin
in interface EPAdministrator
public EPStatement createPattern(java.lang.String onExpression) throws EPException
EPAdministrator
The engine assigns a unique name to the statement.
createPattern
in interface EPAdministrator
onExpression
- must follow the documented syntax for pattern statements
EPException
- when the expression was not validpublic EPStatement createEPL(java.lang.String eplStatement) throws EPException
EPAdministrator
The engine assigns a unique name to the statement. The returned statement is in started state.
createEPL
in interface EPAdministrator
eplStatement
- is the query language statement
EPException
- when the expression was not validpublic EPStatement createPattern(java.lang.String expression, java.lang.String statementName) throws EPException
EPAdministrator
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.
createPattern
in interface EPAdministrator
expression
- must follow the documented syntax for pattern statementsstatementName
- is the name to assign to the statement for use in managing the statement
EPException
- when the expression was not validpublic EPStatement createPattern(java.lang.String expression, java.lang.String statementName, java.lang.Object userObject) throws EPException
EPAdministrator
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.
createPattern
in interface EPAdministrator
expression
- 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 object
EPException
- when the expression was not validpublic EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName) throws EPException
EPAdministrator
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.
createEPL
in interface EPAdministrator
eplStatement
- is the query language statementstatementName
- is the name to assign to the statement for use in managing the statement
EPException
- when the expression was not validpublic EPStatement createEPLStatementId(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
createEPLStatementId
in interface EPAdministratorSPI
EPException
public EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject) throws EPException
EPAdministrator
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.
createEPL
in interface EPAdministrator
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 object
EPException
- when the expression was not validpublic EPStatement createPattern(java.lang.String expression, java.lang.Object userObject) throws EPException
EPAdministrator
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.
createPattern
in interface EPAdministrator
expression
- must follow the documented syntax for pattern statementsuserObject
- is the application-defined user object
EPException
- when the expression was not validpublic EPStatement createPatternStatementId(java.lang.String pattern, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
createPatternStatementId
in interface EPAdministratorSPI
EPException
public EPStatement createEPL(java.lang.String eplStatement, java.lang.Object userObject) throws EPException
EPAdministrator
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.
createEPL
in interface EPAdministrator
eplStatement
- is the query language statementuserObject
- is the application-defined user object
EPException
- when the expression was not validpublic EPStatement create(EPStatementObjectModel sodaStatement) throws EPException
EPAdministrator
create
in interface EPAdministrator
sodaStatement
- is the statement object model
EPException
- when the expression was not validpublic EPStatement createModelStatementId(EPStatementObjectModel sodaStatement, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
createModelStatementId
in interface EPAdministratorSPI
EPException
public EPStatement create(EPStatementObjectModel sodaStatement, java.lang.String statementName, java.lang.Object userObject) throws EPException
EPAdministrator
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.
create
in interface EPAdministrator
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 object
EPException
- when the expression was not validpublic EPStatement create(EPStatementObjectModel sodaStatement, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
EPException
public EPStatement create(EPStatementObjectModel sodaStatement, java.lang.String statementName) throws EPException
EPAdministrator
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.
create
in interface EPAdministrator
sodaStatement
- is the statement object modelstatementName
- is the name to assign to the statement for use in managing the statement
EPException
- when the expression was not validpublic EPPreparedStatement prepareEPL(java.lang.String eplExpression) throws EPException
EPAdministrator
prepareEPL
in interface EPAdministrator
eplExpression
- is the statement text to prepare
EPException
- indicates compilation errors.public EPPreparedStatement preparePattern(java.lang.String patternExpression) throws EPException
EPAdministrator
preparePattern
in interface EPAdministrator
patternExpression
- is the statement text to prepare
EPException
- indicates compilation errors.public EPStatement create(EPPreparedStatement prepared, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
EPException
public EPStatement create(EPPreparedStatement prepared, java.lang.String statementName) throws EPException
EPAdministrator
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.
create
in interface EPAdministrator
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 statement
EPException
- when the prepared statement was not validpublic EPStatement create(EPPreparedStatement prepared, java.lang.String statementName, java.lang.Object userObject) throws EPException
EPAdministrator
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.
create
in interface EPAdministrator
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 object
EPException
- when the prepared statement was not validpublic EPStatement createPreparedEPLStatementId(EPPreparedStatementImpl prepared, java.lang.String statementName, java.lang.Object userObject, java.lang.String statementId) throws EPException
createPreparedEPLStatementId
in interface EPAdministratorSPI
EPException
public EPStatement create(EPPreparedStatement prepared) throws EPException
EPAdministrator
create
in interface EPAdministrator
prepared
- is the prepared statement for which all substitution values have been provided
EPException
- when the expression was not validpublic EPStatementObjectModel compileEPL(java.lang.String eplStatement) throws EPException
EPAdministrator
compileEPL
in interface EPAdministrator
eplStatement
- is the statement text to compile
EPException
- indicates compilation errors.public EPStatement getStatement(java.lang.String name)
EPAdministrator
getStatement
in interface EPAdministrator
name
- is the statement name to return the statement for
public java.lang.String getStatementNameForId(java.lang.String statementId)
getStatementNameForId
in interface EPAdministratorSPI
public java.lang.String[] getStatementNames()
EPAdministrator
This excludes the name of destroyed statements.
getStatementNames
in interface EPAdministrator
public void startAllStatements() throws EPException
EPAdministrator
startAllStatements
in interface EPAdministrator
EPException
- when an error occured starting statements.public void stopAllStatements() throws EPException
EPAdministrator
stopAllStatements
in interface EPAdministrator
EPException
- when an error occured stopping statementspublic void destroyAllStatements() throws EPException
EPAdministrator
destroyAllStatements
in interface EPAdministrator
EPException
- when an error occured stopping or destroying statementspublic ConfigurationOperations getConfiguration()
EPAdministrator
getConfiguration
in interface EPAdministrator
public void destroy()
destroy
in interface EPAdministratorSPI
public StatementSpecRaw compileEPLToRaw(java.lang.String epl)
compileEPLToRaw
in interface EPAdministratorSPI
public EPStatementObjectModel mapRawToSODA(StatementSpecRaw raw)
mapRawToSODA
in interface EPAdministratorSPI
public StatementSpecRaw mapSODAToRaw(EPStatementObjectModel model)
mapSODAToRaw
in interface EPAdministratorSPI
public EvalFactoryNode compilePatternToNode(java.lang.String pattern) throws EPException
EPAdministratorSPI
compilePatternToNode
in interface EPAdministratorSPI
pattern
- to compile
EPException
- if compile failedpublic EPStatementObjectModel compilePatternToSODAModel(java.lang.String expression) throws EPException
EPAdministratorSPI
compilePatternToSODAModel
in interface EPAdministratorSPI
expression
- to compile
EPException
- if compile failedpublic ExprNode compileExpression(java.lang.String expression) throws EPException
EPAdministratorSPI
compileExpression
in interface EPAdministratorSPI
expression
- to compile
EPException
- if compile failedpublic Expression compileExpressionToSODA(java.lang.String expression) throws EPException
EPAdministratorSPI
compileExpressionToSODA
in interface EPAdministratorSPI
expression
- to compile
EPException
- if compile failedpublic PatternExpr compilePatternToSODA(java.lang.String expression) throws EPException
EPAdministratorSPI
compilePatternToSODA
in interface EPAdministratorSPI
expression
- to compile
EPException
- if compile failedpublic AnnotationPart compileAnnotationToSODA(java.lang.String annotationExpression)
EPAdministratorSPI
compileAnnotationToSODA
in interface EPAdministratorSPI
annotationExpression
- to compile
public MatchRecognizeRegEx compileMatchRecognizePatternToSODA(java.lang.String matchRecogPatternExpression)
EPAdministratorSPI
compileMatchRecognizePatternToSODA
in interface EPAdministratorSPI
matchRecogPatternExpression
- to compile
public EPContextPartitionAdmin getContextPartitionAdmin()
EPAdministrator
getContextPartitionAdmin
in interface EPAdministrator
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |