@@ -3586,8 +3586,9 @@ public void reallyRun() {
35863586 final HashMap <Long , Long > stillFree = new HashMap <>();
35873587
35883588 final List <Long > networkIds = _networksDao .findNetworksToGarbageCollect ();
3589- final int netGcWait = NumbersUtil .parseInt (_configDao .getValue (NetworkGcWait .key ()), 60 );
3590- logger .info ("NetworkGarbageCollector uses '{}' seconds for GC interval." , netGcWait );
3589+ final int netGcWait = NetworkGcWait .value ();
3590+ final int netGcInterval = NetworkGcInterval .value ();
3591+ logger .info ("NetworkGarbageCollector uses '{}' seconds for GC wait and '{}' seconds for GC interval." , netGcWait , netGcInterval );
35913592
35923593 for (final Long networkId : networkIds ) {
35933594 if (!_networkModel .isNetworkReadyForGc (networkId )) {
@@ -4908,10 +4909,10 @@ public String getConfigComponentName() {
49084909 return NetworkOrchestrationService .class .getSimpleName ();
49094910 }
49104911
4911- public static final ConfigKey <Integer > NetworkGcWait = new ConfigKey <>(Integer .class , "network.gc.wait" , "Advanced" , "600" ,
4912- "Time (in seconds) to wait before shutting down a network that's not in used" , false , Scope .Global , null );
4913- public static final ConfigKey <Integer > NetworkGcInterval = new ConfigKey <>(Integer .class , "network.gc.interval" , "Advanced" , "600" ,
4914- "Seconds to wait before checking for networks to shutdown" , true , Scope .Global , null );
4912+ public static final ConfigKey <Integer > NetworkGcWait = new ConfigKey <Integer >(Integer .class , "network.gc.wait" , "Advanced" , "600" ,
4913+ "Time (in seconds) to wait before shutting down a network that's not in used" , true , Scope .Global , null );
4914+ public static final ConfigKey <Integer > NetworkGcInterval = new ConfigKey <Integer >(Integer .class , "network.gc.interval" , "Advanced" , "600" ,
4915+ "Seconds to wait before checking for networks to shutdown" , false , Scope .Global , null );
49154916
49164917 @ Override
49174918 public ConfigKey <?>[] getConfigKeys () {
0 commit comments