FileDocCategorySizeDatePackage
Messages.javaAPI DocGlassfish v2 API16801Fri May 04 22:36:38 BST 2007com.sun.jts.CosTransactions

Messages

public class Messages extends ListResourceBundle
This class provides a ListResourceBundle which contains the message formats for messages produced by the JTS.
version
0.01
author
Simon Holdsworth, IBM Corporation
see

Fields Summary
private static final int
UNKNOWN_MESSAGE
private static final int
INVALID_FORMAT
public static final int
ORBD_NOT_RUNNING
The ORB is not running.
public static final int
NON_PERSISTENT
The JTS instance is not persistent.
public static final int
NAME_SERVICE_FAILED
The Naming service failed.
public static final int
LOG_INIT_FAILED
Log initialisation failed.
public static final int
LOG_OPEN_FAILED
Log open failed.
public static final int
OBJREF_CREATE_FAILED
Object reference creation failed.
public static final int
OBJREF_DESTROY_FAILED
Object reference destruction failed.
public static final int
ALREADY_IDENTIFIED
JTS is already identified to the Comms Manager.
public static final int
IDENTIFY_UNAVAILABLE
JTS cannot identify itself to the Comms Manager.
public static final int
SUBORDINATE_CREATE_FAILED
Could not create a subordinate Coordinator.
public static final int
RECOVER_COORD_FAILED
Could not recover a Coordinator from the log.
public static final int
RESYNC_OP_EXCEPTION
Exception occurred while performing resync.
public static final int
RESOURCE_OP_EXCEPTION
Exception occurred while calling a Resource object.
public static final int
RETRY_LIMIT_EXCEEDED
Commit/rollback/forget operation retry limit exceeded.
public static final int
SYNC_OP_EXCEPTION
Exception occurred while calling a Synchronization object.
public static final int
TIMEOUT_STOPPED
Timeout thread stopped abnormally.
public static final int
INVALID_LOG_PATH
Invalid log path specification.
public static final int
INVALID_DEFAULT_LOG_PATH
Default log path does not exist.
public static final int
SERVER_INFO_ERROR
Error accessing JTS repository.
public static final int
GLOBAL_INFO_ERROR
Error accessing JTS repository.
public static final int
LOG_ERROR
Log error occurred.
public static final int
TRACE_CURRENT
Trace using current directory.
public static final int
INVALID_REPOSITORY_PATH
Invalid repository path specification.
public static final int
INVALID_DEFAULT_REPOSITORY_PATH
Default repository path does not exist.
public static final int
REPOSITORY_FAILED
Failed to access repository file.
public static final int
SERVANT_LOCATE_FAILED
Could not locate object servant.
public static final int
UNREPORTABLE_HEURISTIC
Heuristic exception caught in resync could not be reported.
public static final int
RESYNC_WAIT_INTERRUPTED
Wait for resync complete interrupted.
public static final int
WRONG_STATE
Transaction in wrong state for operation.
public static final int
RESTART_WRITE_FAILED
Failed to store information in repository.
public static final int
RECOVERY_CLOSE_FAILED
Failed to close database during recovery.
public static final int
XA_RECONSTRUCT_FAILED
Failed to reconstruct XA information.
public static final int
INVALID_XA_RM_STRING
XA resource manager string invalid.
public static final int
XA_SERVER_INIT_FAILED
XA server initialisation failed.
public static final int
XA_OPENCLOSE_ERROR
XA open/close operation failed.
public static final int
XA_ERROR
XA operation failed.
public static final int
INCORRECT_CONTEXT
Database context is incorrect for the operation.
public static final int
SQL_ERROR
SQL error.
public static final int
XA_SWITCH_LOAD_FAILED
XA switch load file load failed.
public static final int
SQL_ALLOCATE_FAILED
SQL ALLOCATE failed.
public static final int
JDBC_DRIVER_CREATE_FAILED
Could not create JDBC driver.
public static final int
JDBC_SECURITY_CHECK_FAILED
JDBC security check failed.
public static final int
JDBC_INSTANCE_CREATE_FAILED
JDBC instance creation failed.
public static final int
JDBC_DM_REGISTER_FAILED
JDBC Driver Manager registration failed.
public static final int
JDBC_DRIVER_LOAD_FAILED
JDBC driver load failed.
public static final int
NATIVEXA_CLASS_LOAD_ERROR
Error loading native XA class.
public static final int
LOG_EXISTS_FOR_TRANSIENT
Log exists for transient process.
public static final int
INVALID_LOG_RECORD_DATA
Invalid data in log record.
public static final int
NO_ODBC_DATABASE_DEFINITION
ODBC database definition does not exist.
public static final int
UNSUPPORTED_ODBC_DRIVER_FOR_DATABASE
ODBC driver not supported for database.
public static final int
RECOVER_OBJECT_REF
Recovery of object reference failed.
public static final int
REPLAY_COMP_UNKNOWN
Superior Top Coordinator not reachable on reply completion.
public static final int
ERR_TID_ALREADY_USED
Transaction id is already in use.
public static final int
ERR_INVALID_STATE_CHANGE
Invalid state change.
public static final int
ERR_NO_COORDINATOR
No coordinator available.
public static final int
ERR_XA_RECOVERY
XAException during recovery.
public static final int
MSG_STARTUP
Standard message during startup regarding server id and mode.
public static final int
MSG_NO_SERVERNAME
No server name.
public static final int
LOG_FILE_WRITE_ERROR
Invalid default log path.
public static final int
MSG_JTS_ERROR
JTS error message.
public static final int
MSG_JTS_WARNING
JTS warning message.
public static final int
MSG_JTS_INFO
JTS info message.
public static final int
LOG_MESSAGE
JTS log message.
public static final int
INVALID_TIMEOUT
JTS error message.
private static final Object[]
contents
The message formats.
Constructors Summary
Methods Summary
protected java.lang.Object[][]getContents()
Return the contents of the ResourceBundle.


               
        return contents; 
final java.lang.StringgetMessage(int messageNum, java.lang.Object[] inserts)
Return a formatted message.

        Object[][] contents = getContents();
        if (messageNum > contents.length) {
            messageNum = UNKNOWN_MESSAGE;
            inserts = new Object[] { new Integer(messageNum) };
        } else if (!(contents[messageNum][1] instanceof String)) {
            messageNum = INVALID_FORMAT;
            inserts = new Object[] { new Integer(messageNum) };
        }

        return MessageFormat.format((String) contents[messageNum][1], inserts);
    
final java.lang.StringgetMessage(int messageNum)
Get an unformatted message.

param
messageNum the message number.
return
unformatted message (value part of the resource bundle).


        Object[][] contents = getContents();

        if (messageNum > contents.length) {
            return null;
        }

        return contents[messageNum][1].toString();
    
final java.lang.StringgetMessageNumber(int messageNum)
Get a message number.


        Object[][] contents = getContents();

        if (messageNum > contents.length) {
            return null;
        }

        return contents[messageNum][0].toString();