public class StatementIsolationServiceImpl extends Object implements StatementIsolationService
Constructor and Description |
---|
StatementIsolationServiceImpl()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
beginIsolatingStatements(String name,
int unitId,
EPStatement[] stmt)
Indicates statements are moved to isolation.
|
void |
beginUnisolatingStatements(String name,
int unitId,
EPStatement[] stmt)
Indicates statements are moved out of isolation.
|
void |
commitIsolatingStatements(String name,
int unitId,
EPStatement[] stmt)
Indicates statements are have moved to isolation.
|
void |
commitUnisolatingStatements(String name,
int unitId,
EPStatement[] stmt)
Indicates statements have been moved out of isolation.
|
void |
destroy()
Destroys the servce.
|
EPServiceProviderIsolated |
getIsolationUnit(String name,
Integer optionalUnitId)
Returns an isolated service by names, or allocates a new one if none found.
|
String[] |
getIsolationUnitNames()
Returns all names or currently known isolation services.
|
void |
newStatement(int stmtId,
String stmtName,
EPIsolationUnitServices isolatedServices)
Indicates a new statement created in an isolated service.
|
void |
rollbackIsolatingStatements(String name,
int unitId,
EPStatement[] stmt)
Indicates statements are have not moved to isolation.
|
void |
rollbackUnisolatingStatements(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(String name, 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 String[] getIsolationUnitNames()
StatementIsolationService
getIsolationUnitNames
in interface StatementIsolationService
public void beginIsolatingStatements(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(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(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(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(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(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, String stmtName, EPIsolationUnitServices isolatedServices)
StatementIsolationService
newStatement
in interface StatementIsolationService
stmtId
- statement idstmtName
- statement nameisolatedServices
- isolated services