|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ilog.server.jcomp.SvMsg
This class enables you to specify a message level identifier and description. It also defines the message identifier allocation policy:
| Field Summary | |
static int |
APPLI_DEBUG
A debug message from the application. |
static int |
APPLI_ERROR
An error message from the application. |
static int |
APPLI_INFO
An information message from the application. |
static int |
APPLI_MSG_MIN
|
static int |
APPLI_WARN
A warning message from the application. |
static int |
COMPONENT_MSG_MIN
|
java.lang.String |
data
The message description. |
int |
identifier
The message identifier. |
int |
level
The message level, it can be used for filtering purpose. |
static int |
MAX_ID
The maximum identifier that may be used by the user. |
static int |
MV_DEBUG
Debug level. |
static int |
MV_ERROR
Error level. |
static int |
MV_INFO
Information level. |
static int |
MV_WARNING
Warning level. |
static int |
NOT_YET_USED_MIN
|
static int |
NULL_MSG_MIN
|
static int |
PTCL_MSG_MIN
|
static int |
SERVER_MSG_MIN
|
| Method Summary | |
static SvMsg |
AppliDebug(java.lang.String msg)
Equivalent to new SvMsg(APPLI_DEBUG,SvMsg.MV_DEBUG,msg) |
static SvMsg |
AppliError(java.lang.String msg)
Equivalent to new SvMsg(APPLI_ERROR,SvMsg.MV_ERROR,msg) |
static SvMsg |
AppliInfo(java.lang.String msg)
Equivalent to new SvMsg(APPLI_INFO,SvMsg.MV_INFO,msg) |
static SvMsg |
AppliWarning(int id)
|
static SvMsg |
AppliWarning(java.lang.String msg)
Equivalent to new SvMsg(APPLI_WARN,SvMsg.MV_WARNING,msg) |
static java.lang.String |
Get(int id)
Gets the message associated with id, returns null if
(id>MAX_ID) or if the message is not set. |
static boolean |
Set(int id,
java.lang.String msg)
Sets the default message associated with an identifier. |
MvMessage |
stream(MvMessage msg)
|
java.lang.String |
toString()
Returns a String representation of the message with the format : |
static SvMsg |
Unstream(MvMessage msg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NULL_MSG_MIN
public static final int PTCL_MSG_MIN
public static final int SERVER_MSG_MIN
public static final int COMPONENT_MSG_MIN
public static final int NOT_YET_USED_MIN
public static final int APPLI_MSG_MIN
public static final int APPLI_INFO
public static final int APPLI_WARN
public static final int APPLI_ERROR
public static final int APPLI_DEBUG
public static final int MAX_ID
public static final int MV_INFO
public static final int MV_WARNING
public static final int MV_ERROR
public static final int MV_DEBUG
public int identifier
public int level
public java.lang.String data
| Method Detail |
public static SvMsg AppliInfo(java.lang.String msg)
new SvMsg(APPLI_INFO,SvMsg.MV_INFO,msg)public static SvMsg AppliWarning(java.lang.String msg)
new SvMsg(APPLI_WARN,SvMsg.MV_WARNING,msg)public static SvMsg AppliWarning(int id)
public static SvMsg AppliError(java.lang.String msg)
new SvMsg(APPLI_ERROR,SvMsg.MV_ERROR,msg)public static SvMsg AppliDebug(java.lang.String msg)
new SvMsg(APPLI_DEBUG,SvMsg.MV_DEBUG,msg)public java.lang.String toString()
[] : description toString in class java.lang.Objectpublic MvMessage stream(MvMessage msg)
stream in interface ilog.server.jcomp.Streamablepublic static SvMsg Unstream(MvMessage msg)
public static boolean Set(int id,
java.lang.String msg)
id: - The identifier.msg: - The message.MAX_ID,
Get(int)public static java.lang.String Get(int id)
null if
(id>MAX_ID) or if the message is not set.id: - The identifier.MAX_ID,
Set(int, java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||