projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat source code, new line length for comments (79), some trailing whitespace...
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
highlevel
/
Request.java
diff --git
a/src/main/java/net/pterodactylus/fcp/highlevel/Request.java
b/src/main/java/net/pterodactylus/fcp/highlevel/Request.java
index
0b0f46e
..
4b73398
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/highlevel/Request.java
+++ b/
src/main/java/net/pterodactylus/fcp/highlevel/Request.java
@@
-132,7
+132,8
@@
public abstract class Request {
* Sets whether this request is complete.
*
* @param complete
* Sets whether this request is complete.
*
* @param complete
- * <code>true</code> if this request is complete, false otherwise
+ * <code>true</code> if this request is complete, false
+ * otherwise
*/
void setComplete(boolean complete) {
this.complete = complete;
*/
void setComplete(boolean complete) {
this.complete = complete;
@@
-219,8
+220,8
@@
public abstract class Request {
}
/**
}
/**
- * Returns whether this request has fatally failed, i.e. repitition will
not
- * cause the request to succeed.
+ * Returns whether this request has fatally failed, i.e. repitition will
+ *
not
cause the request to succeed.
*
* @return <code>true</code> if this request can not be made succeed by
* repeating, <code>false</code> otherwise
*
* @return <code>true</code> if this request can not be made succeed by
* repeating, <code>false</code> otherwise
@@
-255,90
+256,107
@@
public abstract class Request {
* @param totalBlocks
* This request’s total number of blocks
*/
* @param totalBlocks
* This request’s total number of blocks
*/
-
public
void setTotalBlocks(int totalBlocks) {
+ void setTotalBlocks(int totalBlocks) {
this.totalBlocks = totalBlocks;
}
/**
this.totalBlocks = totalBlocks;
}
/**
- * TODO
+ * Returns the number of required blocks. Any progress percentages should
+ * be calculated against this value as 100%. Also, as long as
+ * {@link #isFinalizedTotal()} returns {@code false} this value might
+ * change.
*
*
- * @return
the requiredB
locks
+ * @return
The number of required b
locks
*/
public int getRequiredBlocks() {
return requiredBlocks;
}
/**
*/
public int getRequiredBlocks() {
return requiredBlocks;
}
/**
- *
TODO
+ *
Sets the number of required blocks.
*
* @param requiredBlocks
*
* @param requiredBlocks
- *
the requiredBlocks to set
+ *
The number of required blocks
*/
*/
-
public
void setRequiredBlocks(int requiredBlocks) {
+ void setRequiredBlocks(int requiredBlocks) {
this.requiredBlocks = requiredBlocks;
}
/**
this.requiredBlocks = requiredBlocks;
}
/**
- *
TODO
+ *
Returns the number of succeeded blocks.
*
*
- * @return
the succeededB
locks
+ * @return
The number of succeeded b
locks
*/
public int getSucceededBlocks() {
return succeededBlocks;
}
/**
*/
public int getSucceededBlocks() {
return succeededBlocks;
}
/**
- *
TODO
+ *
Sets the number of succeeded blocks.
*
* @param succeededBlocks
*
* @param succeededBlocks
- *
the succeededBlocks to set
+ *
The number of succeeded blocks
*/
*/
-
public
void setSucceededBlocks(int succeededBlocks) {
+ void setSucceededBlocks(int succeededBlocks) {
this.succeededBlocks = succeededBlocks;
}
/**
this.succeededBlocks = succeededBlocks;
}
/**
- * TODO
+ * Returns the number of failed blocks. These blocks may be retried untill
+ * the maximum number of retries has been reached.
*
*
- * @return
the failedB
locks
+ * @return
The number of failed b
locks
*/
public int getFailedBlocks() {
return failedBlocks;
}
/**
*/
public int getFailedBlocks() {
return failedBlocks;
}
/**
- *
TODO
+ *
Sets the number of failed blocks.
*
* @param failedBlocks
*
* @param failedBlocks
- *
the failedBlocks to set
+ *
The number of failed blocks
*/
*/
-
public
void setFailedBlocks(int failedBlocks) {
+ void setFailedBlocks(int failedBlocks) {
this.failedBlocks = failedBlocks;
}
/**
this.failedBlocks = failedBlocks;
}
/**
- *
TODO
+ *
Returns the number of fatally failed blocks.
*
*
- * @return
the fatallyFailedB
locks
+ * @return
The number of fatally failed b
locks
*/
public int getFatallyFailedBlocks() {
return fatallyFailedBlocks;
}
/**
*/
public int getFatallyFailedBlocks() {
return fatallyFailedBlocks;
}
/**
- *
TODO
+ *
Sets the number of fatally failed blocks.
*
* @param fatallyFailedBlocks
*
* @param fatallyFailedBlocks
- *
the fatallyFailedBlocks to set
+ *
The number of fatally failed blocks
*/
*/
-
public
void setFatallyFailedBlocks(int fatallyFailedBlocks) {
+ void setFatallyFailedBlocks(int fatallyFailedBlocks) {
this.fatallyFailedBlocks = fatallyFailedBlocks;
}
this.fatallyFailedBlocks = fatallyFailedBlocks;
}
+ /**
+ * Returns whether the number of blocks has been finalized.
+ *
+ * @return {@code true} if the number of blocks is finalized, {@code false}
+ * otherwise
+ */
public boolean isFinalizedTotal() {
return finalizedTotal;
}
public boolean isFinalizedTotal() {
return finalizedTotal;
}
+ /**
+ * Sets whether the number of blocks has been finalized.
+ *
+ * @param finalizedTotal
+ * {@code true} if the number of blocks has been finalized,
+ * {@code false} otherwise
+ */
void setFinalizedTotal(boolean finalizedTotal) {
this.finalizedTotal = finalizedTotal;
}
void setFinalizedTotal(boolean finalizedTotal) {
this.finalizedTotal = finalizedTotal;
}