public class RunMetaFileManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
append(ProgramRunInfo programRunInfo)
append
ProgramRunInfo and flush to file. |
void |
cleanup() |
void |
syncOutputStreamsIfRequired()
sync the open output streams if the time from last sync is larger than the SYNC_INTERVAL_TIME_MILLIS,
hdfs sync is called and last sync time is updated
|
public void append(ProgramRunInfo programRunInfo) throws InterruptedException
ProgramRunInfo and flush to file. create or rotate file if needed before appending.programRunInfo - InterruptedExceptionpublic void syncOutputStreamsIfRequired()
throws InterruptedException
InterruptedExceptionpublic void cleanup()
Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.