Convert FileWatchListener to an interface
Original commit: elastic/x-pack-elasticsearch@da9f6eddc1
This commit is contained in:
parent
b26fb2f0de
commit
fedd3b4f4a
|
@ -26,7 +26,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
* In case of failure to read a valid operation mode from <code>licenseModePath</code>,
|
||||
* the operation mode will default to PLATINUM
|
||||
*/
|
||||
public final class OperationModeFileWatcher extends FileChangesListener {
|
||||
public final class OperationModeFileWatcher implements FileChangesListener {
|
||||
private final ResourceWatcherService resourceWatcherService;
|
||||
private final Path licenseModePath;
|
||||
private final AtomicBoolean initialized = new AtomicBoolean();
|
||||
|
|
|
@ -185,7 +185,7 @@ public class FileUserPasswdStore {
|
|||
}
|
||||
}
|
||||
|
||||
private class FileListener extends FileChangesListener {
|
||||
private class FileListener implements FileChangesListener {
|
||||
@Override
|
||||
public void onFileCreated(Path file) {
|
||||
onFileChanged(file);
|
||||
|
|
|
@ -217,7 +217,7 @@ public class FileUserRolesStore {
|
|||
}
|
||||
}
|
||||
|
||||
private class FileListener extends FileChangesListener {
|
||||
private class FileListener implements FileChangesListener {
|
||||
@Override
|
||||
public void onFileCreated(Path file) {
|
||||
onFileChanged(file);
|
||||
|
|
|
@ -184,7 +184,7 @@ public class DnRoleMapper {
|
|||
}
|
||||
}
|
||||
|
||||
private class FileListener extends FileChangesListener {
|
||||
private class FileListener implements FileChangesListener {
|
||||
@Override
|
||||
public void onFileCreated(Path file) {
|
||||
onFileChanged(file);
|
||||
|
|
|
@ -287,7 +287,7 @@ public class FileRolesStore extends AbstractLifecycleComponent implements RolesS
|
|||
return segments;
|
||||
}
|
||||
|
||||
private class FileListener extends FileChangesListener {
|
||||
private class FileListener implements FileChangesListener {
|
||||
|
||||
@Override
|
||||
public void onFileCreated(Path file) {
|
||||
|
|
|
@ -264,7 +264,7 @@ abstract class TrustConfig {
|
|||
}
|
||||
}
|
||||
|
||||
protected static class ChangeListener extends FileChangesListener {
|
||||
protected static class ChangeListener implements FileChangesListener {
|
||||
|
||||
private final List<Path> paths;
|
||||
private final Reloadable reloadable;
|
||||
|
|
Loading…
Reference in New Issue