Java: SeaweedOutputStream add replication option

This commit is contained in:
Chris Lu 2021-02-04 20:22:40 -08:00
parent 82c167aaca
commit ce416d765f

View file

@ -34,6 +34,11 @@ public class SeaweedOutputStream extends OutputStream {
private boolean shouldSaveMetadata = false; private boolean shouldSaveMetadata = false;
public SeaweedOutputStream(FilerGrpcClient filerGrpcClient, final String fullpath) { public SeaweedOutputStream(FilerGrpcClient filerGrpcClient, final String fullpath) {
this(filerGrpcClient, fullpath, "000");
}
public SeaweedOutputStream(FilerGrpcClient filerGrpcClient, final String fullpath, final String replication) {
this.replication = replication;
this.filerGrpcClient = filerGrpcClient; this.filerGrpcClient = filerGrpcClient;
this.path = fullpath; this.path = fullpath;
this.position = 0; this.position = 0;