public bool Init(FormAutoModeClient refView, string[] args) { m_refView = refView; string strErrMessage; if (CheckArgs(args, out strErrMessage) == false) { FileLog.Instance.Write(strErrMessage); return(false); } m_netClient = new NetClient(); m_commandSender = new CommandSender(m_netClient); m_netClient.SetCommandHandler(new CommandHandler_AutoMode(this, m_commandSender)); m_eMode = GetAutoModeByString(args[0]); if (m_eMode == AUTO_MODE_TYPE.JUST_START) { m_strTargetServerName = args[1]; } else if (m_eMode == AUTO_MODE_TYPE.JUST_STOP) { m_strTargetServerName = args[1]; } return(true); }
public ServerInfoRequester(MachineInfoMgr refMachineInfoMgr, CommandSender refCommandSender) { m_refMachineInfoMgr = refMachineInfoMgr; m_refCommandSender = refCommandSender; m_timeRegulator.Start(DELAY_TO_REQUEST); }
public bool Init(FormServerMonitorClient refServerMonitorClientView) { m_refView = refServerMonitorClientView; m_netClient = new NetClient(); m_commandSender = new CommandSender(m_netClient); m_netClient.SetCommandHandler(new CommandHandler_Normal(this, m_commandSender)); m_machineConnector = new MachineConnector(m_machineInfoMgr, m_netClient); m_serverInfoRequester = new ServerInfoRequester(m_machineInfoMgr, m_commandSender); if (LoadConfig() == false) { return(false); } m_machineConnector.ConnectToAllMachines(); RebuildTreeView(); return(true); }
public CommandHandler_Normal(ServerMonitorClient refServerMonitorClient, CommandSender refCommandSender) { m_refServerMonitorClient = refServerMonitorClient; m_refCommandSender = refCommandSender; }
public CommandHandler_AutoMode(AutoModeClient refAutoModeClient, CommandSender refCommandSender) { m_refAutoModeClient = refAutoModeClient; m_refCommandSender = refCommandSender; }