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);
}
}
Aggregations