Search in sources :

Example 1 with PersistJob

use of alluxio.master.file.PersistJob in project alluxio by Alluxio.

the class PersistenceTestUtils method resumeChecker.

/**
 * A convenience method to resume polling persist jobs.
 *
 * @param resource the local cluster resource to resume the service for
 */
public static void resumeChecker(LocalAlluxioClusterResource resource) {
    FileSystemMaster nestedMaster = getFileSystemMaster(resource);
    BlackHoleMap<Long, PersistJob> persistJobs = Whitebox.getInternalState(nestedMaster, "mPersistJobs");
    Whitebox.setInternalState(nestedMaster, "mPersistJobs", persistJobs.getInnerMap());
}
Also used : PersistJob(alluxio.master.file.PersistJob) FileSystemMaster(alluxio.master.file.FileSystemMaster)

Example 2 with PersistJob

use of alluxio.master.file.PersistJob in project alluxio by Alluxio.

the class PersistenceTestUtils method pauseChecker.

/**
 * A convenience method to pause polling persist jobs.
 *
 * @param resource the local cluster resource to pause the service for
 */
public static void pauseChecker(LocalAlluxioClusterResource resource) {
    FileSystemMaster nestedMaster = getFileSystemMaster(resource);
    Map<Long, PersistJob> persistJobs = Whitebox.getInternalState(nestedMaster, "mPersistJobs");
    Whitebox.setInternalState(nestedMaster, "mPersistJobs", new BlackHoleMap<>(persistJobs));
}
Also used : PersistJob(alluxio.master.file.PersistJob) FileSystemMaster(alluxio.master.file.FileSystemMaster)

Aggregations

FileSystemMaster (alluxio.master.file.FileSystemMaster)2 PersistJob (alluxio.master.file.PersistJob)2