BCGUtil

This class provides three utility methods and defines some common constants. The methods include:

The constants include:

Method

generateUUID()

Method description

Generates a UUID

Syntax

public String generateUUID()

Parameters

None

Method

logEvent

Method description

Logs the event so that it can be viewed from the Community Console

Syntax

public boolean logEvent(EventInfo eventInfo)

Parameters

eventInfo
The event information

Method

trace

Method description

Traces a message in WebSphere Partner Gateway log files

Syntax

Without exception object

public void trace(String severity, String category, String msg)

With exception object

public void trace(String severity, String category, String msg, Throwable t)

Parameters

Without exception object

severity
A constant indicating severity level.
category
The affected module name.
msg
The trace message.

With exception object

severity
A constant indicating severity level.
category
The affected module name.
msg
The trace message.
t
The exception.

Constants

These constants indicate trace severity levels:

public static final String BCG_TRACE_SEVERITY_DEBUG = "Debug"
public static final String BCG_TRACE_SEVERITY_INFO = "Info"
public static final String BCG_TRACE_SEVERITY_WARNING = "Warning"
public static final String BCG_TRACE_SEVERITY_ERROR = "Error"
public static final String BCG_TRACE_SEVERITY_CRITICAL = "Critical"

Copyright IBM Corp. 2003, 2005