public class FwkStaticLibraryWriter extends Fwk implements FwkInterface
Under Windows NT it writes exceptions to the Windows NT EventLog. The generated event could be displayed with the EventView.
All the methods are static.
Inside the initializer the class tries to connect the err.dll.
Wasn't this step successfully executed the writer isn't alive and
could not be used.
The function isAlive
will return that state.
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static java.lang.String |
loadLibName |
static java.lang.String |
version |
Modifier and Type | Method and Description |
---|---|
static void |
Close()
Close the communication to the event logger.
|
static java.lang.Throwable |
getException()
Returns the exception that is occurred,
if the writer isn't alive.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
Init(java.lang.String program,
java.lang.String version,
java.lang.String[] args)
Initialize the communication to the event logger.
|
static boolean |
isAlive()
Returns whether the writer could initialize the library.
|
static boolean |
isError(int code)
Return true if event code signals an error.
|
static boolean |
isInformation(int code)
Return true if event code signals an informational message.
|
static boolean |
isOccurred()
Indicates whether an event is occurred.
|
static boolean |
isWarning(int code)
Return true if event code signals a warning.
|
static void |
PutParams(int code,
java.lang.String file,
java.lang.String revision,
java.lang.String line,
java.lang.String arameter)
Put an event to the event logger.
|
static void |
Reset()
Set there is no error occurred.
|
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public static final java.lang.String version
protected static final java.lang.String loadLibName
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class Fwk
public static boolean isAlive()
public static java.lang.Throwable getException()
public static void Init(java.lang.String program, java.lang.String version, java.lang.String[] args)
name
- Name of program.version
- Version of the program.args
- Main program parameters.public static void PutParams(int code, java.lang.String file, java.lang.String revision, java.lang.String line, java.lang.String arameter)
The compiler definition NOTRACE suppresses the message AO_EVENT. The message AO_EVENT is used to trace back the calling sequence of the function where the error occurs.
If this function is called an error is occurred and the flag is set.
number
- Number of the event to report.file
- Name of the sourcefile.revision
- Revision of the sourcefile.ident
- Identification string in the sourcefile.parameter
- Event parameter.public static void Close()
public static boolean isError(int code)
code
- The event codeErrorNumber
public static boolean isWarning(int code)
code
- The event codeErrorNumber
public static boolean isInformation(int code)
code
- The event codeErrorNumber
public static boolean isOccurred()
public static void Reset()