public class APM
extends java.lang.Object
Constructor and Description |
---|
APM() |
Modifier and Type | Method and Description |
---|---|
static void |
AttachThread(long transaction)
Call AttachThread to resume execution of a request.
|
static long |
DetachThread()
Call DetachThread to suspend execution of the current request.
|
static byte[] |
GetContext()
Call GetContext to get a context handle, which can be passed to another
threads or processes.
|
static byte[] |
GetSyncMark()
Call GetSyncMark to get a synchronization handle that can be
passed to another thread or process to synchronize control flow.
|
static boolean |
HasActiveContext(byte level)
Call HasActiveContext to test, if a software-telemetry session is active
for some logging level.
|
static APMCompatibilityInfo |
IsCompatible()
Call APM.IsCompatible to test, if the application has loaded a compatible library.
|
static boolean |
IsConnected()
Call IsConnected to test, if the application has successfully registered to an APM agent.
|
static void |
ReleaseContext()
Call ReleaseContext to finish logging and to flush logged information
to the app.telemetry infrastructure.
|
static void |
SetSyncMark(byte[] syncMark)
Call SetSyncMark to pass a synchronization handle you got from
GetSyncMark for synchronizing the sequence of events.
|
static void |
SyncContext(byte[] context)
Deprecated.
|
public static final byte EVENT_LEVEL_LOG
public static final byte EVENT_LEVEL_IPC
public static final byte EVENT_LEVEL_NORMAL
public static final byte EVENT_LEVEL_DETAIL
public static final byte EVENT_LEVEL_DEBUG
public static final byte FLAG_NONE
public static final byte FLAG_ENTER
public static final byte FLAG_LEAVE
public static final byte FLAG_WAIT
public static final byte FLAG_WARNING
public static final byte FLAG_ERROR
public static final byte FLAG_PROCESS_INFO
public static final java.lang.String MODULE_NAME_OS
public static final long EVENT_OS_CREATE
public static final long EVENT_OS_OPEN
public static final long EVENT_OS_DELETE
public static final long EVENT_OS_READ
public static final long EVENT_OS_WRITE
public static final long EVENT_OS_CLOSE
public static final long EVENT_OS_FLUSH
public static final long EVENT_OS_RENAME
public static final long EVENT_OS_COPY
public static final long EVENT_OS_MOVE
public static final long EVENT_OS_LOCK
public static final long EVENT_OS_UNLOCK
public static final long EVENT_OS_EXECUTE
public static final long EVENT_OS_WAIT
public static final long EVENT_OS_SLEEP
public static final long EVENT_OS_CRITICALSECTION_WAIT
public static final long EVENT_OS_CRITICALSECTION_ENTER
public static final long EVENT_OS_CRITICALSECTION_LEAVE
public static final java.lang.String MODULE_NAME_XMLHTTP
public static final long EVENT_XMLHTTP_SEND
public static final long EVENT_XMLHTTP_LOADING
public static final long EVENT_XMLHTTP_LOADED
public static final long EVENT_XMLHTTP_INTERACTIVE
public static final long EVENT_XMLHTTP_COMPLETE
public static final long EVENT_XMLHTTP_PROCESSING
public static final long EVENT_XMLHTTP_PROCESSED
public static final long EVENT_ERROR
public static final long EVENT_WARNING
public static final long EVENT_INFO
public static final long EVENT_TRACE
@Deprecated public static final long EVENT_REQUEST_SEQUENCE
@Deprecated public static final long EVENT_SEQUENCE_NAME
@Deprecated public static final long EVENT_PARENT_SEQUENCE
public static APMCompatibilityInfo IsCompatible()
public static boolean IsConnected()
public static byte[] GetContext()
@Deprecated public static void SyncContext(byte[] context)
context
- Context handle.
THIS FUNCTION IS DEPRECATED AND SHOULD NOT BE USED ANY MORE.
Replacement: None needed.public static void ReleaseContext()
public static byte[] GetSyncMark()
public static void SetSyncMark(byte[] syncMark)
syncMark
- Synchronization handle.public static boolean HasActiveContext(byte level)
level
- Logging level to be checked.public static long DetachThread()
public static void AttachThread(long transaction)
transaction
- handle returned by the DetachThread call.Copyright (c) Fabasoft R&D GmbH, Linz, Austria, 1988-2015.