Update this stats with new data contained in StatusData parameter.
@param status {@link StatusData} object containing new data.
@throws IllegalArgumentException if given status is null.
487600
public void update(StatusData<T> status) {
        if (status == null) {
            throw new IllegalArgumentException("Received null as status data!");
        }
        neverUpdated = false;
        handleStatsResetIfNeeded(status);
        for (T metric : metrics) {
            Object value = status.get(metric);
            if (value == null) {
                getLogger().warn("StatusData contains no value for metric '"+metric.getCaption() + "'.");
                continue;
            }
            StatValue stat = getMonitoredStatValue(metric);
            switch (metric.getType()) {
                case INT: stat.setValueAsInt(Integer.class.cast(value)); break;
                case DOUBLE: stat.setValueAsDouble(Double.class.cast(value)); break;
                case STRING: stat.setValueAsString(value.toString()); break;
                case COUNTER:
                case DIFFLONG:
                case LONG: stat.setValueAsLong(Long.class.cast(value));break;
                default: stat.setValueAsString(value.toString()); break;
            }
        }
    }
1146663
public void updateServiceInstanceStatus(String serviceName, String instanceId, OperationalStatus status){
        ProtocolHeader header = new ProtocolHeader();
        header.setType(ProtocolType.UpdateServiceInstanceStatus);

        UpdateServiceInstanceStatusProtocol p = new UpdateServiceInstanceStatusProtocol(serviceName, instanceId, status);
        connection.submitRequest(header, p, null);
    }
1352019
private void updateIndexActionStatus(
      IndexAction indexAction, IndexActionMetadata.IndexStatus status) {
    indexAction.setIndexStatus(status);
    dataService.update(INDEX_ACTION, indexAction);
  }
163684
public synchronized void setStatusAndNotify(final LauncherStatus newStatus) {
    LOG.log(Level.FINEST, "Set status: {0} -> {1}", new Object[] {this.status, newStatus});
    this.status = newStatus;
    this.notify();
  }
546634
public function setStatus($status) {
        if (!in_array($status, array(self::STATUS_INACTIVE, self::STATUS_PUBLISHED))) {
            throw new \InvalidArgumentException("Invalid status");
        }
        $this->status = $status;
    }
1011385
private void doPushMessage(Status status) {
        StatusMessage message = new StatusMessage();
        message.setBody(status);
        doPushMessage(message);
    }
1288233
@Override
    public boolean statusUpdate(final String appName, final String id,
                                final InstanceStatus newStatus, String lastDirtyTimestamp,
                                final boolean isReplication) {
        if (super.statusUpdate(appName, id, newStatus, lastDirtyTimestamp, isReplication)) {
            replicateToPeers(Action.StatusUpdate, appName, id, null, newStatus, isReplication);
            return true;
        }
        return false;
    }
818045
public void setStatusInfos(java.util.Collection<DBInstanceStatusInfo> statusInfos) {
        if (statusInfos == null) {
            this.statusInfos = null;
            return;
        }

        this.statusInfos = new com.amazonaws.internal.SdkInternalList<DBInstanceStatusInfo>(statusInfos);
    }
756686
public final void addData(@NonNull Data<?> data) {
        checkNotNull(data, "data");
        // Clear error message now, in case the caller recently replaced them.
        // If they did, they'd expect the error message to be gone, because the
        // view visibility state is reset.
        if (mDatas.isEmpty()) {
            mErrorMessage = null;
        }
        mDatas.add(data);
        mDataWatcher.setDatas(mDatas);
        updateViews();
    }
301153
public void setStatus(java.util.Collection<BulkEmailDestinationStatus> status) {
        if (status == null) {
            this.status = null;
            return;
        }

        this.status = new com.amazonaws.internal.SdkInternalList<BulkEmailDestinationStatus>(status);
    }
619476
protected void setStatus(int status) {
	if (this.status == status) return;
	this.status = status;

	if (listeners == null) return;
	int size = listeners.size();
	for(int i=0;i<size;i++) {
	    GramJobListener listener = (GramJobListener)listeners.elementAt(i);
	    listener.statusChanged(this);
	}
    }
1059945
public function setStatus($status)
    {
        if (!$status instanceof Status) {
            $status = new Status($status);
        }
        $this->status = $status;
    }
1044313
private function updateStatus()
    {
        if (isset($this->inputs['status']) && trim($this->inputs['status']) !== '') {
            $this->connectToWhatsApp();
            $this->wa->sendStatusUpdate($this->inputs['status']);
            exit(json_encode([
                'success'  => true,
                'data'     => "<br />Your status was updated to - <b>{$this->inputs['status']}</b>",
                'messages' => $this->messages,
            ]));
        } else {
            exit(json_encode([
                'success'  => false,
                'errormsg' => 'There was no text in the submitted status box!',
            ]));
        }
    }
723193
@Override
    public synchronized void update(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
        if (newStats == null)
            return;

        StatsImpl newStats1 = (StatsImpl) newStats;
        // check if they are same Stats
        if (!name.equals(newStats1.getName()) || type != newStats1.getType())
            return;

        myupdate(newStats1, keepOld, recursiveUpdate);
    }
130308
public final void remove(MtasSolrStatus status) {
    Objects.requireNonNull(status);
    data.remove(status);
    index.remove(status.key());
  }
861701
public static void status(String statusText) {
        try {
            getEventManager().fireLocalEvent(STATUS_EVENT, statusText == null ? "" : statusText);
        } catch (Throwable e) {
            log.error(e);
        }
    }
546191
public synchronized void setInstanceStatus(InstanceStatus status) {
        InstanceStatus next = instanceStatusMapper.map(status);
        if (next == null) {
            return;
        }

        InstanceStatus prev = instanceInfo.setStatus(next);
        if (prev != null) {
            for (StatusChangeListener listener : listeners.values()) {
                try {
                    listener.notify(new StatusChangeEvent(prev, next));
                } catch (Exception e) {
                    logger.warn("failed to notify listener: {}", listener.getId(), e);
                }
            }
        }
    }