projects
/
jFCPlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c66c289
)
Add “fork on cacheable” flag to all ClientPut* requests.
author
David ‘Bombe’ Roden
<bombe@freenetproject.org>
Thu, 18 Mar 2010 13:25:53 +0000
(14:25 +0100)
committer
David ‘Bombe’ Roden
<bombe@freenetproject.org>
Thu, 18 Mar 2010 13:25:53 +0000
(14:25 +0100)
src/main/java/net/pterodactylus/fcp/ClientPut.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
patch
|
blob
|
history
diff --git
a/src/main/java/net/pterodactylus/fcp/ClientPut.java
b/src/main/java/net/pterodactylus/fcp/ClientPut.java
index
f7dfabc
..
809146a
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/ClientPut.java
+++ b/
src/main/java/net/pterodactylus/fcp/ClientPut.java
@@
-129,6
+129,17
@@
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
+ */
+ public void setForkOnCacheable(boolean forkOnCacheable) {
+ setField("ForkOnCacheable", String.valueOf(forkOnCacheable));
+ }
+
+ /**
* Determines whether this request appears on the global queue.
*
* @param global
* Determines whether this request appears on the global queue.
*
* @param global
diff --git
a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
index
55e5779
..
c370eaf
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
+++ b/
src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java
@@
-102,6
+102,17
@@
public class ClientPutComplexDir 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
+ */
+ public void setForkOnCacheable(boolean forkOnCacheable) {
+ setField("ForkOnCacheable", String.valueOf(forkOnCacheable));
+ }
+
+ /**
* Sets whether the request is on the global queue.
*
* @param global
* Sets whether the request is on the global queue.
*
* @param global
diff --git
a/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
b/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
index
d9b3924
..
c4e46c6
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
+++ b/
src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java
@@
-90,6
+90,17
@@
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
+ */
+ public void setForkOnCacheable(boolean forkOnCacheable) {
+ setField("ForkOnCacheable", String.valueOf(forkOnCacheable));
+ }
+
+ /**
* Determines whether this request appears on the global queue.
*
* @param global
* Determines whether this request appears on the global queue.
*
* @param global