| java.lang.Object org.continuent.sequoia.controller.recoverylog.events.LogEntry
LogEntry | public class LogEntry implements Serializable(Code) | | This class defines a recovery log entry that needs to be stored in the
recovery database. This is also sent over the wire between controllers, when
copying recovery log entries to a remote controller (copyLogFromCheckpoint).
author: Emmanuel Cecchet author: version: 1.0 |
Constructor Summary | |
public | LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid) Create a log entry with a default execution status set to EXECUTING. | public | LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult) Create a log object. | public | LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult, String status) Create a log object. | public | LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime) Create a log object. |
AUTOCOMMIT | final public static String AUTOCOMMIT(Code) | | auto_conn_trans value for a request in autoCommit mode (no persistent
connection)
|
EXECUTING | final public static String EXECUTING(Code) | | Execution status value to executing
|
FAILED | final public static String FAILED(Code) | | Execution status value to failed
|
MISSING | final public static String MISSING(Code) | | Status that will be used if the statement is not found in the recovery log
|
PERSISTENT_CONNECTION | final public static String PERSISTENT_CONNECTION(Code) | | auto_conn_trans value for a persistent connection
|
SUCCESS | final public static String SUCCESS(Code) | | Execution status value to success
|
TRANSACTION | final public static String TRANSACTION(Code) | | auto_conn_trans value for a transaction
|
UNKNOWN | final public static String UNKNOWN(Code) | | Execution status value to unknown
|
LogEntry | public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid)(Code) | | Create a log entry with a default execution status set to EXECUTING.
Parameters: logId - the recovery log unique id Parameters: login - login used for this request Parameters: query - query to log Parameters: queryParams - query parameters if this is a PreparedStatement Parameters: autoConnTrans - AUTOCOMMIT, PERSISTENT_CONNECTION or TRANSACTION Parameters: tid - transaction id of this request |
LogEntry | public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult)(Code) | | Create a log object.
Parameters: logId - the recovery log unique id Parameters: login - login used for this request Parameters: query - query to log Parameters: queryParams - query parameters if this is a PreparedStatement Parameters: autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction Parameters: tid - transaction id of this request Parameters: escapeProcessing - true if escape processing must be done Parameters: requestId - the unique request id Parameters: executionTime - the estimated execution time of the request inmilliseconds Parameters: updateCountResult - the result of this query if it returned an updatecount |
LogEntry | public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult, String status)(Code) | | Create a log object.
Parameters: logId - the recovery log unique id Parameters: login - login used for this request Parameters: query - query to log Parameters: queryParams - query parameters if this is a PreparedStatement Parameters: autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction Parameters: tid - transaction id of this request Parameters: escapeProcessing - true if escape processing must be done Parameters: requestId - the unique request id Parameters: executionTime - the estimated execution time of the request inmilliseconds Parameters: updateCountResult - the result of this query if it returned an updatecount Parameters: status - execution status as defined in LogEntry constants |
LogEntry | public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime)(Code) | | Create a log object.
Parameters: logId - the recovery log unique id Parameters: login - login used for this request Parameters: query - query to log Parameters: queryParams - query parameters if this is a PreparedStatement Parameters: autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction Parameters: tid - transaction id of this request Parameters: escapeProcessing - true if escape processing must be done Parameters: requestId - the unique request id Parameters: executionTime - the estimated execution time of the request inmilliseconds |
getAutoConnTrans | public String getAutoConnTrans()(Code) | | Returns the autoConnTrans value.
Returns the autoConnTrans. |
getEscapeProcessing | public boolean getEscapeProcessing()(Code) | | true if escape processing is needed |
getExecutionStatus | final public String getExecutionStatus()(Code) | | Returns the executionStatus value.
Returns the executionStatus. |
getExecutionTimeInMs | public long getExecutionTimeInMs()(Code) | | Returns the executionTime value.
Returns the executionTime. |
getLogId | public long getLogId()(Code) | | the request id |
getLogin | public String getLogin()(Code) | | the login used for this request |
getQueryParams | final public String getQueryParams()(Code) | | Returns the queryParams value.
Returns the queryParams. |
getRequestId | public long getRequestId()(Code) | | Returns the requestId value.
Returns the requestId. |
getTid | public long getTid()(Code) | | the transaction id |
getUpdateCountResult | public int getUpdateCountResult()(Code) | | Returns the result value.
Returns the result. |
setExecutionStatus | final public void setExecutionStatus(String executionStatus)(Code) | | Sets the executionStatus value.
Parameters: executionStatus - The executionStatus to set. |
setLogId | final public void setLogId(long logId)(Code) | | Sets the logId value.
Parameters: logId - The logId to set. |
|
|