@Override protected void sendStatus() { if (client == null) { return; } String message = formatMessage(subTaskName); client.sendStatusReport(new StatusReport().withType(ServiceStatus.Starting.name()).withMessage(message)); } }
/** * Sends a status to the client to be presented to users * @param msg The status to send back to the client */ public void sendStatus(ServiceStatus serverStatus, String status) { StatusReport $ = new StatusReport(); client.sendStatusReport( $.withMessage(status).withType(serverStatus.name())); }