public class GralMsgOutputList extends java.lang.Object implements LogMessage
LogMessageFile
).Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
sVersion
Constructor and Description |
---|
GralMsgOutputList(GralMng_ifc guiAccess,
java.lang.String sTimeZoneShow,
java.lang.String sTimeFormat) |
Modifier and Type | Method and Description |
---|---|
void |
close()
A call of this method closes the devices, which processed the message.
|
void |
flush()
A call of this method causes an activating of transmission of all messages since last flush.
|
boolean |
isOnline()
Checks whether the message output is available.
|
boolean |
sendMsg(int identNumber,
java.lang.String text,
java.lang.Object... args)
Sends a message.
|
boolean |
sendMsgTime(int identNumber,
OS_TimeStamp creationTime,
java.lang.String text,
java.lang.Object... args)
Sends a message.
|
boolean |
sendMsgVaList(int identNumber,
OS_TimeStamp creationTime,
java.lang.String text,
Va_list args)
This is the only one method, which is called from the message dispatcher.
|
public static final int version
public GralMsgOutputList(GralMng_ifc guiAccess, java.lang.String sTimeZoneShow, java.lang.String sTimeFormat)
public void close()
org.vishia.msgDispatch.LogMessage
close
mean.
If the device is a log file writer it should be clearly.
close
may mean, the processing of messages is finite temporary.
An open
occurs automatically, if a new message is dispatched.close
in interface LogMessage
public void flush()
org.vishia.msgDispatch.LogMessage
flush
mean.
If the device is a log file writer it should be clearly.
flush
may mean, the processing of messages is ready to transmit yet.flush
in interface LogMessage
public boolean isOnline()
org.vishia.msgDispatch.LogMessage
isOnline
in interface LogMessage
public boolean sendMsg(int identNumber, java.lang.String text, java.lang.Object... args)
org.vishia.msgDispatch.LogMessage
#sendMsg(int, OS_TimeStamp, String, Object...)
.sendMsg
in interface LogMessage
identNumber
- of the message. If it is negative, it is the same message as positive number,
but with information 'going state', where the positive number is 'coming state'.text
- The text representation of the message, format string, see java.lang.String.format(..).args
- 0, 1 or more arguments of any type.
The interpretation of the arguments is controlled by param text.public boolean sendMsgTime(int identNumber, OS_TimeStamp creationTime, java.lang.String text, java.lang.Object... args)
org.vishia.msgDispatch.LogMessage
sendMsgTime
in interface LogMessage
identNumber
- of the message. If it is negative, it is the same message as positive number,
but with information 'going state', where the positive number is 'coming state'.creationTime
- absolute time stamp. @Java2C=perValue.text
- The text representation of the message, format string, see java.lang.String.format(..).args
- 0, 1 or more arguments of any type.
The interpretation of the arguments is controlled by param text.public boolean sendMsgVaList(int identNumber, OS_TimeStamp creationTime, java.lang.String text, Va_list args)
sendMsgVaList
in interface LogMessage
text
- The text of the message: Hint for Java2C: This is a StringJc, not a simple char const*.
That is necessary because the String may be replaced.args
- Reference to a buffer which contains the values for a variable argument list.
vprintf(buffer, text, args)
.
The referenced instance shouldn't accepted as persistent outside processing time
of the called routine. Therefore stack content is able to provide.
LogMessage.sendMsgVaList(int, org.vishia.bridgeC.OS_TimeStamp, java.lang.String, org.vishia.bridgeC.Va_list)