Package com.netflix.zuul
Class FilterFileManager
java.lang.Object
com.netflix.zuul.FilterFileManager
This class manages the directory polling for changes and new Groovy filters.
Polling interval and directories are specified in the initialization of the class, and a poller will check
for changes and additions.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFilterFileManager
(FilterFileManager.FilterFileManagerConfig config, FilterLoader filterLoader) -
Method Summary
Modifier and TypeMethodDescriptiongetDirectory
(String sPath) Returns the directory File for a path.void
init()
Initialized the GroovyFileManager.void
shutdown()
Shuts down the poller
-
Constructor Details
-
FilterFileManager
@Inject public FilterFileManager(FilterFileManager.FilterFileManagerConfig config, FilterLoader filterLoader)
-
-
Method Details
-
init
Initialized the GroovyFileManager.- Throws:
Exception
-
shutdown
public void shutdown()Shuts down the poller -
getDirectory
Returns the directory File for a path. A Runtime Exception is thrown if the directory is in valid- Parameters:
sPath
-- Returns:
- a File representing the directory path
-