All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.hub.flow.JobManager Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
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