Examples of Status


Examples of ch.rakudave.jnetmap.status.Status

    this.vendor = vendor;
  }

  @Override
  public void updateStatus() {
    Status newStatus = Status.UNKNOWN;
    for (NetworkIF i : interfaces) {
      i.updateStatus();
      if (newStatus.compareTo(i.getStatus()) > 0 && !(i instanceof LogicalIF)) newStatus = i.getStatus();
    }
    if (!status.equals(newStatus)) {
      status = newStatus;
      notifyListeners(new DeviceEvent(this, DeviceEvent.Type.STATUS_CHANGED));
    }
View Full Code Here

Examples of cn.com.byd.compose.beans.Status

    List<? super Object> items = modules.getItems();
    if (items == null || items.isEmpty()) {
      return;
    }
    int idx = 0;
    Status status = modules.getStatus();
    status.setTotal(items.size());
    for (Object obj : items) {
      status.setIndex(idx++);
      //保存临时的变量
      methodContext.put(modules.getItemProperty(), obj);
      // 保存临时变量的状态
      methodContext.put(modules.getStatusId(), status);
      runCurrentModules(modules.getCurrentModules(), methodContext);
View Full Code Here

Examples of com.adahas.tools.jmxeval.response.Status

   * @see Element#process(Context)
   */
  @Override
  public void process(final Context context) throws EvalException {
   
    Status status;
   
    final Object attributeValue = context.getVar(var);
    if (attributeValue == null) {
      status = Status.UNKNOWN;
    } else {
View Full Code Here

Examples of com.alexecollins.vbox.core.task.Status

* @since 3.0.0
*/
public class StatusMojo extends AbstractVBoxesMojo {
  @Override
  protected void execute(VBox box) throws Exception {
    getLog().info(new Status(box).call());
  }
View Full Code Here

Examples of com.alibaba.dubbo.common.status.Status

public class ThreadPoolStatusChecker implements StatusChecker {

    public Status check() {
        Collection<ExchangeServer> servers = DubboProtocol.getDubboProtocol().getServers();
        if (servers == null || servers.size() == 0) {
            return new Status(Status.Level.UNKNOWN);
        }
        for (Server server : servers) {
            if (server instanceof HeaderExchangeServer) {
                HeaderExchangeServer exchanger = (HeaderExchangeServer) server;
                server = exchanger.getServer();
            }
            if (server instanceof AbstractPeer) {
              ChannelHandler handler = ((AbstractPeer)server).getDelegateHandler();
              if (handler instanceof WrappedChannelHandler) {
                    Executor executor = ((WrappedChannelHandler) handler).getExecutor();
                    if (executor instanceof ThreadPoolExecutor) {
                        ThreadPoolExecutor tp = (ThreadPoolExecutor)executor;
                        boolean ok = tp.getActiveCount() < tp.getMaximumPoolSize() - 1;
                        return new Status(ok ? Status.Level.OK : Status.Level.WARN,
                                "max:" + tp.getMaximumPoolSize()
                                + ",core:" + tp.getCorePoolSize()
                                + ",largest:" + tp.getLargestPoolSize()
                                + ",active:" + tp.getActiveCount()
                                + ",task:" + tp.getTaskCount());
                    }
                }
            }
        }
        return new Status(Status.Level.UNKNOWN);
    }
View Full Code Here

Examples of com.alibaba.wasp.protobuf.generated.RPCProtos.RpcResponseHeader.Status

        // When the stream is closed, protobuf doesn't raise an EOFException,
        // instead, it returns a null message object.
        throw new EOFException();
      }

      Status status = response.getStatus();
      if (status == Status.SUCCESS) {
        Message rpcResponseType;
        try {
          rpcResponseType = ProtobufRpcEngine.Invoker
              .getReturnProtoType(ProtobufRpcEngine.Server.getMethod(protocol,
View Full Code Here

Examples of com.almende.eve.entity.activity.Status

      // there are solutions. yippie!
      Weight solution = solutions.get(0);
      if (activityInterval == null ||
          !solution.getInterval().equals(activityInterval)) {
        // interval is changed, save new interval
        Status status = activity.withStatus();
        status.setStart(solution.getStart().toString());
        status.setEnd(solution.getEnd().toString());
        status.setActivityStatus(Status.ACTIVITY_STATUS.planned);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info("Activity replanned at " + solution.toString()); // TODO: cleanup logging
        try {
          // TODO: cleanup
          logger.info("Replanned activity: " + JOM.getInstance().writeValueAsString(activity));
        } catch (Exception e) {}
        return true;
      }
      else {
        // planning did not change. nothing to do.
      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
View Full Code Here

Examples of com.amazon.s3.Status

    return request;
  }
 
  private DeleteBucketResponse toDeleteBucketResponse(S3Response engineResponse) {
    DeleteBucketResponse response = new DeleteBucketResponse();
    Status status = new Status();
    status.setCode(engineResponse.getResultCode());
    status.setDescription(engineResponse.getResultDescription());
    response.setDeleteBucketResponse(status);
    return response;
  }
View Full Code Here

Examples of com.amazon.s3.client.AmazonS3Stub.Status

        request.setBucket(args[1]);
        request.setSignature("TODO");
        request.setTimestamp(Calendar.getInstance());
       
        DeleteBucketResponse response = serviceStub.deleteBucket(request);
        Status status = response.getDeleteBucketResponse();
        if(status.getCode() == 200) {
          System.out.println("Bucket " + args[1] + " has been deleted successfully");
        } else {
          System.out.println("Unable to delete bucket " + args[1] + " - " + status.getDescription());
        }
      } catch(Exception e) {
        System.out.println("Failed to execute bucket-delete due to " + e.getMessage());
      }
  }
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.Status

     * @param sdbc         die ServerDBControl
     * @param clientThread
     */
    public synchronized void register(ServerDBControl sdbc, ClientThread clientThread) {
        if (!sdbcs.containsKey(sdbc)) {
            inform(new Status(sdbc.getOwner().getId(), true));
            sdbcs.put(sdbc, clientThread);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.