how did china and japan react differently compared to the Russians and mughals to western powers?

how did china and japan react differently compared to the Russians and mughals to western powers?