Examples of Status


Examples of com.google.gdata.data.projecthosting.Status

  public IssuesEntry createIssue(String project, String title, String content,
      Iterator<String> labels, String user) throws ServiceException, IOException {
    IssuesEntry entry = new IssuesEntry();
    entry.setTitle(new PlainTextConstruct(title));
    entry.setContent(new HtmlTextConstruct(content));
    entry.setStatus(new Status("New"));
    Owner owner = new Owner();
    owner.setUsername(new Username(user));

    Person author = new Person();
    author.setName(user);
View Full Code Here

Examples of com.kolakcc.loljclient.model.Status

  public void updateStatus(String status) {
    //TODO: totally editable messages
    Configuration.setStatus(status);
    Configuration.flushConfig();
    String statusXML = String.format("<body><level>99</level><profileIcon>28</profileIcon><wins>9001</wins><rankedWins>9001</rankedWins><statusMsg>%s</statusMsg></body>", status);
    Status selectedStatus = (Status) this.view.presenceComboBox.getSelectedItem();
    Mode presenceMode = Presence.Mode.chat;
    if (selectedStatus.getDisplay().equals("Away")) presenceMode = Presence.Mode.away;
    Presence newPresence = new Presence(Presence.Type.available,statusXML,1,presenceMode);
    XMPPWrapper.getConnection().sendPacket(newPresence);
  }
View Full Code Here

Examples of com.l2jfrozen.status.Status

    // Load telnet status
    if (Config.IS_TELNET_ENABLED)
    {
      try
      {
        _statusServer = new Status(ServerType.serverMode);
        _statusServer.start();
      }
      catch (IOException e)
      {
        _log.log(Level.WARNING, "Failed to start the Telnet Server. Reason: " + e.getMessage(), e);
View Full Code Here

Examples of com.linkedin.databus.core.DatabusComponentStatus.Status

    boolean delayTear = shouldDelayTearConnection(_currentState.getStateId());

    if ( ! delayTear )
    {
      tearConnection();
      Status currStatus = _status.getStatus();
      /*
       *  If it user - paused, then dont resume
       *  If not started, dont transition to pickServer (common to BootstrapPullThread)
       */
      if ((currStatus != Status.PAUSED&&
View Full Code Here

Examples of com.linkedin.restli.server.twitter.TwitterTestDataModels.Status

    // #1 Update on collection resource
    methodDescriptor = statusResourceModel.findMethod(ResourceMethod.UPDATE);
    statusResource = getMockResource(AsyncStatusCollectionResource.class);
    long id = eq(1L);
    Status status  =(Status)EasyMock.anyObject();
    statusResource.update(id, status, EasyMock.<Callback<UpdateResponse>> anyObject());
    EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
      @Override
      public Object answer() throws Throwable {
        @SuppressWarnings("unchecked")
View Full Code Here

Examples of com.nabalive.server.jabber.Status

    @Autowired
    ConnectionManager connectionManager;

    @Override
    public void register(String id, EventListener eventListener) {
        Status status = connectionManager.get(id);
        if(status == null){
            throw new IllegalArgumentException("id ["+id+"] is not found");
        }
        status.registerEvent(eventListener);
    }
View Full Code Here

Examples of com.ngdata.sep.tools.monitoring.ReplicationStatus.Status

            boolean noQueue = true;
            // Recovered queues disappear once finished, so definitely not finished as long as those are around
            if (replicationStatus.getRecoverdQueues().isEmpty()) {
                for (String peerId : replicationStatus.getPeers()) {
                    for (String server : replicationStatus.getServers(peerId)) {
                        Status status = replicationStatus.getStatus(peerId, server);
                        if (!(status.getHLogCount() == 1
                                /* sometimes it stays with two hlog files, with the second one 100% processed. */
                                || (status.getHLogCount() == 2 && Math.abs(status.getProgressOnCurrentHLog() - 1) < 0.000000001f))) {
                            noQueue = false;
                            break;
                        }
                    }
                }
            } else {
                log.debug("There are still recovered queues");
                noQueue = false;
            }

            // If no hlog files are queued (beyond the current one), wait until there is no replication activity
            // during MINIMAL_STABLE_STATUS_AGE, after which we assume replication is done
            // (there might also be no activity due to some other reason, e.g. that all peer servers are down and
            // hence that hbase can't replication anything, or that the processing of a batch of events takes longer
            // than the MINIMAL_STABLE_STATUS_AGE).
            if (noQueue) {
                log.debug("No hlog files queued, will check if replication status is stable");
                boolean statusStable = true;
                if (prevReplicationStatus != null) {
                    for (String peerId : replicationStatus.getPeers()) {
                        for (String server : replicationStatus.getServers(peerId)) {
                            Status status = replicationStatus.getStatus(peerId, server);
                            Status prevStatus = prevReplicationStatus.getStatus(peerId, server);
                            if (prevStatus == null) {
                                statusStable = false;
                                log.debug("No previous status for peer " + peerId + ", server " + server);
                                break;
                            }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.EvalResult.Status

   *
   * @param result the result of a script execution
   * @return the parsed result of a reply
   */
  private Object parseEvalReply(EvalResult result) {
    Status status = result.getStatus();

    switch (status) {
      case CANCELLED:
        return null;
      case EXCEPTION:
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.Status

    this.model = model;

    ToolBar bar = new ToolBar();
    bar.add(new FillToolItem());

    charCount = new Status(
        GWT.<StatusAppearance> create(BlueBoxStatusAppearance.class));
    charCount.setWidth(150);
    if (model.getContent() == null)
      charCount.setText(0 + " 个字符");
    else
      charCount.setText(model.getContent().length() + " 个字符");
    bar.add(charCount);

    bar.add(new LabelToolItem(" "));

    status = new Status(
        GWT.<StatusAppearance> create(BlueBoxStatusAppearance.class));
    status.setText("已保存");
    status.setWidth(150);
    bar.add(status);
View Full Code Here

Examples of com.sequenceiq.cloudbreak.domain.Status

    @Override
    public void updateStatus(Long stackId, StatusRequest status) {
        Stack stack = stackRepository.findOne(stackId);
        MDCBuilder.buildMdcContext(stack);
        Status stackStatus = stack.getStatus();
        if (status.equals(StatusRequest.STARTED)) {
            if (!Status.STOPPED.equals(stackStatus)) {
                throw new BadRequestException(String.format("Cannot update the status of stack '%s' to STARTED, because it isn't in STOPPED state.", stackId));
            }
            stack.setStatus(Status.START_IN_PROGRESS);
            stackRepository.save(stack);
            LOGGER.info("Publishing {} event", ReactorConfig.STACK_STATUS_UPDATE_EVENT);
            reactor.notify(ReactorConfig.STACK_STATUS_UPDATE_EVENT,
                    Event.wrap(new StackStatusUpdateRequest(stack.getTemplate().cloudPlatform(), stack.getId(), status)));
        } else {
            Status clusterStatus = clusterRepository.findOneWithLists(stack.getCluster().getId()).getStatus();
            if (Status.STOP_IN_PROGRESS.equals(clusterStatus)) {
                stack.setStatus(Status.STOP_REQUESTED);
                stackRepository.save(stack);
            } else {
                if (!Status.AVAILABLE.equals(stackStatus)) {
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.