public class StatusUtil
extends java.lang.Object
Constructor and Description |
---|
StatusUtil(Context context) |
StatusUtil(StatusManager sm) |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.Object caller,
java.lang.String msg,
java.lang.Throwable t) |
void |
addInfo(java.lang.Object caller,
java.lang.String msg) |
void |
addStatus(Status status) |
void |
addWarn(java.lang.Object caller,
java.lang.String msg) |
boolean |
containsException(java.lang.Class<?> exceptionType) |
boolean |
containsMatch(int level,
java.lang.String regex) |
boolean |
containsMatch(long threshold,
int level,
java.lang.String regex) |
boolean |
containsMatch(java.lang.String regex) |
static boolean |
contextHasStatusListener(Context context)
Returns true if the StatusManager associated with the context passed
as parameter has one or more StatusListener instances registered.
|
static java.util.List<Status> |
filterStatusListByTimeThreshold(java.util.List<Status> rawList,
long threshold) |
int |
getHighestLevel(long threshold) |
boolean |
hasXMLParsingErrors(long threshold) |
boolean |
isErrorFree(long threshold) |
boolean |
isWarningOrErrorFree(long threshold) |
int |
matchCount(java.lang.String regex) |
boolean |
noXMLParsingErrorsOccurred(long threshold) |
long |
timeOfLastReset()
Return the time of last reset.
|
public StatusUtil(StatusManager sm)
public StatusUtil(Context context)
public static boolean contextHasStatusListener(Context context)
context
- public static java.util.List<Status> filterStatusListByTimeThreshold(java.util.List<Status> rawList, long threshold)
public void addStatus(Status status)
public void addInfo(java.lang.Object caller, java.lang.String msg)
public void addWarn(java.lang.Object caller, java.lang.String msg)
public void addError(java.lang.Object caller, java.lang.String msg, java.lang.Throwable t)
public boolean hasXMLParsingErrors(long threshold)
public boolean noXMLParsingErrorsOccurred(long threshold)
public int getHighestLevel(long threshold)
public boolean isErrorFree(long threshold)
public boolean isWarningOrErrorFree(long threshold)
public boolean containsMatch(long threshold, int level, java.lang.String regex)
public boolean containsMatch(int level, java.lang.String regex)
public boolean containsMatch(java.lang.String regex)
public int matchCount(java.lang.String regex)
public boolean containsException(java.lang.Class<?> exceptionType)
public long timeOfLastReset()
Copyright © 2010 - 2020 Adobe. All Rights Reserved