Package org.apache.hadoop.hbase.io
Class TestFileChangeWatcher
java.lang.Object
org.apache.hadoop.hbase.io.TestFileChangeWatcher
@Tag("org.apache.hadoop.hbase.testclassification.IOTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestFileChangeWatcher
extends Object
This file was originally copied from the Apache ZooKeeper project, but has been modified
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Fileprivate static final org.slf4j.Loggerprivate static final Durationprivate Fileprivate static final HBaseCommonTestingUtilprivate org.apache.hadoop.hbase.io.FileChangeWatcher -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
-
UTIL
-
dir
-
POLL_INTERVAL
-
tempFile
-
watcher
-
-
Constructor Details
-
TestFileChangeWatcher
public TestFileChangeWatcher()
-
-
Method Details
-
setUpBeforeAll
- Throws:
IOException
-
cleanupTempDir
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
InterruptedException
-
testEnableCertFileReloading
- Throws:
IOException
-
awaitWatcherThreadInitialized
- Throws:
InterruptedException
-
testNoFalseNotifications
- Throws:
Exception
-
testCallbackWorksOnFileChanges
- Throws:
IOExceptionInterruptedException
-
testCallbackWorksOnFileTouched
- Throws:
IOExceptionInterruptedException
-
testCallbackErrorDoesNotCrashWatcherThread
- Throws:
Exception
-