public class StatementIsolationServiceImpl extends java.lang.Object implements StatementIsolationService
Constructor and Description |
---|
StatementIsolationServiceImpl()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
beginIsolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements are moved to isolation.
|
void |
beginUnisolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements are moved out of isolation.
|
void |
commitIsolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements are have moved to isolation.
|
void |
commitUnisolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements have been moved out of isolation.
|
void |
destroy()
Destroys the servce.
|
EPServiceProviderIsolated |
getIsolationUnit(java.lang.String name,
java.lang.Integer optionalUnitId)
Returns an isolated service by names, or allocates a new one if none found.
|
java.lang.String[] |
getIsolationUnitNames()
Returns all names or currently known isolation services.
|
void |
newStatement(int stmtId,
java.lang.String stmtName,
EPIsolationUnitServices isolatedServices)
Indicates a new statement created in an isolated service.
|
void |
rollbackIsolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements are have not moved to isolation.
|
void |
rollbackUnisolatingStatements(java.lang.String name,
int unitId,
EPStatement[] stmt)
Indicates statements are not moved out of isolation.
|
void |
setEpServicesContext(EPServicesContext epServicesContext)
Set the engine service context.
|
public void setEpServicesContext(EPServicesContext epServicesContext)
epServicesContext
- services contextpublic EPServiceProviderIsolated getIsolationUnit(java.lang.String name, java.lang.Integer optionalUnitId)
StatementIsolationService
getIsolationUnit
in interface StatementIsolationService
name
- isolated serviceoptionalUnitId
- the unique id assigned to the isolation unitpublic void destroy()
StatementIsolationService
destroy
in interface StatementIsolationService
public java.lang.String[] getIsolationUnitNames()
StatementIsolationService
getIsolationUnitNames
in interface StatementIsolationService
public void beginIsolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
beginIsolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void commitIsolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
commitIsolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void rollbackIsolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
rollbackIsolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void beginUnisolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
beginUnisolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void commitUnisolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
commitUnisolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void rollbackUnisolatingStatements(java.lang.String name, int unitId, EPStatement[] stmt)
StatementIsolationService
rollbackUnisolatingStatements
in interface StatementIsolationService
name
- isolated service provider name.unitId
- isolated service provider number.stmt
- statements moved.public void newStatement(int stmtId, java.lang.String stmtName, EPIsolationUnitServices isolatedServices)
StatementIsolationService
newStatement
in interface StatementIsolationService
stmtId
- statement idstmtName
- statement nameisolatedServices
- isolated services