java.lang.Object
java.io.File
com.ibm.jvm.format.MessageFile
- All Implemented Interfaces:
Serializable
,Comparable<File>
Acts as a template for mapping trace ids to messages.
- See Also:
-
Field Summary
Fields declared in class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMessage
(String messageLine) adds a message to the table by parsing a line of the message file.static boolean
componentIsFromDATFile
(String componentName) protected static Message
getMessageFromID
(int id) retrieve the message associated with a given traceIDprotected static Message
getMessageFromID
(String compName, int id) retrieve the message associated with a given traceID and componentfloat
protected static final void
Initializes static variables.Methods declared in class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
Field Details
-
verMod
protected static float verMod
-
-
Constructor Details
-
MessageFile
- Throws:
IOException
-
-
Method Details
-
getVersion
public float getVersion() -
initStatics
protected static final void initStatics()Initializes static variables.This is called each time the TraceFormatter is started, from the initStatics() method in TraceFormat.java
-
addMessage
adds a message to the table by parsing a line of the message file. If the line has no spaces, it is determined to be a component; otherwise it contains a trace id, an entry type, and a template string (separated by spaces)- Parameters:
messageLine
- a string
-
getMessageFromID
retrieve the message associated with a given traceID- Parameters:
id
- an int that is a trace identifier- Returns:
- a message that contains the type of entry, the component for the entry and the text to be printed
-
getMessageFromID
retrieve the message associated with a given traceID and component- Parameters:
id
- an int that is a trace identifier- Returns:
- a message that contains the type of entry, the component for the entry and the text to be printed
-
componentIsFromDATFile
-