MCPcopy Create free account
hub / github.com/apache/tomcat / getCluster

Method getCluster

java/org/apache/catalina/core/ContainerBase.java:316–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315
316 @Override
317 public Cluster getCluster() {
318 Lock readLock = clusterLock.readLock();
319 readLock.lock();
320 try {
321 if (cluster != null) {
322 return cluster;
323 }
324
325 if (parent != null) {
326 return parent.getCluster();
327 }
328
329 return null;
330 } finally {
331 readLock.unlock();
332 }
333 }
334
335
336 /**

Callers

nothing calls this directly

Calls 4

readLockMethod · 0.80
lockMethod · 0.65
getClusterMethod · 0.65
unlockMethod · 0.65

Tested by

no test coverage detected