Package org.nuxeo.runtime.management.api
Class ProbeStatus
- java.lang.Object
-
- org.nuxeo.runtime.management.api.ProbeStatus
-
public class ProbeStatus extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_INFO_FIELD
static String
ERROR_FIELD
protected Map<String,String>
infos
protected boolean
neverExecuted
protected boolean
success
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProbeStatus(String info, Boolean success)
protected
ProbeStatus(Map<String,String> infos, Boolean success)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsString()
String
getAsXML()
Map<String,String>
getInfos()
boolean
isFailure()
boolean
isNeverExecuted()
boolean
isSuccess()
static ProbeStatus
newBlankProbStatus()
static ProbeStatus
newError(Throwable t)
static ProbeStatus
newFailure(String info)
static ProbeStatus
newFailure(Map<String,String> infos)
static ProbeStatus
newSuccess(String info)
static ProbeStatus
newSuccess(Map<String,String> infos)
String
toString()
-
-
-
Field Detail
-
neverExecuted
protected boolean neverExecuted
-
success
protected final boolean success
-
DEFAULT_INFO_FIELD
public static final String DEFAULT_INFO_FIELD
- See Also:
- Constant Field Values
-
ERROR_FIELD
public static final String ERROR_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
newBlankProbStatus
public static ProbeStatus newBlankProbStatus()
-
newFailure
public static ProbeStatus newFailure(String info)
-
newFailure
public static ProbeStatus newFailure(Map<String,String> infos)
-
newError
public static ProbeStatus newError(Throwable t)
-
newSuccess
public static ProbeStatus newSuccess(String info)
-
newSuccess
public static ProbeStatus newSuccess(Map<String,String> infos)
-
isSuccess
public boolean isSuccess()
-
isFailure
public boolean isFailure()
-
isNeverExecuted
public boolean isNeverExecuted()
-
getAsString
public String getAsString()
-
getAsXML
public String getAsXML()
-
-