类 ApplicationPid
java.lang.Object
cn.taketoday.core.ApplicationPid
- 从以下版本开始:
- 4.0 2022/1/16 11:15
- 作者:
- Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidassertCanOverwrite(File file) private booleancanWritePosixFile(File file) private voidcreateParentDirectory(File file) booleanprivate StringgetPid()inthashCode()toString()voidWrite the PID to the specified file.
-
字段详细资料
-
WRITE_PERMISSIONS
-
pid
-
-
构造器详细资料
-
ApplicationPid
public ApplicationPid() -
ApplicationPid
-
-
方法详细资料
-
getPid
-
equals
-
hashCode
public int hashCode() -
toString
-
write
Write the PID to the specified file.- 参数:
file- the PID file- 抛出:
IllegalStateException- if no PID is available.IOException- if the file cannot be written
-
createParentDirectory
-
assertCanOverwrite
- 抛出:
IOException
-
canWritePosixFile
- 抛出:
IOException
-