for (NameNodeInfo nni : this.nameNodes) {
for (AvatarInfo avatar: nni.avatars) {
if (avatar.state == AvatarState.ACTIVE ||
avatar.state == AvatarState.STANDBY) {
LOG.info("Shutting down Avatar " + avatar.state);
Thread st = new Thread(new ShutDownUtil(avatar));
st.start();
threads.add(st);
}
}
}