public class TestFileChangeWatcher extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static long |
FS_TIMEOUT |
private static org.slf4j.Logger |
LOG |
private static File |
tempDir |
private static File |
tempFile |
private static HBaseCommonTestingUtil |
UTIL |
Constructor and Description |
---|
TestFileChangeWatcher() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTempDir() |
static void |
createTempFile() |
void |
testCallbackErrorDoesNotCrashWatcherThread() |
void |
testCallbackWorksOnFileAdded() |
void |
testCallbackWorksOnFileChanges() |
void |
testCallbackWorksOnFileDeleted() |
void |
testCallbackWorksOnFileTouched() |
void |
testEnableCertFileReloading() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseCommonTestingUtil UTIL
private static final long FS_TIMEOUT
public TestFileChangeWatcher()
public static void createTempFile() throws IOException
IOException
public static void cleanupTempDir()
public void testEnableCertFileReloading() throws IOException
IOException
public void testCallbackWorksOnFileChanges() throws IOException, InterruptedException
IOException
InterruptedException
public void testCallbackWorksOnFileTouched() throws IOException, InterruptedException
IOException
InterruptedException
public void testCallbackWorksOnFileAdded() throws IOException, InterruptedException
IOException
InterruptedException
public void testCallbackWorksOnFileDeleted() throws IOException, InterruptedException
IOException
InterruptedException
public void testCallbackErrorDoesNotCrashWatcherThread() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.