14 |
|
|
15 |
Logger logger = Logger.getLogger(TraininfoSettings.class.getName() ); |
Logger logger = Logger.getLogger(TraininfoSettings.class.getName() ); |
16 |
|
|
|
ServletContext cxt; |
|
|
public TraininfoSettings(ServletContext cxt) { |
|
|
this.cxt = cxt; |
|
|
} |
|
|
|
|
17 |
@ConfigVariable |
@ConfigVariable |
18 |
boolean useazuresite; |
boolean useazuresite; |
19 |
|
|
31 |
|
|
32 |
@ConfigVariable |
@ConfigVariable |
33 |
int reply_timeout; |
int reply_timeout; |
34 |
|
|
|
@ReloadConfigMethod |
|
|
public void reloadConfig() { |
|
|
logger.info("Reloading config"); |
|
|
new ContextConfigLoader(cxt).loadConfig(this); |
|
|
} |
|
35 |
|
|
36 |
public boolean getUseAzureSite() { |
public boolean getUseAzureSite() { |
37 |
return useazuresite; |
return useazuresite; |
49 |
public int getReplyTimeout() { |
public int getReplyTimeout() { |
50 |
return reply_timeout; |
return reply_timeout; |
51 |
} |
} |
|
|
|
52 |
|
|
53 |
@Override |
@Override |
54 |
public int getTreshold() { |
public int getTreshold() { |