You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/09/28 09:00:57 UTC
[tomcat] branch 10.1.x updated: Make stats volatile
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 0c80e28724 Make stats volatile
0c80e28724 is described below
commit 0c80e28724342ba4e003dfe3ec3b681056b4ca35
Author: remm <re...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org