@Configuration @EnableScheduling public class FileMonitorConfiguration extends Object implements org.springframework.context.SmartLifecycle, org.springframework.context.ResourceLoaderAware
PropertyPathEndpoint is pinged
with the paths of the files. This applies to the source files of a local git repository
(i.e. a git repository with a "file:" URI) or to a native repository.| Constructor and Description |
|---|
FileMonitorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
poll() |
void |
setAutoStartup(boolean autoStartup) |
void |
setPhase(int phase)
see
getPhase() |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setRunning(boolean running) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void setPhase(int phase)
getPhase()phase - the phase.public boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void setRunning(boolean running)
running - true if running.isRunning()public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void setAutoStartup(boolean autoStartup)
autoStartup - true to auto start.isAutoStartup()public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecycle@Scheduled(fixedRateString="${spring.cloud.config.server.monitor.fixedDelay:5000}")
public void poll()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.