Request the update status.
@return The update status.
@throws CommandExecutionException When there has been a error during the communication or the response was invalid.
168535
public String updateStatus() throws CommandExecutionException {
        String resp = sendToArray("miIO.get_ota_state").optString(0, null);
        if (resp == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        return resp;
    }
1342201
function getStatus(url) {
  var client = new HttpClient(url);
  var executor = new Executor(client);
  var command = new Command(CommandName.GET_SERVER_STATUS);
  return executor.execute(command);
}
1092345
public static int executeUpdate(final String sql, final Object... args)
    {
       return SqlClosure.sqlExecute(c -> executeUpdate(c, sql, args));
    }
408058
@Path("update")
    @GET
    @Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN })
    @SuppressWarnings("checkstyle:illegalcatch")
    public Response update(@QueryParam("origin") final String _origin,
                           @QueryParam("stmt") final String _stmt)
    {
        Response ret = null;
        // only permit updates on this url
        try {
            final EQLInvoker invoker = InvokerUtil.getInvoker();
            final IEQLStmt stmt = invoker.invoke(_stmt);
            if (invoker.getSyntaxErrors().isEmpty() && stmt instanceof IUpdateStmt) {
                registerEQLStmt(_origin, _stmt);
                final int modified = ((IUpdateStmt) stmt).execute();
                ret = Response.ok().type(MediaType.APPLICATION_JSON).entity(
                                getJSONReply(new UpdateEQLReply().setModified(modified))).build();
            } else {
                final StringBuilder error = new StringBuilder();
                for (final String syntaxError : invoker.getSyntaxErrors()) {
                    LOG.warn(syntaxError);
                    error.append(syntaxError).append("\n");
                }
                final ErrorReply reply = new ErrorReply()
                                .setError("EQL Syntax Error")
                                .setMessage(error.toString());
                ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
            }
        } catch (final Exception e) {
            LOG.error("Error processing data.", e);
            final ErrorReply reply = new ErrorReply()
                            .setError(e.getClass().getName())
                            .setMessage(e.getMessage())
                            .setStacktrace(ExceptionUtils.getStackTrace(e));
            ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
        }
        return ret;
    }
82220
public String getSerialnumber() throws CommandExecutionException {
        JSONArray ret = sendToArray("get_serial_number");
        if (ret == null) return null;
        return ret.optJSONObject(0).optString("serial_number");
    }
453556
public int executeUpdate() throws SQLException {
        final boolean isExceptionThrown = ExecutorExceptionHandler.isExceptionThrown();
        SQLExecuteCallback<Integer> executeCallback = SQLExecuteCallbackFactory.getPreparedUpdateSQLExecuteCallback(getDatabaseType(), isExceptionThrown);
        List<Integer> results = executeCallback(executeCallback);
        if (isAccumulate()) {
            return accumulate(results);
        } else {
            return results.get(0);
        }
    }
83273
@Override
    public String update(EntityUpdateOperation updater) throws ServiceException {
        try {
            return service.update(updater);
        } catch (UniformInterfaceException e) {
            throw processCatch(new ServiceException(e));
        } catch (ClientHandlerException e) {
            throw processCatch(new ServiceException(e));
        }

    }
1244932
@Override
    protected void doExecute() throws Exception {
        final CommandHandler commandHandler = new CommandHandlerImpl(this.getLog());

        checkStageDirectoryExistence();

        checkRuntimeExistence(commandHandler);

        runFunctions(commandHandler);
    }
299433
public int executeUpdate() throws SQLException {
        return executeUpdate(new Updater() {
            
            @Override
            public int executeUpdate(final Statement statement, final String sql) throws SQLException {
                return statement.executeUpdate(sql);
            }
        });
    }
311646
protected <V> V executeUpdate (Operation<V> op)
        throws PersistenceException
    {
        return execute(op, true, false);
    }
1325816
public CommandInfo commandQuery(TacoTangoDevice tacoDevice, String cmdname) throws DevFailed {
        Except.throw_exception("Api_TacoFailed",
                "Taco protocol not supported",
                "TacoTangoDeviceDAODefaultImpl.command_inout()");
        return null;
    }
742633
@Command(name = STATUS_NAME, outTypeDesc = "Device status")
    public String executeStatusCmd() throws DevFailed {
        MDC.setContextMap(contextMap);
        xlogger.entry();
        xlogger.exit();
        return getStatus();
    }
331513
public CompletableFuture<CommandResponse> command(CommandRequest request) {
    CompletableFuture<CommandResponse> future = new CompletableFuture<>();
    if (context.isCurrentContext()) {
      sendRequest(request, protocol::command, future);
    } else {
      context.execute(() -> sendRequest(request, protocol::command, future));
    }
    return future;
  }
1330263
protected void doExecuteCommand() {
        if (this.commandExecutor instanceof ParameterizableActionCommandExecutor) {
            ((ParameterizableActionCommandExecutor) this.commandExecutor).execute(getParameters());
        }
        else {
        	if (this.commandExecutor != null) {
        		this.commandExecutor.execute();
        	}
        }
    }
622412
public <R> R executeAndQuery(ContextCommand<ROOT, R> cmd) {
        return Politician.beatAroundTheBush(() -> this.prevayler.execute(new InternalTransaction<>(cmd)));
    }
26808
@SuppressWarnings("unchecked")
	public JSONObject getStatusUpdate() {
		JSONObject statusUpdate = null;
		try {
			statusUpdate = (JSONObject) JSON_PARSER
					.parse((String) this.nextStatusUpdateNode
							.getProperty(Properties.StatusUpdate.CONTENT));
		} catch (final ParseException e) {
			e.printStackTrace();
		}

		// (create and) add user object
		if (this.userJSON == null) {
			final User user = new User(this.userNode);
			this.userJSON = user.toActorJSON();
		}
		statusUpdate.put("actor", this.userJSON);

		this.nextStatusUpdate();
		return statusUpdate;
	}
295058
public VacuumSounpackInstallState soundpackInstallStatus() throws CommandExecutionException {
        JSONArray ret = sendToArray("get_sound_progress");
        if (ret == null) return null;
        return new VacuumSounpackInstallState(ret.optJSONObject(0));
    }