com.espertech.esper.client
Interface EPAdministratorIsolated

All Known Subinterfaces:
EPAdministratorIsolatedSPI
All Known Implementing Classes:
EPAdministratorIsolatedImpl

public interface EPAdministratorIsolated

Administrative interfae


Method Summary
 void addStatement(EPStatement statement)
          Add a statement to the isolated service.
 void addStatement(EPStatement[] statements)
          Add statements to the isolated service.
 EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject)
          Create and starts an EPL statement.
 java.lang.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.
 

Method Detail

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
userObject - is the application-defined user object, or null if none provided
statementName - is the statement name or null if not provided or provided via annotation instead
Returns:
EPStatement to poll data from or to add listeners to, or null if provided via annotation
Throws:
EPException - when the expression was not valid

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

addStatement

void addStatement(EPStatement statement)
                  throws EPServiceIsolationException
Add a statement to the isolated service.

Parameters:
statement - to add
Throws:
EPServiceIsolationException - if the statement cannot be isolated, typically because it already is isolated

removeStatement

void removeStatement(EPStatement statement)
                     throws EPServiceIsolationException
Remove a statement from the isolated service. This does not change engine state.

Parameters:
statement - to remove
Throws:
EPServiceIsolationException - if the statement was not isolated herein

addStatement

void addStatement(EPStatement[] statements)
                  throws EPServiceIsolationException
Add statements to the isolated service.

Parameters:
statements - to add
Throws:
EPServiceIsolationException - if the statement cannot be isolated, typically because it already is isolated

removeStatement

void removeStatement(EPStatement[] statements)
                     throws EPServiceIsolationException
Remove statements from the isolated service. This does not change engine state.

Parameters:
statements - to remove
Throws:
EPServiceIsolationException - if the statement was not isolated herein

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