getStatistics

getStatistics(committedTransactions:  Integer output;
              abortedTransactions:    Integer output;
              getObjects:             Integer output;
              queuedLocks:            Integer output;
              createObjects:          Integer output;
              deleteObjects:          Integer output;
              updateObjects:          Integer output;
              lockObjects:            Integer output;
              unlockObjects:          Integer output;
              beginNotifications:     Integer output;
              endNotifications:       Integer output;
              deliveredNotifications: Integer output;
              serverMethodExecutions: Integer output);

The getStatistics method of the System class loads the values of all the specified parameters with the corresponding system statistics.

This method raises exception 1406 if any of the statistic values exceed Max_Integer (this can happen if your JADE system has been up for a long time; that is, the actual number of operations exceeds Max_Integer).

The parameters for the getStatistics method are listed in the following table.

Parameter Obtains the number of…
committedTransactions Committed transactions
abortedTransactions Aborted transactions
getObjects getObject operations performed
queuedLocks queuedLock operations performed
createObjects createObject operations performed
deleteObjects deleteObject operations performed
updateObjects updateObject operations performed
lockObjects lockObject operations performed
unlockObjects unlockObject operations performed
beginNotifications beginNotification operations performed
endNotifications endNotification operations performed
deliveredNotifications Notifications that were sent
serverMethodExecutions Methods executed in the server node operations

The following example shows the use of the getStatistics method.

vars
    committedTransactions  : Integer;
    abortedTransactions    : Integer;
    getObjects             : Integer;
    queuedLocks            : Integer;
    createObjects          : Integer;
    deleteObjects          : Integer;
    updateObjects          : Integer;
    lockObjects            : Integer;
    unlockObjects          : Integer;
    beginNotifications     : Integer;
    endNotifications       : Integer;
    deliveredNotifications : Integer;
    serverMethodExecutions : Integer;
begin
    system.getStatistics(committedTransactions,
        abortedTransactions,
        getObjects,
        queuedLocks,
        createObjects,
        deleteObjects,
        updateObjects,
        lockObjects,
        unlockObjects,
        beginNotifications,
        endNotifications,
        deliveredNotifications,
        serverMethodExecutions);
end;