Search in sources :

Example 1 with DLOutputStream

use of com.twitter.heron.dlog.DLOutputStream in project incubator-heron by apache.

the class DlogStorage method openOutputStream.

protected OutputStream openOutputStream(String path) throws IOException {
    DistributedLogManager dlm = namespace.openLog(path);
    AppendOnlyStreamWriter writer = dlm.getAppendOnlyStreamWriter();
    return new DLOutputStream(dlm, writer);
}
Also used : DistributedLogManager(org.apache.distributedlog.api.DistributedLogManager) AppendOnlyStreamWriter(org.apache.distributedlog.AppendOnlyStreamWriter) DLOutputStream(com.twitter.heron.dlog.DLOutputStream)

Example 2 with DLOutputStream

use of com.twitter.heron.dlog.DLOutputStream in project incubator-heron by apache.

the class DLUploader method openOutputStream.

protected OutputStream openOutputStream(String pkgName) throws IOException {
    DistributedLogManager dlm = namespace.openLog(pkgName);
    AppendOnlyStreamWriter writer = dlm.getAppendOnlyStreamWriter();
    return new DLOutputStream(dlm, writer);
}
Also used : DistributedLogManager(org.apache.distributedlog.api.DistributedLogManager) AppendOnlyStreamWriter(org.apache.distributedlog.AppendOnlyStreamWriter) DLOutputStream(com.twitter.heron.dlog.DLOutputStream)

Aggregations

DLOutputStream (com.twitter.heron.dlog.DLOutputStream)2 AppendOnlyStreamWriter (org.apache.distributedlog.AppendOnlyStreamWriter)2 DistributedLogManager (org.apache.distributedlog.api.DistributedLogManager)2