use of org.smartdata.hdfs.action.ArchiveFileAction in project SSM by Intel-bigdata.
the class TestMoveFileAction method moveFile.
private void moveFile(String file) throws Exception {
// schedule move to SSD
ArchiveFileAction action = new ArchiveFileAction();
action.setDfsClient(dfsClient);
action.setContext(smartContext);
Map<String, String> args = new HashMap();
args.put(ArchiveFileAction.FILE_PATH, file);
FileMovePlan plan = createPlan(file, "ARCHIVE");
args.put(MoveFileAction.MOVE_PLAN, plan.toString());
action.init(args);
action.run();
Assert.assertTrue(action.getExpectedAfterRun());
}
Aggregations