@Override protected void preStartCustom(MachineLocation machine) { entity().initDriver(machine); // Note: must only apply config-sensors after adding to locations and creating driver; // otherwise can't do things like acquire free port from location, or allowing driver to set up ports super.preStartCustom(machine); ((SoftwareProcessImpl)entity()).preStart(); }
@Override protected void preStart() { super.preStart(); setAttribute(PROTOCOL, inferProtocol()); setAttribute(DOMAIN_NAME); setAttribute(ROOT_URL, inferUrl()); checkNotNull(getPortNumberSensor(), "no sensor configured to infer port number"); }