Search in sources :

Example 1 with JcrFeedSource

use of com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource in project kylo by Teradata.

the class JcrDatasource method setSources.

public void setSources(List<FeedSource> sources) {
    JcrPropertyUtil.setProperty(this.node, SOURCE_NAME, null);
    for (FeedSource src : sources) {
        Node destNode = ((JcrFeedSource) src).getNode();
        addSourceNode(destNode);
    }
}
Also used : FeedSource(com.thinkbiganalytics.metadata.api.feed.FeedSource) JcrFeedSource(com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource) Node(javax.jcr.Node) JcrFeedSource(com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource)

Example 2 with JcrFeedSource

use of com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource in project kylo by Teradata.

the class JcrDatasource method setDestinations.

public void setDestinations(List<FeedDestination> destinations) {
    JcrPropertyUtil.setProperty(this.node, DESTINATION_NAME, null);
    for (FeedDestination dest : destinations) {
        Node destNode = ((JcrFeedSource) dest).getNode();
        addDestinationNode(destNode);
    }
}
Also used : FeedDestination(com.thinkbiganalytics.metadata.api.feed.FeedDestination) JcrFeedDestination(com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedDestination) Node(javax.jcr.Node) JcrFeedSource(com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource)

Aggregations

JcrFeedSource (com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedSource)2 Node (javax.jcr.Node)2 FeedDestination (com.thinkbiganalytics.metadata.api.feed.FeedDestination)1 FeedSource (com.thinkbiganalytics.metadata.api.feed.FeedSource)1 JcrFeedDestination (com.thinkbiganalytics.metadata.modeshape.feed.JcrFeedDestination)1