Browse Source

Java: SeaweedOutputStream add replication option

pull/1784/head
Chris Lu 4 years ago
parent
commit
ce416d765f
  1. 5
      other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

5
other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

@ -34,6 +34,11 @@ public class SeaweedOutputStream extends OutputStream {
private boolean shouldSaveMetadata = false;
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.path = fullpath;
this.position = 0;

Loading…
Cancel
Save