Package com.yahoo.search.query.ranking
Class SoftTimeout
- java.lang.Object
-
- com.yahoo.search.query.ranking.SoftTimeout
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SoftTimeout extends java.lang.Object implements java.lang.Cloneable
Settings for the soft-timeout feature.- Author:
- baldersheim
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENABLE
static com.yahoo.processing.request.CompoundName
enableProperty
The full property name for turning softtimeout on or offstatic java.lang.String
FACTOR
static java.lang.String
TAILCOST
-
Constructor Summary
Constructors Constructor Description SoftTimeout()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoftTimeout
clone()
boolean
equals(java.lang.Object o)
static QueryProfileType
getArgumentType()
java.lang.Boolean
getEnable()
Returns whether softtimeout is enabled.java.lang.Double
getFactor()
java.lang.Double
getTailcost()
int
hashCode()
void
prepare(RankProperties rankProperties)
Internal operation - DO NOT USEvoid
setEnable(boolean enable)
void
setFactor(double factor)
Override the adaptive factor determined on the content nodesvoid
setTailcost(double tailcost)
Override the tail cost factor determined on the content nodes
-
-
-
Field Detail
-
ENABLE
public static final java.lang.String ENABLE
- See Also:
- Constant Field Values
-
FACTOR
public static final java.lang.String FACTOR
- See Also:
- Constant Field Values
-
TAILCOST
public static final java.lang.String TAILCOST
- See Also:
- Constant Field Values
-
enableProperty
public static final com.yahoo.processing.request.CompoundName enableProperty
The full property name for turning softtimeout on or off
-
-
Method Detail
-
getArgumentType
public static QueryProfileType getArgumentType()
-
setEnable
public void setEnable(boolean enable)
-
getEnable
public java.lang.Boolean getEnable()
Returns whether softtimeout is enabled. Defauyt is true.
-
setFactor
public void setFactor(double factor)
Override the adaptive factor determined on the content nodes
-
getFactor
public java.lang.Double getFactor()
-
setTailcost
public void setTailcost(double tailcost)
Override the tail cost factor determined on the content nodes
-
getTailcost
public java.lang.Double getTailcost()
-
prepare
public void prepare(RankProperties rankProperties)
Internal operation - DO NOT USE
-
clone
public SoftTimeout clone()
- Overrides:
clone
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-