This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 86febbe9e2 Make stats volatile
86febbe9e2 is described below
commit 86febbe9e22ef9f063dd57c671dd6a1020ae90a2
Author: remm <[email protected]>
AuthorDate: Thu Sep 28 10:58:11 2023 +0200
Make stats volatile
Also remove useless method override.
---
.../apache/catalina/ha/session/DeltaManager.java | 46 +++++++++-------------
1 file changed, 19 insertions(+), 27 deletions(-)
diff --git a/java/org/apache/catalina/ha/session/DeltaManager.java
b/java/org/apache/catalina/ha/session/DeltaManager.java
index de4d31942e..2a1db478a7 100644
--- a/java/org/apache/catalina/ha/session/DeltaManager.java
+++ b/java/org/apache/catalina/ha/session/DeltaManager.java
@@ -86,25 +86,25 @@ public class DeltaManager extends ClusterManagerBase {
// -------------------------------------------------------- stats
attributes
- private long sessionReplaceCounter = 0;
- private long counterReceive_EVT_GET_ALL_SESSIONS = 0;
- private long counterReceive_EVT_ALL_SESSION_DATA = 0;
- private long counterReceive_EVT_SESSION_CREATED = 0;
- private long counterReceive_EVT_SESSION_EXPIRED = 0;
- private long counterReceive_EVT_SESSION_ACCESSED = 0;
- private long counterReceive_EVT_SESSION_DELTA = 0;
- private int counterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
- private long counterReceive_EVT_CHANGE_SESSION_ID = 0;
- private long counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER = 0;
- private long counterSend_EVT_GET_ALL_SESSIONS = 0;
- private long counterSend_EVT_ALL_SESSION_DATA = 0;
- private long counterSend_EVT_SESSION_CREATED = 0;
- private long counterSend_EVT_SESSION_DELTA = 0;
- private long counterSend_EVT_SESSION_ACCESSED = 0;
- private long counterSend_EVT_SESSION_EXPIRED = 0;
- private int counterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
- private long counterSend_EVT_CHANGE_SESSION_ID = 0;
- private int counterNoStateTransferred = 0;
+ private volatile long sessionReplaceCounter = 0;
+ private volatile long counterReceive_EVT_GET_ALL_SESSIONS = 0;
+ private volatile long counterReceive_EVT_ALL_SESSION_DATA = 0;
+ private volatile long counterReceive_EVT_SESSION_CREATED = 0;
+ private volatile long counterReceive_EVT_SESSION_EXPIRED = 0;
+ private volatile long counterReceive_EVT_SESSION_ACCESSED = 0;
+ private volatile long counterReceive_EVT_SESSION_DELTA = 0;
+ private volatile int counterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
+ private volatile long counterReceive_EVT_CHANGE_SESSION_ID = 0;
+ private volatile long counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER = 0;
+ private volatile long counterSend_EVT_GET_ALL_SESSIONS = 0;
+ private volatile long counterSend_EVT_ALL_SESSION_DATA = 0;
+ private volatile long counterSend_EVT_SESSION_CREATED = 0;
+ private volatile long counterSend_EVT_SESSION_DELTA = 0;
+ private volatile long counterSend_EVT_SESSION_ACCESSED = 0;
+ private volatile long counterSend_EVT_SESSION_EXPIRED = 0;
+ private volatile int counterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE = 0;
+ private volatile long counterSend_EVT_CHANGE_SESSION_ID = 0;
+ private volatile int counterNoStateTransferred = 0;
// -------------------------------------------------------------
Constructor
@@ -244,14 +244,6 @@ public class DeltaManager extends ClusterManagerBase {
return counterReceive_EVT_ALL_SESSION_NOCONTEXTMANAGER;
}
- /**
- * @return Returns the processingTime.
- */
- @Override
- public long getProcessingTime() {
- return processingTime;
- }
-
/**
* @return Returns the sessionReplaceCounter.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]