X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientPut.java;h=5dcbf71282da5288eeb121f7dc1a5b75565b53e3;hb=14d38c217ac5e222e8d0d26eb4264fd69f9395d6;hp=809146ae18439d710db9180a44bc0521bd1c4115;hpb=375e699cec4c959fe4657da3798a17357dcd24d4;p=jFCPlib.git
diff --git a/src/main/java/net/pterodactylus/fcp/ClientPut.java b/src/main/java/net/pterodactylus/fcp/ClientPut.java
index 809146a..5dcbf71 100644
--- a/src/main/java/net/pterodactylus/fcp/ClientPut.java
+++ b/src/main/java/net/pterodactylus/fcp/ClientPut.java
@@ -55,8 +55,8 @@ public class ClientPut extends FcpMessage {
* test your direct-disk access (see {@link TestDDARequest},
* {@link TestDDAReply}, {@link TestDDAResponse}, {@link TestDDAComplete})
* before using this option! If uploadFrom
is
- * {@link UploadFrom#redirect}, use {@link #setTargetURI(String)} to set the
- * target URI of the redirect.
+ * {@link UploadFrom#redirect}, use {@link #setTargetURI(String)} to set
+ * the target URI of the redirect.
*
* @param uri
* The URI to insert to
@@ -117,8 +117,8 @@ public class ClientPut extends FcpMessage {
}
/**
- * Determines whether the node should really insert the data or generate the
- * final CHK only.
+ * Determines whether the node should really insert the data or generate
+ * the final CHK only.
*
* @param getCHKOnly
* true
to generate the final CHK only,
@@ -132,14 +132,34 @@ public class ClientPut extends FcpMessage {
* Sets whether an insert request should be forked when it is cached.
*
* @param forkOnCacheable
- * {@code true} to fork the insert when it is cached, {@code
- * false} otherwise
+ * {@code true} to fork the insert when it is cached,
+ * {@code false} otherwise
*/
public void setForkOnCacheable(boolean forkOnCacheable) {
setField("ForkOnCacheable", String.valueOf(forkOnCacheable));
}
/**
+ * Sets the number of additional inserts of single blocks.
+ *
+ * @param extraInsertsSingleBlock
+ * The number of additional inserts
+ */
+ public void setExtraInsertsSingleBlock(int extraInsertsSingleBlock) {
+ setField("ExtraInsertsSingleBlock", String.valueOf(extraInsertsSingleBlock));
+ }
+
+ /**
+ * Sets the number of additional inserts of splitfile header blocks.
+ *
+ * @param extraInsertsSplitfileHeaderBlock
+ * The number of additional inserts
+ */
+ public void setExtraInsertsSplitfileHeaderBlock(int extraInsertsSplitfileHeaderBlock) {
+ setField("ExtraInsertsSplitfileHeaderBlock", String.valueOf(extraInsertsSplitfileHeaderBlock));
+ }
+
+ /**
* Determines whether this request appears on the global queue.
*
* @param global
@@ -155,17 +175,17 @@ public class ClientPut extends FcpMessage {
* already been compressed.
*
* @param dontCompress
- * true
to skip compression of the data in the node,
- * false
to allow compression
+ * true
to skip compression of the data in the
+ * node, false
to allow compression
*/
public void setDontCompress(boolean dontCompress) {
setField("DontCompress", String.valueOf(dontCompress));
}
/**
- * Sets an optional client token. This client token is mentioned in progress
- * and other request-related messages and can be used to identify this
- * request.
+ * Sets an optional client token. This client token is mentioned in
+ * progress and other request-related messages and can be used to identify
+ * this request.
*
* @param clientToken
* The client token