GUACAMOLE-317: Add convenience getter for failover-only attribute at Connection level.

This commit is contained in:
Michael Jumper
2017-06-06 13:36:56 -07:00
parent 31519061dc
commit cdf823cc9f

View File

@@ -451,4 +451,17 @@ public class ModeledConnection extends ModeledChildDirectoryObject<ConnectionMod
}
/**
* Returns whether this connection should be reserved for failover.
* Failover-only connections within a balancing group are only used when
* all non-failover connections are unavailable.
*
* @return
* true if this connection should be reserved for failover, false
* otherwise.
*/
public boolean isFailoverOnly() {
return getModel().isFailoverOnly();
}
}