コード例 #1
0
ファイル: executeLinuxProcImpl.go プロジェクト: johnnywww/swd
func (executeLinuxProcImpl *executeLinuxProcImpl) Exec(cmdLine string, dir string) error {
	if !utils.IsLinuxOS() {
		return errors.New("not linux os")
	}
	executeLinuxProc := executeLinuxProcForkChildImpl{}
	return executeLinuxProc.Exec(cmdLine, dir)
}
コード例 #2
0
func init() {
	quitServerProcessInfo = nil
	if utils.IsLinuxOS() {
		quitServerProcessInfo = &quitServerProcessInfoLinux{}
	}
}
コード例 #3
0
ファイル: getCpuStatisticsInfo.go プロジェクト: johnnywww/swd
func init() {
	getCpuStatisticsInfo = nil
	if utils.IsLinuxOS() {
		getCpuStatisticsInfo = &GetCpuStatisticsInfoLinux{}
	}
}
コード例 #4
0
ファイル: getCpuInfo.go プロジェクト: johnnywww/swd
func getLinuxOSError() error {
	if !utils.IsLinuxOS() {
		return errors.New("not linux os")
	}
	return nil
}
コード例 #5
0
ファイル: getCpuInfo.go プロジェクト: johnnywww/swd
func init() {
	getCpuInfo = nil
	if utils.IsLinuxOS() {
		getCpuInfo = &GetCpuInfoLinux{}
	}
}
コード例 #6
0
ファイル: getSystemRunTimeInfo.go プロジェクト: johnnywww/swd
func init() {
	getSystemRunTimeInfo = nil
	if utils.IsLinuxOS() {
		getSystemRunTimeInfo = &GetSystemRunTimeInfoLinux{}
	}
}
コード例 #7
0
ファイル: getServerStatusInfo.go プロジェクト: johnnywww/swd
func init() {
	getServerStatusInfo = nil
	if utils.IsLinuxOS() {
		getServerStatusInfo = &getServerStatusInfoLinux{}
	}
}
コード例 #8
0
ファイル: getProcessInfo.go プロジェクト: johnnywww/swd
func init() {
	getProcessInfo = nil
	if utils.IsLinuxOS() {
		getProcessInfo = &GetProcessInfoLinux{}
	}
}
コード例 #9
0
func init() {
	restartServerProcessInfo = nil
	if utils.IsLinuxOS() {
		restartServerProcessInfo = &restartServerProcessInfoLinux{}
	}
}
コード例 #10
0
ファイル: executeLinuxProc.go プロジェクト: johnnywww/swd
func init() {
	executeLinuxProc = nil
	if utils.IsLinuxOS() {
		executeLinuxProc = &executeLinuxProcImpl{}
	}
}
コード例 #11
0
ファイル: getListenPortInfo.go プロジェクト: johnnywww/swd
func init() {
	getListenPortInfo = nil
	if utils.IsLinuxOS() {
		getListenPortInfo = &GetListenPortInfoLinux{}
	}
}
コード例 #12
0
func init() {
	getProcessInfoByServerInfo = nil
	if utils.IsLinuxOS() {
		getProcessInfoByServerInfo = &getProcessInfoByServerInfoLinux{}
	}
}
コード例 #13
0
ファイル: getLoaderAvgInfo.go プロジェクト: johnnywww/swd
func init() {
	getLoaderAvgInfo = nil
	if utils.IsLinuxOS() {
		getLoaderAvgInfo = &GetLoaderAvgInfoLinux{}
	}
}