Search in sources :

Example 1 with JobQueueDatasetDefinition

use of co.cask.cdap.internal.app.runtime.schedule.queue.JobQueueDatasetDefinition in project cdap by caskdata.

the class AppFabricDatasetModule method register.

@Override
public void register(DatasetDefinitionRegistry registry) {
    DatasetDefinition<Table, ? extends DatasetAdmin> tableDef = registry.get(Table.class.getName());
    registry.add(new JobQueueDatasetDefinition(JobQueueDataset.class.getName(), tableDef));
    DatasetDefinition<IndexedTable, ? extends DatasetAdmin> indexedTableDef = registry.get(IndexedTable.class.getName());
    registry.add(new ProgramScheduleStoreDefinition(Schedulers.STORE_TYPE_NAME, indexedTableDef));
}
Also used : JobQueueDatasetDefinition(co.cask.cdap.internal.app.runtime.schedule.queue.JobQueueDatasetDefinition) Table(co.cask.cdap.api.dataset.table.Table) IndexedTable(co.cask.cdap.api.dataset.lib.IndexedTable) IndexedTable(co.cask.cdap.api.dataset.lib.IndexedTable) ProgramScheduleStoreDefinition(co.cask.cdap.internal.app.runtime.schedule.store.ProgramScheduleStoreDefinition)

Aggregations

IndexedTable (co.cask.cdap.api.dataset.lib.IndexedTable)1 Table (co.cask.cdap.api.dataset.table.Table)1 JobQueueDatasetDefinition (co.cask.cdap.internal.app.runtime.schedule.queue.JobQueueDatasetDefinition)1 ProgramScheduleStoreDefinition (co.cask.cdap.internal.app.runtime.schedule.store.ProgramScheduleStoreDefinition)1