public class ProbeStatus extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INFO_FIELD |
static String |
ERROR_FIELD |
protected Map<String,String> |
infos |
protected boolean |
neverExecuted |
protected boolean |
success |
Modifier | Constructor and Description |
---|---|
protected |
ProbeStatus(Map<String,String> infos,
Boolean success) |
protected |
ProbeStatus(String info,
Boolean success) |
Modifier and Type | Method and Description |
---|---|
String |
getAsString() |
String |
getAsXML() |
boolean |
isFailure() |
boolean |
isNeverExecuted() |
boolean |
isSuccess() |
static ProbeStatus |
newBlankProbStatus() |
static ProbeStatus |
newError(Throwable t) |
static ProbeStatus |
newFailure(Map<String,String> infos) |
static ProbeStatus |
newFailure(String info) |
static ProbeStatus |
newSuccess(Map<String,String> infos) |
static ProbeStatus |
newSuccess(String info) |
String |
toString() |
protected boolean neverExecuted
protected final boolean success
public static final String DEFAULT_INFO_FIELD
public static final String ERROR_FIELD
protected ProbeStatus(String info, Boolean success)
protected ProbeStatus(Map<String,String> infos, Boolean success)
public static ProbeStatus newBlankProbStatus()
public static ProbeStatus newFailure(String info)
public static ProbeStatus newFailure(Map<String,String> infos)
public static ProbeStatus newError(Throwable t)
public static ProbeStatus newSuccess(String info)
public static ProbeStatus newSuccess(Map<String,String> infos)
public boolean isSuccess()
public boolean isFailure()
public boolean isNeverExecuted()
public String getAsString()
Copyright © 2016 Nuxeo SA. All rights reserved.