Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
6f4473d8
Commit
6f4473d8
authored
Feb 12, 2018
by
Greg Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HZ-5: Make immutable fields final
parent
2a16973e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
ClusterListener.java
...esoftware/openfire/plugin/util/cache/ClusterListener.java
+15
-15
ClusteredCacheFactory.java
...are/openfire/plugin/util/cache/ClusteredCacheFactory.java
+1
-1
No files found.
src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/util/cache/ClusterListener.java
View file @
6f4473d8
...
...
@@ -85,33 +85,33 @@ public class ClusterListener implements MembershipListener, LifecycleListener {
/**
* Caches stored in RoutingTable
*/
private
Cache
<
String
,
ClientRoute
>
C2SCache
;
private
Cache
<
String
,
ClientRoute
>
anonymousC2SCache
;
private
Cache
<
DomainPair
,
byte
[]>
S2SCache
;
private
Cache
<
String
,
Set
<
NodeID
>>
componentsCache
;
private
final
Cache
<
String
,
ClientRoute
>
C2SCache
;
private
final
Cache
<
String
,
ClientRoute
>
anonymousC2SCache
;
private
final
Cache
<
DomainPair
,
byte
[]>
S2SCache
;
private
final
Cache
<
String
,
Set
<
NodeID
>>
componentsCache
;
/**
* Caches stored in SessionManager
*/
private
Cache
<
String
,
ClientSessionInfo
>
sessionInfoCache
;
private
Cache
<
String
,
byte
[]>
componentSessionsCache
;
private
Cache
<
String
,
byte
[]>
multiplexerSessionsCache
;
private
Cache
<
String
,
byte
[]>
incomingServerSessionsCache
;
private
final
Cache
<
String
,
ClientSessionInfo
>
sessionInfoCache
;
private
final
Cache
<
String
,
byte
[]>
componentSessionsCache
;
private
final
Cache
<
String
,
byte
[]>
multiplexerSessionsCache
;
private
final
Cache
<
String
,
byte
[]>
incomingServerSessionsCache
;
/**
* Caches stored in PresenceUpdateHandler
*/
private
Cache
<
String
,
Collection
<
DirectedPresence
>>
directedPresencesCache
;
private
final
Cache
<
String
,
Collection
<
DirectedPresence
>>
directedPresencesCache
;
private
Map
<
NodeID
,
Set
<
String
>[]>
nodeSessions
=
new
ConcurrentHashMap
<>();
private
Map
<
NodeID
,
Set
<
DomainPair
>>
nodeRoutes
=
new
ConcurrentHashMap
<>();
private
Map
<
NodeID
,
Map
<
String
,
Collection
<
String
>>>
nodePresences
=
new
ConcurrentHashMap
<>();
private
final
Map
<
NodeID
,
Set
<
String
>[]>
nodeSessions
=
new
ConcurrentHashMap
<>();
private
final
Map
<
NodeID
,
Set
<
DomainPair
>>
nodeRoutes
=
new
ConcurrentHashMap
<>();
private
final
Map
<
NodeID
,
Map
<
String
,
Collection
<
String
>>>
nodePresences
=
new
ConcurrentHashMap
<>();
private
boolean
seniorClusterMember
=
CacheFactory
.
isSeniorClusterMember
();
private
Map
<
Cache
<?,?>,
EntryListener
>
entryListeners
=
new
HashMap
<>();
private
final
Map
<
Cache
<?,?>,
EntryListener
>
entryListeners
=
new
HashMap
<>();
private
Cluster
cluster
;
private
Map
<
String
,
ClusterNodeInfo
>
clusterNodesInfo
=
new
ConcurrentHashMap
<>();
private
final
Cluster
cluster
;
private
final
Map
<
String
,
ClusterNodeInfo
>
clusterNodesInfo
=
new
ConcurrentHashMap
<>();
/**
* Flag that indicates if the listener has done all clean up work when noticed that the
...
...
src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/util/cache/ClusteredCacheFactory.java
View file @
6f4473d8
...
...
@@ -83,7 +83,7 @@ public class ClusteredCacheFactory implements CacheFactoryStrategy {
private
static
final
boolean
HAZELCAST_JMX_ENABLED
=
JiveGlobals
.
getBooleanProperty
(
"hazelcast.config.jmx.enabled"
,
false
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ClusteredCacheFactory
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ClusteredCacheFactory
.
class
);
/**
* Keep serialization strategy the server was using before we set our strategy. We will
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment