mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Java: SeaweedOutputStream add replication option
This commit is contained in:
parent
82c167aaca
commit
ce416d765f
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue