public ManagedServer getServer(String name) {
return servers.get(name);
}
private void checkState(ManagedServer server, ServerState expected) {
ServerState state = server.getState();
if (state != expected) {
log.warnf("Server %s is not in the expected %s state: %s" , server.getServerProcessName(), expected, state);
}
}