Add possibility to insert additional copies of certain blocks.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 25 Mar 2010 07:56:07 +0000 (08:56 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 25 Mar 2010 07:56:07 +0000 (08:56 +0100)
src/main/java/net/pterodactylus/fcp/ClientPut.java
src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java

index 809146a..5176e6a 100644 (file)
@@ -140,6 +140,26 @@ public class ClientPut extends FcpMessage {
        }
 
        /**
+        * 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
index c370eaf..5b724c7 100644 (file)
@@ -113,6 +113,26 @@ public class ClientPutComplexDir extends FcpMessage {
        }
 
        /**
+        * 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));
+       }
+
+       /**
         * Sets whether the request is on the global queue.
         *
         * @param global
index c4e46c6..6c78e84 100644 (file)
@@ -101,6 +101,26 @@ public class ClientPutDiskDir extends FcpMessage {
        }
 
        /**
+        * 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