public class CentralLogStaticService
extends java.lang.Object
CentralLogService, but also includes an additional method overload used directly from the server.| Constructor and Description |
|---|
CentralLogStaticService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
finalizeLogging(long pid)
Notifies the server that logging is done on the client.
|
static java.lang.Integer |
getSessionId()
Return the session ID.
|
static java.lang.String |
getUserId()
Return the user ID.
|
static void |
publish(CentralLogRecord logRecord)
Publishes the log record to
CentralLoggerServer. |
static void |
publish(CentralLogRecord[] logRecords)
Publishes the log records to
CentralLoggerServer. |
static void |
setFwdLogfile(java.lang.String fwdLogfile)
Sends the FWD client log file path to the server.
|
static void |
setupFileHandler(java.lang.String filePath,
java.lang.Integer fileLimit,
java.lang.Integer fileCount,
long pid,
java.lang.String userOS,
java.lang.String appServerName)
Creates and configures a file handler for the specified client process.
|
public static void publish(CentralLogRecord logRecord)
CentralLoggerServer. All log record validations are done on the
client before calling this method. Static implementation of the interface CentralLogService.logRecord - A log record.public static void publish(CentralLogRecord[] logRecords)
CentralLoggerServer. Used by the server-side state synchronizer.logRecords - A log records array.public static void setupFileHandler(java.lang.String filePath,
java.lang.Integer fileLimit,
java.lang.Integer fileCount,
long pid,
java.lang.String userOS,
java.lang.String appServerName)
filePath - The path to the log file.fileLimit - The file limit, or the max bytes in a log file before rotation.fileCount - The file count, or the max number of files before file overwrite starts.pid - The process id of the client.userOS - The OS user.appServerName - The appServer name.public static void finalizeLogging(long pid)
pid - The client process ID.public static java.lang.Integer getSessionId()
public static java.lang.String getUserId()
public static void setFwdLogfile(java.lang.String fwdLogfile)
fwdLogfile - The FWD client log file path.