com.marklogic.hub.flow.JobManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-data-hub Show documentation
Show all versions of marklogic-data-hub Show documentation
Library for Creating an Operational Data Hub on MarkLogic
package com.marklogic.hub.flow;
import com.marklogic.hub.HubClient;
import com.marklogic.hub.dataservices.BulkUtil;
public class JobManager {
private final HubClient hubClient;
public JobManager(HubClient hubClient) {
this.hubClient = hubClient;
}
public void deleteJobs(String retainDuration) {
String apiPath = "ml-modules/root/data-hub/data-services/bulk/deleteJobs.api";
BulkUtil.deleteData(hubClient.getJobsClient(), apiPath, retainDuration);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy