Mathematical analysis of stochastic inventory system with server vacation under discrete and continuous time setup