Examples of Status


Examples of org.jboss.aerogear.simplepush.protocol.Status

    @Override
    public RegisterResponse handleRegister(final RegisterMessage register, final String uaid) {
        final String channelId = register.getChannelId();
        final String endpointToken = generateEndpointToken(uaid, channelId);
        final boolean saved = store.saveChannel(new DefaultChannel(uaid, channelId, endpointToken));
        final Status status = saved ? new StatusImpl(200, "OK") : new StatusImpl(409, "Conflict: channeld [" + channelId + " is already in use");
        return new RegisterResponseImpl(channelId, status, makeEndpointUrl(endpointToken));
    }
View Full Code Here

Examples of org.jboss.arquillian.spi.TestResult.Status

    * @param result JUnit Test Run Result
    * @return The TestResult representation of the JUnit Result
    */
   private TestResult convertToTestResult(Result result)
   {
      Status status = Status.PASSED;
      Throwable throwable = null;
     
      if(result.getFailureCount() > 0)
      {
         status = Status.FAILED;
View Full Code Here

Examples of org.jboss.arquillian.test.spi.TestResult.Status

        takenResourceRegister.get().addTaken(video);

        TestResult testResult = event.getVideoMetaData().getTestResult();

        if (testResult != null) {
            Status status = testResult.getStatus();
            appendStatus(video, status);
            if (!status.equals(Status.FAILED) && configuration.get().getTakeOnlyOnFail()) {
                if (!video.getResource().getAbsoluteFile().delete()) {
                    System.out.println("video was not deleted: " + video.getResource().getAbsolutePath());
                }
                File directory = video.getResource().getParentFile();
                if (directory != null && directory.listFiles().length == 0) {
View Full Code Here

Examples of org.jboss.as.plugin.deployment.Deployment.Status

        // Execute before deployment commands
        if (beforeDeployment != null)
            beforeDeployment.execute(client);
        // Deploy the deployment
        getLog().debug("Executing deployment");
        final Status status = deployment.execute();
        // Execute after deployment commands
        if (afterDeployment != null)
            afterDeployment.execute(client);
        return status;
    }
View Full Code Here

Examples of org.jboss.cache.Region.Status

   {
      Region region = regionManager.getValidMarshallingRegion(fqn);

      if (region != null)
      {
         Status status = region.getStatus();
         if (status == Status.INACTIVATING || status == Status.INACTIVE)
         {
            if (log.isDebugEnabled())
            {
               throw new InactiveRegionException("Cannot unmarshall message for region " + fqn + ". This region is inactive.");
View Full Code Here

Examples of org.jboss.dna.graph.session.GraphSession.Status

                jcrProp = new JcrSingleValueProperty(SessionCache.this, jcrNode, dnaProp.getName());
            }
        }
        assert jcrProp != null;
        JcrPropertyPayload propPayload = new JcrPropertyPayload(definition.getId(), propertyType, jcrProp);
        Status status = existing != null ? Status.CHANGED : Status.NEW;
        return new GraphSession.PropertyInfo<JcrPropertyPayload>(dnaProp, definition.isMultiple(), status, propPayload);
    }
View Full Code Here

Examples of org.jboss.forge.shell.events.CommandExecuted.Status

                     .createCreationalContext(bean);
            if (context != null)
            {
               plugin = (Plugin) manager.getReference(bean, pluginType, context);

               Status status = Status.FAILURE;
               ClassLoader current = Thread.currentThread().getContextClassLoader();
               boolean vetoed = false;
               try
               {
                  Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
View Full Code Here

Examples of org.jboss.seam.cron.test.asynchronous.beans.Status

        assertNull(asynchBean.getStatusEvent());
        assertNull(asynchBean.getHaystackCount());
        String statusToSet = "blue";
        Future<Status> result = asynchBean.returnStatusInFuture(statusToSet);
        assertNotNull(result);
        Status resultStatus = result.get(4, TimeUnit.SECONDS);
        assertNotNull(resultStatus);
        assertNotNull(resultStatus.getDescription());
        assertEquals(statusToSet, resultStatus.getDescription());
        assertNull(asynchBean.getHaystackCount());
    }
View Full Code Here

Examples of org.jboss.seam.jms.example.statuswatcher.model.Status

    @Override
    public void onMessage(Message message) {
        Connection connection = null;
        try {
            ObjectMessage om = (ObjectMessage) message;
            Status status = (Status) om.getObject();
            status = manager.addStatusMessage(status);
            connection = connectionFactory.createConnection();
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            TopicPublisher publisher = ((TopicSession) session).createPublisher(statusTopic);
            ObjectMessage update = session.createObjectMessage(status);
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.ctx.Status

         if (selectedPolicy != null)
         {
            // we found a match before, so this is an error
            ArrayList<String> code = new ArrayList<String>();
            code.add(Status.STATUS_PROCESSING_ERROR);
            Status status = new Status(code, "too many applicable " + "top-level policies");
            return new PolicyFinderResult(status);
         }

         // this is the first match we've found, so remember it
         selectedPolicy = policySet;
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.