You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/06/07 00:32:41 UTC
[21/28] incubator-guacamole-client git commit: GUACAMOLE-102:
Corrections to comments in ConnectionModel class.
GUACAMOLE-102: Corrections to comments in ConnectionModel class.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/91f7a3e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/91f7a3e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/91f7a3e8
Branch: refs/heads/master
Commit: 91f7a3e8e9e4e125f2002b1d2527d5d0f8e829a4
Parents: 874b29b
Author: Nick Couchman <vn...@apache.org>
Authored: Mon Jun 5 22:29:28 2017 -0400
Committer: Nick Couchman <vn...@apache.org>
Committed: Mon Jun 5 22:29:28 2017 -0400
----------------------------------------------------------------------
.../guacamole/auth/jdbc/connection/ConnectionModel.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/91f7a3e8/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java
index f208b5a..4d28101 100644
--- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java
+++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java
@@ -56,8 +56,8 @@ public class ConnectionModel extends ChildObjectModel {
/**
* The weight of the connection for the purposes of calculating
- * WRR algorithm. null indicates nothing has been set, -1 indicates
- * the system is unavailable.
+ * WLC algorithm. null indicates nothing has been set, and anything less
+ * than 1 eliminates the system from being used for connections.
*/
private Integer connectionWeight;
@@ -187,10 +187,7 @@ public class ConnectionModel extends ChildObjectModel {
* weighted algorithms.
*
* @return
- * The connection weight as an int. If the weight is
- * null a default weight of 1 is returned. Zero and
- * negative numbers are used to indicate the system is
- * unavailable.
+ * The connection weight as an Integer.
*/
public Integer getConnectionWeight() {
return connectionWeight;