public class StatusUtil extends Object
| Constructor and Description |
|---|
StatusUtil(Context
|
StatusUtil(StatusManager
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Object
|
void |
addInfo(Object
|
void |
addStatus(Status
|
void |
addWarn(Object
|
boolean |
containsException(Class
|
boolean |
containsMatch(int level, String
|
boolean |
containsMatch(long threshold, int level, String
|
boolean |
containsMatch(String
|
static boolean |
contextHasStatusListener(Context
Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered.
|
static List |
filterStatusListByTimeThreshold(List
|
int |
getHighestLevel(long threshold)
|
boolean |
hasXMLParsingErrors(long threshold)
|
boolean |
isErrorFree(long threshold)
|
int |
matchCount(String
|
boolean |
noXMLParsingErrorsOccurred(long threshold)
|
long |
timeOfLastReset()
Return the time of last reset.
|
public StatusUtil(StatusManagersm)
public StatusUtil(Contextcontext)
public static boolean contextHasStatusListener(Contextcontext)
context -
public static List<Status > filterStatusListByTimeThreshold(List <Status > rawList, long threshold)
public void addStatus(Statusstatus)
public boolean hasXMLParsingErrors(long threshold)
public boolean noXMLParsingErrorsOccurred(long threshold)
public int getHighestLevel(long threshold)
public boolean isErrorFree(long threshold)
public boolean containsMatch(long threshold,
int level,
String regex) public boolean containsMatch(int level,
String regex) public boolean containsMatch(Stringregex)
public int matchCount(Stringregex)
public boolean containsException(Class<?> exceptionType)
public long timeOfLastReset()