Class AssetMonitor
java.lang.Object
com.hypixel.hytale.server.core.asset.monitor.AssetMonitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Path, Map<AssetMonitorHandler, DirectoryHandlerChangeTask>> private final Map<Path, List<AssetMonitorHandler>> private static final ScheduledExecutorServiceprivate final Map<Path, FileChangeTask> static final com.hypixel.hytale.logger.HytaleLoggerprivate final PathWatcherThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmarkChanged(Path path) voidmonitorDirectoryFiles(Path path, AssetMonitorHandler handler) protected voidvoidonDelayedChange(Path path, PathEvent pathEvent) voidremoveFileChangeTask(FileChangeTask fileChangeTask) voidremoveHookChangeTask(DirectoryHandlerChangeTask directoryHandlerChangeTask) voidremoveMonitorDirectoryFiles(Path path, Object key) static ScheduledFuture<?> voidshutdown()
-
Field Details
-
LOGGER
public static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
EXECUTOR
-
directoryMonitors
-
fileChangeTasks
-
directoryHandlerChangeTasks
private final Map<Path,Map<AssetMonitorHandler, directoryHandlerChangeTasksDirectoryHandlerChangeTask>> -
pathWatcherThread
-
-
Constructor Details
-
AssetMonitor
- Throws:
IOException
-
-
Method Details
-
shutdown
public void shutdown() -
monitorDirectoryFiles
-
removeMonitorDirectoryFiles
-
onChange
-
onDelayedChange
-
removeFileChangeTask
-
markChanged
-
removeHookChangeTask
-
runTask
-