()
| 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 | /** |
nothing calls this directly
no test coverage detected