MCPcopy Index your code
hub / github.com/apache/tomcat / getChildren

Method getChildren

java/org/apache/catalina/core/ContainerBase.java:1056–1070  ·  view source on GitHub ↗

Returns the ObjectNames of all child containers that are instances of ContainerBase. @return the ObjectNames of the managed child containers

()

Source from the content-addressed store, hash-verified

1054 * @return the ObjectNames of the managed child containers
1055 */
1056 public ObjectName[] getChildren() {
1057 List<ObjectName> names;
1058 childrenLock.readLock().lock();
1059 try {
1060 names = new ArrayList<>(children.size());
1061 for (Container next : children.values()) {
1062 if (next instanceof ContainerBase) {
1063 names.add(next.getObjectName());
1064 }
1065 }
1066 } finally {
1067 childrenLock.readLock().unlock();
1068 }
1069 return names.toArray(new ObjectName[0]);
1070 }
1071
1072
1073 // -------------------- Background Thread --------------------

Callers

nothing calls this directly

Calls 8

readLockMethod · 0.80
lockMethod · 0.65
addMethod · 0.65
getObjectNameMethod · 0.65
unlockMethod · 0.65
sizeMethod · 0.45
valuesMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected