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());
}
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));
}
Aggregations