|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.core.EPAdministratorImpl
public class EPAdministratorImpl
Implementation for the admin interface.
Constructor Summary | |
---|---|
EPAdministratorImpl(EPServicesContext services,
ConfigurationOperations configurationOperations)
Constructor - takes the services context as argument. |
Method Summary | |
---|---|
EPStatement |
createEQL(String eqlStatement)
Creates and starts an EQL statement. |
EPStatement |
createEQL(String eqlStatement,
String statementName)
Create and starts an EQL statement. |
EPStatement |
createPattern(String onExpression)
Create and starts an event pattern statement for the expressing string passed. |
EPStatement |
createPattern(String expression,
String statementName)
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. |
EPStatement |
getStatement(String name)
Returns the statement by the given statement name. |
String[] |
getStatementNames()
Returns the statement names of all started and stopped statements. |
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(EPServicesContext services, ConfigurationOperations configurationOperations)
services
- - references to servicesconfigurationOperations
- - runtime configuration operationsMethod Detail |
---|
public EPStatement createPattern(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 createEQL(String eqlStatement) throws EPException
EPAdministrator
The engine assigns a unique name to the statement. The returned statement is in started state.
createEQL
in interface EPAdministrator
eqlStatement
- is the query language statement
EPException
- when the expression was not validpublic EPStatement createPattern(String expression, 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 manageing the statement
EPException
- when the expression was not validpublic EPStatement createEQL(String eqlStatement, 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.
createEQL
in interface EPAdministrator
eqlStatement
- is the query language statementstatementName
- is the name to assign to the statement for use in manageing the statement
EPException
- when the expression was not validpublic EPStatement getStatement(String name)
EPAdministrator
getStatement
in interface EPAdministrator
name
- is the statement name to return the statement for
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |