프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$LOGDIR | |||
$command | |||
$config | walle\config\Config | Config | |
$log | |||
$logFile | mixed | Handler to the current Log File. | |
$status | integer | 命令运行返回值:0失败,1成功 |
메소드 | 설명 | |
---|---|---|
__construct ( $config ) | 加载配置 | |
getExeCommand ( ) : string | 获取执行command | |
getExeLog ( ) : string | 获取执行log | |
getExeStatus ( ) : string | 获取执行log | |
getMs ( ) : integer | 获取耗时毫秒数 | |
log ( $message ) | ||
runLocalCommand ( $command ) : boolean | integer | 执行本地宿主机命令 | |
runRemoteCommand ( string $command, integer $delay ) : boolean | 执行远程目标机器命令 | |
setConfig ( $config ) | 加载配置 |
메소드 | 설명 | |
---|---|---|
getConfig ( ) : walle\config\Config | 获取配置 | |
getHostName ( $host ) : mixed | 获取目标机器的ip或别名 | |
getHostPort ( $host, integer $default = 22 ) : integer | 获取目标机器的ssh端口 |
protected getHostPort ( $host, integer $default = 22 ) : integer | ||
$host | ||
$default | integer | |
리턴 | integer |
final public runLocalCommand ( $command ) : boolean | integer | ||
$command | ||
리턴 | boolean | integer | true 成功,false 失败 |
protected static mixed $logFile | ||
리턴 | mixed |