tyrex.tm.impl

Class Util

final class Util extends Object

Utility methods.

Author: Riad Mohammed

Method Summary
static StringfromClock(long clock)
Converts a computer time into a string representation of time instant.
static StringgetHeuristic(int heuristic)
Returns the readable name for the specified heuristic
static StringgetStatus(int status)
Returns the readable name for the specified status.
static StringgetXAException(XAException except)
Retrusn the details of the xa exception

Method Detail

fromClock

public static String fromClock(long clock)
Converts a computer time into a string representation of time instant. The string representation of time duration is the ISO 8601 extended format CCYY-MM-DDThh:mm:ss.sss.

Parameters: clock The computer time

Returns: The string repreentation of time instant

getHeuristic

static String getHeuristic(int heuristic)
Returns the readable name for the specified heuristic

Parameters: heuristic The heuristic

Returns: The heuristic

getStatus

static String getStatus(int status)
Returns the readable name for the specified status.

Parameters: status The status

Returns: The status

getXAException

static String getXAException(XAException except)
Retrusn the details of the xa exception

Parameters: except The XA exception

Returns: The XA exception

Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.