Package org.teiid.runtime
Class MaterializationManager
- java.lang.Object
-
- org.teiid.runtime.MaterializationManager
-
- All Implemented Interfaces:
VDBLifeCycleListener
,NodeListener
public abstract class MaterializationManager extends Object implements VDBLifeCycleListener, NodeListener
-
-
Constructor Summary
Constructors Constructor Description MaterializationManager(ContainerLifeCycleListener shutdownListener)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
added(String name, CompositeVDB cvdb)
void
beforeRemove(String name, CompositeVDB cvdb)
ResultsFuture<?>
executeAsynchQuery(VDBMetaData vdb, String command)
ResultsFuture<?>
executeAsynchQuery(VDBMetaData vdb, String command, DQPCore.ResultsListener listener)
List<Map<String,String>>
executeQuery(VDBMetaData vdb, String command)
void
finishedDeployment(String name, CompositeVDB cvdb)
abstract DQPCore
getDQP()
abstract ScheduledExecutorService
getScheduledExecutorService()
abstract VDBRepository
getVDBRepository()
void
nodeDropped(String nodeName)
void
nodeJoined(String nodeName)
void
removed(String name, CompositeVDB cvdb)
int
resetPendingJob(VDBMetaData vdb, Table table, String nodeName)
void
scheduleSnapshotJob(CompositeVDB vdb, Table table, long ttl, long delay, org.teiid.runtime.MaterializationManager.JobType jobType)
-
-
-
Constructor Detail
-
MaterializationManager
public MaterializationManager(ContainerLifeCycleListener shutdownListener)
-
-
Method Detail
-
getScheduledExecutorService
public abstract ScheduledExecutorService getScheduledExecutorService()
-
getDQP
public abstract DQPCore getDQP()
-
getVDBRepository
public abstract VDBRepository getVDBRepository()
-
added
public void added(String name, CompositeVDB cvdb)
- Specified by:
added
in interfaceVDBLifeCycleListener
-
beforeRemove
public void beforeRemove(String name, CompositeVDB cvdb)
- Specified by:
beforeRemove
in interfaceVDBLifeCycleListener
-
removed
public void removed(String name, CompositeVDB cvdb)
- Specified by:
removed
in interfaceVDBLifeCycleListener
-
finishedDeployment
public void finishedDeployment(String name, CompositeVDB cvdb)
- Specified by:
finishedDeployment
in interfaceVDBLifeCycleListener
-
resetPendingJob
public int resetPendingJob(VDBMetaData vdb, Table table, String nodeName)
-
scheduleSnapshotJob
public void scheduleSnapshotJob(CompositeVDB vdb, Table table, long ttl, long delay, org.teiid.runtime.MaterializationManager.JobType jobType)
-
executeAsynchQuery
public ResultsFuture<?> executeAsynchQuery(VDBMetaData vdb, String command) throws SQLException
- Throws:
SQLException
-
executeAsynchQuery
public ResultsFuture<?> executeAsynchQuery(VDBMetaData vdb, String command, DQPCore.ResultsListener listener) throws SQLException
- Throws:
SQLException
-
executeQuery
public List<Map<String,String>> executeQuery(VDBMetaData vdb, String command) throws SQLException
- Throws:
SQLException
-
nodeJoined
public void nodeJoined(String nodeName)
- Specified by:
nodeJoined
in interfaceNodeListener
-
nodeDropped
public void nodeDropped(String nodeName)
- Specified by:
nodeDropped
in interfaceNodeListener
-
-