| Modifier and Type | Class and Description |
|---|---|
| private static class | LinuxWatchService.
WatchKey implementation |
| private static class | LinuxWatchService.
Background thread to read from inotify |
| Modifier and Type | Field and Description |
|---|---|
| private final LinuxWatchService. | |
| private static final Unsafe |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static native void | |
| private static native int[] | |
| private static native int | |
| pack-priv void | implClose()
Implements abstract sun. Closes this watch service. |
| private static native int | |
| private static native int | |
| private static native void | |
| private static native int | |
| pack-priv WatchKey | register(Path dir, WatchEvent.
Implements abstract sun. Register the given object with this watch service |
| private static native void |
| poller | back to summary |
|---|---|
| private final LinuxWatchService. | |
| unsafe | back to summary |
|---|---|
| private static final Unsafe unsafe | |
| LinuxWatchService | back to summary |
|---|---|
| pack-priv LinuxWatchService(UnixFileSystem fs) throws IOException | |
| configureBlocking | back to summary |
|---|---|
| private static native void configureBlocking(int fd, boolean blocking) throws UnixException | |
| eventOffsets | back to summary |
|---|---|
| private static native int[] eventOffsets() | |
| eventSize | back to summary |
|---|---|
| private static native int eventSize() | |
| implClose | back to summary |
|---|---|
| pack-priv void implClose() throws IOException Implements abstract sun. Doc from sun. Closes this watch service. This method is invoked by the close method to perform the actual work of closing the watch service.
| |
| inotifyAddWatch | back to summary |
|---|---|
| private static native int inotifyAddWatch(int fd, long pathAddress, int mask) throws UnixException | |
| inotifyInit | back to summary |
|---|---|
| private static native int inotifyInit() throws UnixException | |
| inotifyRmWatch | back to summary |
|---|---|
| private static native void inotifyRmWatch(int fd, int wd) throws UnixException | |
| poll | back to summary |
|---|---|
| private static native int poll(int fd1, int fd2) throws UnixException | |
| register | back to summary |
|---|---|
| pack-priv WatchKey register(Path dir, WatchEvent. Implements abstract sun. Doc from sun. Register the given object with this watch service
| |
| socketpair | back to summary |
|---|---|
| private static native void socketpair(int[] sv) throws UnixException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv int | |
| pack-priv void | |
| public boolean |
| LinuxWatchKey | back to summary |
|---|---|
| pack-priv LinuxWatchKey(UnixPath dir, LinuxWatchService watcher, int ifd, int wd) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements java. Doc from java. Cancels the registration with the watch service. Upon return the watch key
will be invalid. If the watch key is enqueued, waiting to be retrieved
from the watch service, then it will remain in the queue until it is
removed. Pending events, if any, remain pending and may be retrieved by
invoking the If this watch key has already been cancelled then invoking this method has no effect. Once cancelled, a watch key remains forever invalid.
| |
| descriptor | back to summary |
|---|---|
| pack-priv int descriptor() | |
| invalidate | back to summary |
|---|---|
| pack-priv void invalidate(boolean remove) | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements java. Doc from java. Tells whether or not this watch key is valid. A watch key is valid upon creation and remains until it is cancelled, or its watch service is closed.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private static final int | |
| private final UnixFileSystem | |
| private final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int[] | |
| private static final int | SIZEOF_INOTIFY_EVENT
struct inotify_event { int wd; uint32_t mask; uint32_t len; char name __flexarr; // present if len > 0 } act_t; |
| private final int[] | |
| private final LinuxWatchService | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | implCancelKey(WatchKey obj)
Implements abstract sun. Executed by poller thread to cancel key |
| pack-priv void | implCloseAll()
Implements abstract sun. Executed by poller thread to shutdown and cancel all keys |
| pack-priv Object | implRegister(Path obj, Set<? extends WatchEvent.
Implements abstract sun. Executed by poller thread to register directory for changes |
| private WatchEvent. | |
| private void | |
| public void | |
| pack-priv void | wakeup()
Implements abstract sun. Wakeup poller thread so that it can service pending requests |
| address | back to summary |
|---|---|
| private final long address | |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| fs | back to summary |
|---|---|
| private final UnixFileSystem fs | |
| ifd | back to summary |
|---|---|
| private final int ifd | |
| IN_ATTRIB | back to summary |
|---|---|
| private static final int IN_ATTRIB | |
| IN_CREATE | back to summary |
|---|---|
| private static final int IN_CREATE | |
| IN_DELETE | back to summary |
|---|---|
| private static final int IN_DELETE | |
| IN_IGNORED | back to summary |
|---|---|
| private static final int IN_IGNORED | |
| IN_MODIFY | back to summary |
|---|---|
| private static final int IN_MODIFY | |
| IN_MOVED_FROM | back to summary |
|---|---|
| private static final int IN_MOVED_FROM | |
| IN_MOVED_TO | back to summary |
|---|---|
| private static final int IN_MOVED_TO | |
| IN_Q_OVERFLOW | back to summary |
|---|---|
| private static final int IN_Q_OVERFLOW | |
| IN_UNMOUNT | back to summary |
|---|---|
| private static final int IN_UNMOUNT | |
| OFFSETOF_LEN | back to summary |
|---|---|
| private static final int OFFSETOF_LEN | |
| OFFSETOF_MASK | back to summary |
|---|---|
| private static final int OFFSETOF_MASK | |
| OFFSETOF_NAME | back to summary |
|---|---|
| private static final int OFFSETOF_NAME | |
| OFFSETOF_WD | back to summary |
|---|---|
| private static final int OFFSETOF_WD | |
| offsets | back to summary |
|---|---|
| private static final int[] offsets | |
| SIZEOF_INOTIFY_EVENT | back to summary |
|---|---|
| private static final int SIZEOF_INOTIFY_EVENT struct inotify_event { int wd; uint32_t mask; uint32_t len; char name __flexarr; // present if len > 0 } act_t; | |
| socketpair | back to summary |
|---|---|
| private final int[] socketpair | |
| watcher | back to summary |
|---|---|
| private final LinuxWatchService watcher | |
| wdToKey | back to summary |
|---|---|
| private final Map<Integer, LinuxWatchService. | |
| Poller | back to summary |
|---|---|
| pack-priv Poller(UnixFileSystem fs, LinuxWatchService watcher, int ifd, int[] sp) | |
| implCancelKey | back to summary |
|---|---|
| pack-priv void implCancelKey(WatchKey obj) Implements abstract sun. Doc from sun. Executed by poller thread to cancel key
| |
| implCloseAll | back to summary |
|---|---|
| pack-priv void implCloseAll() Implements abstract sun. Doc from sun. Executed by poller thread to shutdown and cancel all keys
| |
| implRegister | back to summary |
|---|---|
| pack-priv Object implRegister(Path obj, Set<? extends WatchEvent. Implements abstract sun. Doc from sun. Executed by poller thread to register directory for changes
| |
| maskToEventKind | back to summary |
|---|---|
| private WatchEvent. map inotify event to WatchEvent.Kind | |
| processEvent | back to summary |
|---|---|
| private void processEvent(int wd, int mask, final UnixPath name) Process event from inotify | |
| run | back to summary |
|---|---|
| public void run() Implements java. Poller main loop
| |
| wakeup | back to summary |
|---|---|
| pack-priv void wakeup() throws IOException Implements abstract sun. Doc from sun. Wakeup poller thread so that it can service pending requests
| |