Index

A B C D E F G H I L M O P Q R S T U V W 
All Classes|All Packages

A

asBytes() - Method in interface io.methvin.watcher.hashing.FileHash
 
asString() - Method in interface io.methvin.watcher.hashing.FileHash
 

B

build() - Method in class io.methvin.watcher.DirectoryWatcher.Builder
 
builder() - Static method in class io.methvin.watcher.DirectoryWatcher
Get a new builder for a DirectoryWatcher.

C

cancelled(AbstractWatchKey) - Method in class io.methvin.watchservice.MacOSXListeningWatchService
Called when the given key is cancelled.
CarbonAPI - Interface in io.methvin.watchservice.jna
 
CarbonAPI.FSEventStreamCallback - Interface in io.methvin.watchservice.jna
 
cast(WatchEvent<?>) - Static method in class io.methvin.watcher.PathUtils
 
CFAllocatorRef - Class in io.methvin.watchservice.jna
 
CFAllocatorRef() - Constructor for class io.methvin.watchservice.jna.CFAllocatorRef
 
CFArrayCreate(CFAllocatorRef, Pointer[], CFIndex, Void) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
CFArrayRef - Class in io.methvin.watchservice.jna
 
CFArrayRef() - Constructor for class io.methvin.watchservice.jna.CFArrayRef
 
CFIndex - Class in io.methvin.watchservice.jna
 
CFIndex() - Constructor for class io.methvin.watchservice.jna.CFIndex
 
CFRunLoopGetCurrent() - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
CFRunLoopRef - Class in io.methvin.watchservice.jna
 
CFRunLoopRef() - Constructor for class io.methvin.watchservice.jna.CFRunLoopRef
 
CFRunLoopRun() - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
CFRunLoopStop(CFRunLoopRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
CFRunLoopThread(FSEventStreamRef, File) - Constructor for class io.methvin.watchservice.MacOSXListeningWatchService.CFRunLoopThread
 
CFStringCreateWithCharacters(Void, char[], CFIndex) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
CFStringRef - Class in io.methvin.watchservice.jna
 
CFStringRef() - Constructor for class io.methvin.watchservice.jna.CFStringRef
 
ChangeSet - Interface in io.methvin.watcher.changeset
 
ChangeSetEntry - Class in io.methvin.watcher.changeset
 
ChangeSetListener - Class in io.methvin.watcher.changeset
 
ChangeSetListener() - Constructor for class io.methvin.watcher.changeset.ChangeSetListener
 
checkOpen() - Method in class io.methvin.watchservice.MacOSXListeningWatchService
Checks that the watch service is open, throwing ClosedWatchServiceException if not.
close() - Method in class io.methvin.watcher.DirectoryWatcher
 
close() - Method in class io.methvin.watchservice.MacOSXListeningWatchService.CFRunLoopThread
 
close() - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 
close(MacOSXListeningWatchService.CFRunLoopThread, CarbonAPI.FSEventStreamCallback, Path) - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 
count() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
CREATE - io.methvin.watcher.DirectoryChangeEvent.EventType
 
created() - Method in interface io.methvin.watcher.changeset.ChangeSet
 
createHashCodeMap(Path, FileHasher) - Static method in class io.methvin.watcher.PathUtils
 
createHashCodeMap(List<Path>, FileHasher) - Static method in class io.methvin.watcher.PathUtils
 

D

DEFAULT_FILE_HASHER - Static variable in interface io.methvin.watcher.hashing.FileHasher
The default file hasher instance, which uses Murmur3.
DEFAULT_LATENCY - Static variable in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
 
DEFAULT_QUEUE_SIZE - Static variable in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
 
DELETE - io.methvin.watcher.DirectoryChangeEvent.EventType
 
deleted() - Method in interface io.methvin.watcher.changeset.ChangeSet
 
directory() - Static method in interface io.methvin.watcher.hashing.FileHash
 
DIRECTORY - Static variable in interface io.methvin.watcher.hashing.FileHash
A special hash instance used by DirectoryWatcher to represent a directory
DirectoryChangeEvent - Class in io.methvin.watcher
 
DirectoryChangeEvent(DirectoryChangeEvent.EventType, boolean, Path, FileHash, int, Path) - Constructor for class io.methvin.watcher.DirectoryChangeEvent
 
DirectoryChangeEvent.EventType - Enum in io.methvin.watcher
 
DirectoryChangeListener - Interface in io.methvin.watcher
A listener that is called when file change events occur or when exceptions occur while watching.
DirectoryWatcher - Class in io.methvin.watcher
 
DirectoryWatcher(List<Path>, DirectoryChangeListener, WatchService, FileHasher, Logger) - Constructor for class io.methvin.watcher.DirectoryWatcher
 
DirectoryWatcher.Builder - Class in io.methvin.watcher
A builder for a DirectoryWatcher.

E

equals(Object) - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
equals(Object) - Method in class io.methvin.watcher.DirectoryChangeEvent
 
eventType() - Method in class io.methvin.watcher.DirectoryChangeEvent
 

F

FileHash - Interface in io.methvin.watcher.hashing
An interface representing the hash of a file.
fileHasher() - Method in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
The file hasher to use to check whether files have changed.
fileHasher(FileHasher) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Defines the file hasher to be used by the watcher.
FileHasher - Interface in io.methvin.watcher.hashing
A function to convert a Path to a hash code used to check if the file content is changed.
fileHashing(boolean) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Defines whether file hashing should be used to catch duplicate events.
fileLevelEvents() - Method in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
Request file-level notifications from the watcher.
fromBytes(byte[]) - Static method in interface io.methvin.watcher.hashing.FileHash
 
fromLong(long) - Static method in interface io.methvin.watcher.hashing.FileHash
 
FSEventStreamCreate(Pointer, CarbonAPI.FSEventStreamCallback, Pointer, CFArrayRef, long, double, int) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamInvalidate(FSEventStreamRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamRef - Class in io.methvin.watchservice.jna
 
FSEventStreamRef() - Constructor for class io.methvin.watchservice.jna.FSEventStreamRef
 
FSEventStreamRelease(FSEventStreamRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamScheduleWithRunLoop(FSEventStreamRef, CFRunLoopRef, CFStringRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamStart(FSEventStreamRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamStop(FSEventStreamRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 
FSEventStreamUnscheduleFromRunLoop(FSEventStreamRef, CFRunLoopRef, CFStringRef) - Method in interface io.methvin.watchservice.jna.CarbonAPI
 

G

getChangeSet() - Method in class io.methvin.watcher.changeset.ChangeSetListener
 
getFile() - Method in class io.methvin.watchservice.WatchablePath
 
getListener() - Method in class io.methvin.watcher.DirectoryWatcher
 
getValue() - Method in class io.methvin.watcher.hashing.Murmur3F
 
getValueBigInteger() - Method in class io.methvin.watcher.hashing.Murmur3F
Positive value.
getValueBytesBigEndian() - Method in class io.methvin.watcher.hashing.Murmur3F
 
getValueBytesLittleEndian() - Method in class io.methvin.watcher.hashing.Murmur3F
 
getValueHexString() - Method in class io.methvin.watcher.hashing.Murmur3F
Padded with leading 0s to ensure length of 32.
getValueHigh() - Method in class io.methvin.watcher.hashing.Murmur3F
Returns the higher 64 bits of the 128 bit hash.
getWatchEventKind() - Method in enum io.methvin.watcher.DirectoryChangeEvent.EventType
 

H

hash() - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
hash() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
hash(FileHasher, Path) - Static method in class io.methvin.watcher.PathUtils
 
hash(Path) - Method in interface io.methvin.watcher.hashing.FileHasher
 
hashCode() - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
hashCode() - Method in class io.methvin.watcher.DirectoryChangeEvent
 

I

initWatcherState(List<Path>, FileHasher, Map<Path, FileHash>, Set<Path>) - Static method in class io.methvin.watcher.PathUtils
 
INSTANCE - Static variable in interface io.methvin.watchservice.jna.CarbonAPI
 
invoke(FSEventStreamRef, Pointer, NativeLong, Pointer, Pointer, Pointer) - Method in interface io.methvin.watchservice.jna.CarbonAPI.FSEventStreamCallback
 
io.methvin.watcher - package io.methvin.watcher
 
io.methvin.watcher.changeset - package io.methvin.watcher.changeset
 
io.methvin.watcher.hashing - package io.methvin.watcher.hashing
 
io.methvin.watchservice - package io.methvin.watchservice
 
io.methvin.watchservice.jna - package io.methvin.watchservice.jna
 
isClosed() - Method in class io.methvin.watcher.DirectoryWatcher
 
isDirectory() - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
isDirectory() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
isOpen() - Method in class io.methvin.watchservice.MacOSXListeningWatchService
Returns whether or not this watch service is open.
isWatching() - Method in interface io.methvin.watcher.DirectoryChangeListener
The watcher will stop watching after this method returns false.

L

LAST_MODIFIED_TIME - Static variable in interface io.methvin.watcher.hashing.FileHasher
A file hasher that returns the last modified time provided by the OS.
latency() - Method in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
The maximum number of seconds to wait after hearing about an event
listener(DirectoryChangeListener) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Set a listener that will be called when a directory change event occurs.
logger(Logger) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Set a logger to be used by the watcher.

M

MacOSXListeningWatchService - Class in io.methvin.watchservice
This class contains the bulk of my implementation of the Watch Service API.
MacOSXListeningWatchService() - Constructor for class io.methvin.watchservice.MacOSXListeningWatchService
 
MacOSXListeningWatchService(MacOSXListeningWatchService.Config) - Constructor for class io.methvin.watchservice.MacOSXListeningWatchService
 
MacOSXListeningWatchService.CFRunLoopThread - Class in io.methvin.watchservice
 
MacOSXListeningWatchService.Config - Interface in io.methvin.watchservice
Configuration for the watch service.
modified() - Method in interface io.methvin.watcher.changeset.ChangeSet
 
MODIFY - io.methvin.watcher.DirectoryChangeEvent.EventType
 
Murmur3F - Class in io.methvin.watcher.hashing
Murmur3F (MurmurHash3_x64_128)
Murmur3F() - Constructor for class io.methvin.watcher.hashing.Murmur3F
 
Murmur3F(int) - Constructor for class io.methvin.watcher.hashing.Murmur3F
 

O

onEvent(DirectoryChangeEvent) - Method in class io.methvin.watcher.changeset.ChangeSetListener
 
onEvent(DirectoryChangeEvent) - Method in interface io.methvin.watcher.DirectoryChangeListener
 
onException(Exception) - Method in interface io.methvin.watcher.DirectoryChangeListener
A handler for uncaught exceptions.
OVERFLOW - io.methvin.watcher.DirectoryChangeEvent.EventType
 

P

path() - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
path() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
path(Path) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Set a single path to watch.
pathHashes() - Method in class io.methvin.watcher.DirectoryWatcher
 
paths(List<Path>) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Set multiple paths to watch.
PathUtils - Class in io.methvin.watcher
 
PathUtils() - Constructor for class io.methvin.watcher.PathUtils
 
poll() - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 
poll(long, TimeUnit) - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 

Q

queueSize() - Method in interface io.methvin.watchservice.MacOSXListeningWatchService.Config
The size of the queue used for each WatchKey

R

recursiveListFiles(Path) - Static method in class io.methvin.watcher.PathUtils
 
recursiveVisitFiles(Path, PathUtils.PathCallback, PathUtils.PathCallback) - Static method in class io.methvin.watcher.PathUtils
 
register(WatchablePath, Iterable<? extends WatchEvent.Kind<?>>) - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 
register(WatchService, WatchEvent.Kind<?>...) - Method in class io.methvin.watchservice.WatchablePath
 
register(WatchService, WatchEvent.Kind<?>[], WatchEvent.Modifier...) - Method in class io.methvin.watchservice.WatchablePath
 
reset() - Method in class io.methvin.watcher.hashing.Murmur3F
 
rootPath() - Method in class io.methvin.watcher.changeset.ChangeSetEntry
 
rootPath() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
run() - Method in class io.methvin.watchservice.MacOSXListeningWatchService.CFRunLoopThread
 

S

subMap(SortedMap<Path, T>, Path) - Static method in class io.methvin.watcher.PathUtils
 

T

take() - Method in class io.methvin.watchservice.MacOSXListeningWatchService
 
toCFString(String) - Static method in class io.methvin.watchservice.jna.CFStringRef
 
toString() - Method in class io.methvin.watcher.DirectoryChangeEvent
 
toString() - Method in class io.methvin.watchservice.WatchablePath
 

U

update(byte[]) - Method in class io.methvin.watcher.hashing.Murmur3F
 
update(byte[], int, int) - Method in class io.methvin.watcher.hashing.Murmur3F
 
update(int) - Method in class io.methvin.watcher.hashing.Murmur3F
 

V

valueOf(int) - Static method in class io.methvin.watchservice.jna.CFIndex
 
valueOf(String) - Static method in enum io.methvin.watcher.DirectoryChangeEvent.EventType
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.methvin.watcher.DirectoryChangeEvent.EventType
Returns an array containing the constants of this enum type, in the order they are declared.

W

watch() - Method in class io.methvin.watcher.DirectoryWatcher
Watch the directories.
WatchablePath - Class in io.methvin.watchservice
 
WatchablePath(Path) - Constructor for class io.methvin.watchservice.WatchablePath
 
watchAsync() - Method in class io.methvin.watcher.DirectoryWatcher
Asynchronously watch the directories using ForkJoinPool.commonPool() as the executor
watchAsync(Executor) - Method in class io.methvin.watcher.DirectoryWatcher
Asynchronously watch the directories.
watchService(WatchService) - Method in class io.methvin.watcher.DirectoryWatcher.Builder
Set a WatchService implementation that will be used by the watcher.
A B C D E F G H I L M O P Q R S T U V W 
All Classes|All Packages