Package org.opennms.protocols.nsclient
Class NsclientCheckParams
- java.lang.Object
-
- org.opennms.protocols.nsclient.NsclientCheckParams
-
public class NsclientCheckParams extends Object
This class contains the parameters used to perform and validate checks against the NSClient daemon.- Version:
- $Id: $
- Author:
- Matt Raykowski
-
-
Constructor Summary
Constructors Constructor Description NsclientCheckParams(int critPerc)
Constructor, sets the critical threshold.NsclientCheckParams(int critPerc, int warnPerc)
Constructor, sets the critical and warning thresholds.NsclientCheckParams(int critPerc, int warnPerc, String params)
Constructor, sets the critical and warning thresholds and the parameter strings.NsclientCheckParams(String params)
Constructor, sets the parameter string used when creating check requests.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCriticalPercent()
Returns the critical threshold value.String
getParamString()
Returns the string containing the parameters for creating check requests.int
getWarningPercent()
Returns the warning threshold value.
-
-
-
Constructor Detail
-
NsclientCheckParams
public NsclientCheckParams(int critPerc)
Constructor, sets the critical threshold.- Parameters:
critPerc
- the value to be used for the critical threshold.
-
NsclientCheckParams
public NsclientCheckParams(int critPerc, int warnPerc)
Constructor, sets the critical and warning thresholds.- Parameters:
critPerc
- the value to be used for the critical threshold.warnPerc
- the value to be used for the warning threshold.
-
NsclientCheckParams
public NsclientCheckParams(int critPerc, int warnPerc, String params)
Constructor, sets the critical and warning thresholds and the parameter strings.- Parameters:
critPerc
- the value to be used for the critical threshold.warnPerc
- the value to be used for the warning threshold.params
- the parameter string used for creating check requests.
-
NsclientCheckParams
public NsclientCheckParams(String params)
Constructor, sets the parameter string used when creating check requests.- Parameters:
params
- the parameter string used for creating check requests.
-
-
Method Detail
-
getWarningPercent
public int getWarningPercent()
Returns the warning threshold value.- Returns:
- the warning threshold value.
-
getCriticalPercent
public int getCriticalPercent()
Returns the critical threshold value.- Returns:
- the critical threshold value.
-
getParamString
public String getParamString()
Returns the string containing the parameters for creating check requests.- Returns:
- the string containing the parameters for creating check requests.
-
-