|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jini.tool.envcheck.Reporter
public abstract class Reporter
A class which provides a standard way to report the results of a test.
| Nested Class Summary | |
|---|---|
static class |
Reporter.Message
A container of message information to be processed by Reporter. |
| Field Summary | |
|---|---|
static int |
ERROR
the level at which error messages are generated |
static int |
INFO
the level at which information messages are generated |
static int |
WARNING
the level at which warning messages are generated |
| Method Summary | |
|---|---|
static int |
getErrorCount()
Get the total number of error records that were generated. |
static int |
getWarningCount()
Get the total number of warning records that were generated. |
static void |
print(Reporter.Message message)
Generate the output for message . |
static void |
print(Reporter.Message message,
String source)
Generate the output for message. |
static void |
setExplanation(boolean explain)
Set the explanation generation flag; |
static void |
setLevel(int level)
Set the reporting level. |
static void |
setPrintTraces(boolean traces)
Set the flag controlling printing of stack traces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INFO
public static final int WARNING
public static final int ERROR
| Method Detail |
|---|
public static void setLevel(int level)
level - the max level to generate outputpublic static void setExplanation(boolean explain)
explain - the value to set the flag topublic static void setPrintTraces(boolean traces)
traces - if true, print stack tracespublic static void print(Reporter.Message message)
message . This method is silent
if the message level is less than reportLevel.
If explain is true, the explanation text
will be output only the first time it is encountered.
message - the Message to print
public static void print(Reporter.Message message,
String source)
message. This method is silent if
the message level is less than Reporter.level. If
Reporter.explain is true, the explanation text
will be output only the first time it is encountered. If
source is null, the source record is not
output. If the message level is error or warning, the appropriate counter
is updated.
message - the Message to printsource - additional information identifying the component under testpublic static int getWarningCount()
public static int getErrorCount()
|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||