expectHeader(input, DomainServerProtocol.PARAM_SERVER_NAME);
final String serverName = readUTFZBytes(input);
log.infof("Server [%s] registered using connection [%s]", serverName, connection);
final ServerManager serverManager = ServerToServerManagerOperationHandler.this.serverManager;
String processName = ManagedServer.getServerProcessName(serverName);
final ManagedServer managedServer = serverManager.getServer(processName);
if (managedServer == null) {
log.errorf("Invalid server name [%s] registered", serverName);
return;
}
managedServer.setServerManagementConnection(connection);
}