added some more log printouts
This commit is contained in:
parent
c4968633ed
commit
d003727113
2 changed files with 13 additions and 3 deletions
|
|
@ -92,7 +92,6 @@ public class HalServer {
|
||||||
TriggerManager.getInstance().register(flow);
|
TriggerManager.getInstance().register(flow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
// Init daemons
|
// Init daemons
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
@ -101,8 +100,11 @@ public class HalServer {
|
||||||
|
|
||||||
// We set only one thread for easier troubleshooting
|
// We set only one thread for easier troubleshooting
|
||||||
daemonExecutor = Executors.newScheduledThreadPool(1);
|
daemonExecutor = Executors.newScheduledThreadPool(1);
|
||||||
for (Iterator<HalDaemon> it = pluginManager.getSingletonIterator(HalDaemon.class); it.hasNext(); )
|
for (Iterator<HalDaemon> it = pluginManager.getSingletonIterator(HalDaemon.class); it.hasNext(); ) {
|
||||||
registerDaemon(it.next());
|
HalDaemon daemon = it.next();
|
||||||
|
logger.info("Registering daemon: " + daemon.getClass());
|
||||||
|
registerDaemon(daemon);
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
// Init http server
|
// Init http server
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,16 @@ package se.hal.intf;
|
||||||
|
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines a stand alone process that will run parallel to Hal
|
||||||
|
*/
|
||||||
public interface HalDaemon extends Runnable{
|
public interface HalDaemon extends Runnable{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the daemon.
|
||||||
|
*
|
||||||
|
* @param executor The sceduler that the daemon should register to.
|
||||||
|
*/
|
||||||
void initiate(ScheduledExecutorService executor);
|
void initiate(ScheduledExecutorService executor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue