Search in sources :

Example 1 with JcrServiceLevelAgreementProvider

use of com.thinkbiganalytics.metadata.modeshape.sla.JcrServiceLevelAgreementProvider in project kylo by Teradata.

the class JcrFeedProvider method buildPrecondition.

private PreconditionBuilder buildPrecondition(JcrFeed feed) {
    try {
        Node slaNode = feed.createNewPrecondition();
        ServiceLevelAgreementBuilder slaBldr = ((JcrServiceLevelAgreementProvider) this.slaProvider).builder(slaNode);
        return new JcrPreconditionbuilder(slaBldr, feed);
    } catch (RepositoryException e) {
        throw new MetadataRepositoryException("Failed to create the precondition for feed " + feed.getId(), e);
    }
}
Also used : MetadataRepositoryException(com.thinkbiganalytics.metadata.modeshape.MetadataRepositoryException) ServiceLevelAgreementBuilder(com.thinkbiganalytics.metadata.sla.spi.ServiceLevelAgreementBuilder) Node(javax.jcr.Node) JcrServiceLevelAgreementProvider(com.thinkbiganalytics.metadata.modeshape.sla.JcrServiceLevelAgreementProvider) MetadataRepositoryException(com.thinkbiganalytics.metadata.modeshape.MetadataRepositoryException) RepositoryException(javax.jcr.RepositoryException)

Aggregations

MetadataRepositoryException (com.thinkbiganalytics.metadata.modeshape.MetadataRepositoryException)1 JcrServiceLevelAgreementProvider (com.thinkbiganalytics.metadata.modeshape.sla.JcrServiceLevelAgreementProvider)1 ServiceLevelAgreementBuilder (com.thinkbiganalytics.metadata.sla.spi.ServiceLevelAgreementBuilder)1 Node (javax.jcr.Node)1 RepositoryException (javax.jcr.RepositoryException)1