public class EPAdministratorIsolatedImpl extends java.lang.Object implements EPAdministratorIsolatedSPI
Constructor and Description |
---|
EPAdministratorIsolatedImpl(java.lang.String isolatedServiceName,
EPIsolationUnitServices services,
EPServicesContext unisolatedServices,
EPRuntimeIsolatedSPI isolatedRuntime)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatement(EPStatement stmt)
Add a statement to the isolated service.
|
void |
addStatement(EPStatement[] stmt)
Add statements to the isolated service.
|
void |
addStatement(java.lang.String name)
Add a statement name to the list of statements held by the isolated service provider.
|
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.Integer optionalStatementId) |
java.lang.String[] |
getStatementNames()
Returns the statement names of all started and stopped statements.
|
void |
removeAllStatements()
Remove all statements from isolated services, such as upon destroy.
|
void |
removeStatement(EPStatement stmt)
Remove a statement from the isolated service.
|
void |
removeStatement(EPStatement[] stmt)
Remove statements from the isolated service.
|
public EPAdministratorIsolatedImpl(java.lang.String isolatedServiceName, EPIsolationUnitServices services, EPServicesContext unisolatedServices, EPRuntimeIsolatedSPI isolatedRuntime)
isolatedServiceName
- name of the isolated serviceservices
- isolated servicesunisolatedServices
- engine servicesisolatedRuntime
- the runtime for this isolated servicepublic EPStatement createEPL(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject) throws EPException
EPAdministratorIsolated
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 EPAdministratorIsolated
eplStatement
- is the query language statementstatementName
- is the statement name or null if not provided or provided via annotation insteaduserObject
- is the application-defined user object, or null if none providedEPException
- when the expression was not validpublic EPStatement createEPLStatementId(java.lang.String eplStatement, java.lang.String statementName, java.lang.Object userObject, java.lang.Integer optionalStatementId) throws EPException
createEPLStatementId
in interface EPAdministratorIsolatedSPI
EPException
public java.lang.String[] getStatementNames()
EPAdministratorIsolated
This excludes the name of destroyed statements.
getStatementNames
in interface EPAdministratorIsolated
public void addStatement(java.lang.String name)
EPAdministratorIsolatedSPI
addStatement
in interface EPAdministratorIsolatedSPI
name
- to addpublic void addStatement(EPStatement stmt)
EPAdministratorIsolated
addStatement
in interface EPAdministratorIsolated
stmt
- to addpublic void addStatement(EPStatement[] stmt)
EPAdministratorIsolated
addStatement
in interface EPAdministratorIsolated
stmt
- to addpublic void removeStatement(EPStatement stmt)
EPAdministratorIsolated
removeStatement
in interface EPAdministratorIsolated
stmt
- to removepublic void removeStatement(EPStatement[] stmt)
EPAdministratorIsolated
removeStatement
in interface EPAdministratorIsolated
stmt
- to removepublic void removeAllStatements()