mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
There's no background thread working on maintaining the connections
This commit is contained in:
parent
e4967c4631
commit
5fc13a63b1
@ -203,7 +203,7 @@ public class ConnectionConcierge {
|
||||
}
|
||||
|
||||
_executor = Executors.newScheduledThreadPool(1, new NamedThreadFactory("ConnectionConcierge"));
|
||||
_executor.schedule(new Runnable() {
|
||||
_executor.scheduleAtFixedRate(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
s_logger.trace("connection concierge keep alive task");
|
||||
@ -214,7 +214,7 @@ public class ConnectionConcierge {
|
||||
}
|
||||
}
|
||||
}
|
||||
}, seconds, TimeUnit.SECONDS);
|
||||
}, 0, seconds, TimeUnit.SECONDS);
|
||||
|
||||
return "As you wish.";
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ public class InaccurateClock extends StandardMBean implements InaccurateClockMBe
|
||||
public synchronized String restart() {
|
||||
turnOff();
|
||||
s_executor = Executors.newScheduledThreadPool(1, new NamedThreadFactory("InaccurateClock"));
|
||||
s_executor.schedule(new SetTimeTask(), 60, TimeUnit.SECONDS);
|
||||
s_executor.scheduleAtFixedRate(new SetTimeTask(), 0, 60, TimeUnit.SECONDS);
|
||||
return "Restarted";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user