Search in sources :

Example 1 with FeedOperationBatchStatusChange

use of com.thinkbiganalytics.metadata.api.event.feed.FeedOperationBatchStatusChange in project kylo by Teradata.

the class JpaBatchJobExecutionProvider method notifyBatchToStream.

/*
    public Page<? extends BatchJobExecution> findAllByExample(String filter, Pageable pageable){

        //construct new instance of JpaBatchExecution for searching
        JpaBatchJobExecution example = new JpaBatchJobExecution();
        example.setStatus(BatchJobExecution.JobStatus.valueOf("status"));
        ExampleMatcher matcher = ExampleMatcher.matching()
            .withIgnoreCase().withIgnoreCase(true);

      return   jobExecutionRepository.findAll(Example.of(example,matcher),pageable);

    }
    */
@Override
public void notifyBatchToStream(BatchJobExecution jobExecution, OpsManagerFeed feed) {
    FeedOperationBatchStatusChange change = new FeedOperationBatchStatusChange(feed.getId(), feed.getName(), jobExecution.getJobExecutionId(), FeedOperationBatchStatusChange.BatchType.STREAM);
    clusterService.sendMessageToOthers(FeedOperationBatchStatusChange.CLUSTER_MESSAGE_TYPE, change);
}
Also used : FeedOperationBatchStatusChange(com.thinkbiganalytics.metadata.api.event.feed.FeedOperationBatchStatusChange)

Example 2 with FeedOperationBatchStatusChange

use of com.thinkbiganalytics.metadata.api.event.feed.FeedOperationBatchStatusChange in project kylo by Teradata.

the class JpaBatchJobExecutionProvider method notifyStreamToBatch.

@Override
public void notifyStreamToBatch(BatchJobExecution jobExecution, OpsManagerFeed feed) {
    FeedOperationBatchStatusChange change = new FeedOperationBatchStatusChange(feed.getId(), feed.getName(), jobExecution.getJobExecutionId(), FeedOperationBatchStatusChange.BatchType.BATCH);
    clusterService.sendMessageToOthers(FeedOperationBatchStatusChange.CLUSTER_MESSAGE_TYPE, change);
}
Also used : FeedOperationBatchStatusChange(com.thinkbiganalytics.metadata.api.event.feed.FeedOperationBatchStatusChange)

Aggregations

FeedOperationBatchStatusChange (com.thinkbiganalytics.metadata.api.event.feed.FeedOperationBatchStatusChange)2