protected static class DefaultTileMaster.StateSaver extends java.lang.Object implements JobRunnerListener
| 构造器和说明 |
|---|
DefaultTileMaster.StateSaver()
构造函数。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addJob(JobBuildConfig processed, JobState state)
更新切图状态。
|
protected boolean |
copyFileQuietly(java.io.File file, java.io.File bakFile) |
protected void |
deleteBakFile(java.io.File bakFile) |
void |
dispose()
释放资源。
|
protected java.io.File |
getConfigFile(java.lang.String key) |
protected java.io.File |
getStateFile(java.lang.String key) |
void |
load()
从配置文件读取切图信息。
|
void |
notifyStateInited(JobBuildConfig config, JobState state)
标记任务状态为初始化完成。
|
void |
notifyStateUpdated(JobBuildConfig config, JobState state)
标记任务状态为更新完成。
|
protected <T> T |
read(java.lang.Class<T> clz, java.lang.String nodeName, java.io.File file) |
boolean |
remove(java.lang.String jobID)
通过jobID删除对应的配置文件信息。
|
void |
setDefaultTileMaster(DefaultTileMaster value)
设置切图主节点。
|
void |
setDirectory(java.io.File value)
设置输出文件夹。
|
protected boolean |
writeContentToFile(java.lang.String content, java.io.File file) |
public void dispose()
释放资源。
public void setDirectory(java.io.File value)
throws java.io.IOException
设置输出文件夹。
value -java.io.IOExceptionpublic void setDefaultTileMaster(DefaultTileMaster value)
设置切图主节点。
value -public void addJob(JobBuildConfig processed, JobState state)
更新切图状态。
processed -state -public void load()
从配置文件读取切图信息。
public void notifyStateInited(JobBuildConfig config, JobState state)
JobRunnerListener标记任务状态为初始化完成。
notifyStateInited 在接口中 JobRunnerListenerpublic void notifyStateUpdated(JobBuildConfig config, JobState state)
JobRunnerListener标记任务状态为更新完成。
notifyStateUpdated 在接口中 JobRunnerListenerpublic boolean remove(java.lang.String jobID)
通过jobID删除对应的配置文件信息。
jobID -
protected <T> T read(java.lang.Class<T> clz,
java.lang.String nodeName,
java.io.File file)
protected java.io.File getStateFile(java.lang.String key)
protected java.io.File getConfigFile(java.lang.String key)
protected boolean copyFileQuietly(java.io.File file,
java.io.File bakFile)
protected boolean writeContentToFile(java.lang.String content,
java.io.File file)
protected void deleteBakFile(java.io.File bakFile)