Properties

$data

$data : array

数据

Type

array

$timespan

$timespan : integer

每次检测时间间隔,单位:秒(有可能真实时间会大于设定的时间)

Type

integer

$includePaths

$includePaths : array

包含的路径

Type

array

$excludePaths

$excludePaths : array

排除的路径

Type

array

$defaultPath

$defaultPath : array

默认监视路径

Type

array

$status

$status : boolean

是否开启热更新,默认开启

Type

boolean

$changedFilesFile

$changedFilesFile : string

热更新检测,更改的文件列表,储存在的文件名

Type

string

$buildRuntimeHandler

$buildRuntimeHandler : \resource

buildRuntime resource

Type

\resource

$buildRuntimePipes

$buildRuntimePipes : array

buildRuntime pipes

Type

array

$sockFile

$sockFile : string

sock 文件名

Type

string

$conns

$conns : array<mixed,resource>

连接集合

Type

array<mixed,resource>

$beginTime

$beginTime : float

开始时间

Type

float

$building

$building : boolean

是否正在构建中

Type

boolean

$buildRuntimeTimerId

$buildRuntimeTimerId : integer

构建运行时计时器ID

Type

integer

Methods

__construct()

__construct(  $data = array()) 

Parameters

$data

run()

run(\Swoole\Process  $process) : void

Parameters

\Swoole\Process $process

buildRuntimeTimer()

buildRuntimeTimer() : void

定时器,用于监听构建进程

startBuildRuntimeTimer()

startBuildRuntimeTimer() : void

开始构建运行时计时器

stopBuildRuntimeTimer()

stopBuildRuntimeTimer() : void

停止构建运行时计时器

clearCache()

clearCache() : void

清除各种缓存

initBuildRuntime()

initBuildRuntime() : void

初始化 runtime

beginBuildRuntime()

beginBuildRuntime(array<mixed,string>  $changedFiles) : void

开始构建 runtime

Parameters

array<mixed,string> $changedFiles

closeBuildRuntime()

closeBuildRuntime() : void

关闭 runtime 进程

startSocketServer()

startSocketServer() : void

开始 Unix Socket 服务

parseConn()

parseConn(resource  $conn) : void

处理连接

Parameters

resource $conn