Examples of Status


Examples of org.apache.syncope.console.commons.StatusUtils.Status

        syncope.setResourceName("Syncope");
        if (attributable instanceof UserTO) {
            UserTO userTO = (UserTO) attributable;
            syncope.setAccountLink(userTO.getUsername());

            Status syncopeStatus = Status.UNDEFINED;
            if (userTO.getStatus() != null) {
                try {
                    syncopeStatus = Status.valueOf(userTO.getStatus().toUpperCase());
                } catch (IllegalArgumentException e) {
                    LOG.warn("Unexpected status found: {}", userTO.getStatus());
View Full Code Here

Examples of org.apache.syncope.console.commons.status.Status

        final StatusBean syncope = new StatusBean(subject, "syncope");

        if (subject instanceof UserTO) {
            syncope.setAccountLink(((UserTO) subject).getUsername());

            Status syncopeStatus = Status.UNDEFINED;
            if (((UserTO) subject).getStatus() != null) {
                try {
                    syncopeStatus = Status.valueOf(((UserTO) subject).getStatus().toUpperCase());
                } catch (IllegalArgumentException e) {
                    LOG.warn("Unexpected status found: {}", ((UserTO) subject).getStatus(), e);
View Full Code Here

Examples of org.apache.tapestry.ioc.services.Status

        // One pass to find the longest name, and to count the unrealized services.

        for (ServiceActivity activity : serviceActivity)
        {
            Status status = activity.getStatus();

            longest = Math.max(longest, activity.getServiceId().length());

            if (status == Status.DEFINED || status == Status.VIRTUAL) unrealized++;
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.Status

        // One pass to find the longest name, and to count the unrealized services.

        for (ServiceActivity activity : serviceActivity)
        {
            Status status = activity.getStatus();

            longest = Math.max(longest, activity.getServiceId().length());

            if (status == Status.DEFINED || status == Status.VIRTUAL) unrealized++;
View Full Code Here

Examples of org.apache.tuscany.sca.binding.comet.runtime.callback.Status

  private CopyOnWriteArrayList<CometCallback> clients = new CopyOnWriteArrayList<CometCallback>();

  @Override
  public void postMessage(String user, String message) {
    for (CometCallback callback : new ArrayList<CometCallback>(clients)) {
      Status status = callback.sendMessage(user + ": " + message);
      if (status == Status.CLIENT_DISCONNECTED) {
        clients.remove(callback);
      }
    }
  }
View Full Code Here

Examples of org.apache.tuscany.sca.node.manager.Status

        for(Component component : domainComposite.getComponents()) {
            for(Service service : component.getServices()) {
                Interface interfaceContract = service.getInterfaceContract().getInterface();
                if(Manageable.class.getName().equals(interfaceContract.toString())) {

                    Status status = new Status();
                    status.setName(component.getName());
                    status.setUri(service.getBindings().get(0).getURI());
                   
                    try {
                        String serviceName = component.getName() + "/" + service.getName();
                        Manageable serviceInstance = node.getService(Manageable.class, serviceName);
                        Timer t = new Timer();
                        serviceInstance.isAlive();
                        status.setExecution(t.elapsed(TimeUnit.MILLISECONDS));

                        if(status.getExecution() < warningThreshold) {
                            status.setStatus(Status.OK);
                        }else if(status.getExecution() > warningThreshold) {
                            status.setStatus(Status.WARNING);
                        }else if(status.getExecution() > criticalThreshold) {
                            status.setStatus(Status.CRITICAL);
                        } else {
                            status.setStatus(Status.UNAVAILABLE);
                        }
                    } catch (Exception e) {
                        status.setStatus(Status.UNAVAILABLE);
                        status.setStatusMessage(e.getMessage());
                    }
                   
                    statuses.add(status);
                }
            }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.stanzas.Status

       
        if(existingOccupant.getJid().equals(newOccupant.getJid())) {
           
            if(room.getRoomTypes().contains(RoomType.NonAnonymous)) {
                // notify the user that this is a non-anonymous room
                inner.add(new Status(StatusCode.ROOM_NON_ANONYMOUS));
            }
           
            // send status to indicate that this is the users own presence
            inner.add(new Status(StatusCode.OWN_PRESENCE));
        }
        builder.addPreparedElement(new X(NamespaceURIs.XEP0045_MUC_USER, inner));

        logger.debug("Room presence from {} sent to {}", roomAndNewUserNick, existingOccupant);
        relayStanza(existingOccupant.getJid(), builder.build(), serverRuntimeContext);
View Full Code Here

Examples of org.brixcms.registry.ExtensionPointRegistry.Callback.Status

    }

    public synchronized <T> void lookupCollection(ExtensionPoint<T> point, Callback<T> callback) {
        Collection<T> extensions = lookupCollection(point);
        for (T extension : extensions) {
            Status status = callback.processExtension(extension);
            if (status == Status.STOP) {
                break;
            }
        }
    }
View Full Code Here

Examples of org.candlepin.model.Status

    private Status statusUndef;
    private Status statusDb;

    @Before
    public void init() {
        status = new Status(Boolean.TRUE, "1.0", "2",
            Boolean.TRUE, "2.0", Rules.RulesSourceEnum.DEFAULT);
        statusUndef = new Status(Boolean.TRUE, "1.0", "2",
            Boolean.TRUE, "2.0", Rules.RulesSourceEnum.UNDEFINED);
        statusDb = new Status(Boolean.TRUE, "1.0", "2",
            Boolean.TRUE, "2.0", Rules.RulesSourceEnum.DATABASE);
    }
View Full Code Here

Examples of org.chromattic.api.Status

    //
    DomainSession session = parentCtx.getSession();

    //
    ObjectContext addedCtx = session.unwrap(addedElement);
    Status status = addedCtx.getStatus();

    //
    if (status == Status.TRANSIENT) {
      parentCtx.addChild(addedCtx);
    } else if (status == Status.PERSISTENT) {
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.