@Override protected void postStart() { super.postStart(); isActive = true; update(); }
@Override protected void postStart() { super.postStart(); getDriver().configure(); // TODO implement this using AMQP connection, no external mechanism available // queueNames.each { String name -> addQueue(name) } }
@Override protected void postStart() { super.postStart(); // stupid to do this here, but there appears to be a race where sometimes the // broker throws a BrokerStopped exception, even though the sensor indicates it is up Time.sleep(Duration.FIVE_SECONDS); for (String name : queueNames) { addQueue(name); } for (String name : topicNames) { addTopic(name); } }
@Override protected void postStartCustom() { entity().postDriverStart(); if (entity().connectedSensors) { // many impls aren't idempotent - though they should be! log.debug("skipping connecting sensors for "+entity()+" in driver-tasks postStartCustom because already connected (e.g. restarting)"); } else { log.debug("connecting sensors for "+entity()+" in driver-tasks postStartCustom because already connected (e.g. restarting)"); entity().connectSensors(); } entity().waitForServiceUp(); entity().postStart(); }