X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientPutDiskDir.java;h=67022e559ea061dc63fd97857365811cd8bcbc69;hb=8ba2bf0baac5fa3b872c4a1f5020a15d825e525c;hp=c4e46c62fef7c94a75f5df754aa37dacd529cb5f;hpb=375e699cec4c959fe4657da3798a17357dcd24d4;p=jFCPlib.git
diff --git a/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java b/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
index c4e46c6..67022e5 100644
--- a/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
+++ b/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
@@ -78,8 +78,8 @@ public class ClientPutDiskDir 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,
@@ -93,14 +93,34 @@ public class ClientPutDiskDir 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
@@ -116,17 +136,17 @@ public class ClientPutDiskDir 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
@@ -146,8 +166,8 @@ public class ClientPutDiskDir extends FcpMessage {
}
/**
- * Sets the name of the default file. The default file is shown when the key
- * is requested with an additional name.
+ * Sets the name of the default file. The default file is shown when the
+ * key is requested with an additional name.
*
* @param defaultName
* The name of the default file