Examples of SyncDataSet


Examples of org.apache.ivory.oozie.coordinator.SYNCDATASET

  private void createOutputEvent(String feed, String name, Cluster cluster,
      String type, LocationType locType, COORDINATORAPP coord,
      Map<String, String> props, String instance)
      throws IvoryException {
    SYNCDATASET dataset = createDataSet(feed, cluster,name+type,
        locType);
    coord.getDatasets().getDatasetOrAsyncDataset().add(dataset);
    DATAOUT dataout = new DATAOUT();
        if (coord.getOutputEvents() == null)
            coord.setOutputEvents(new OUTPUTEVENTS());
View Full Code Here

Examples of org.apache.ivory.oozie.coordinator.SYNCDATASET

    }

    private SYNCDATASET createDataSet(String feedName, Cluster cluster, String datasetName, LocationType locationType) throws IvoryException {
        Feed feed = (Feed) EntityUtil.getEntity(EntityType.FEED, feedName);

        SYNCDATASET syncdataset = new SYNCDATASET();
        syncdataset.setName(datasetName);
    String locPath = FeedHelper.getLocation(feed, locationType,
        cluster.getName()).getPath();
    syncdataset.setUriTemplate(new Path(locPath).toUri().getScheme()!=null?locPath:"${nameNode}"
        + locPath);
        syncdataset.setFrequency("${coord:" + feed.getFrequency().toString() + "}");

        org.apache.ivory.entity.v0.feed.Cluster feedCluster = FeedHelper.getCluster(feed, cluster.getName());
        syncdataset.setInitialInstance(SchemaHelper.formatDateUTC(feedCluster.getValidity().getStart()));
        syncdataset.setTimezone(feed.getTimezone().getID());
    if (feed.getAvailabilityFlag() == null) {
      syncdataset.setDoneFlag("");
    } else {
      syncdataset.setDoneFlag(feed.getAvailabilityFlag());
    }
        return syncdataset;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.