Examples of Status


Examples of org.apache.airavata.persistance.registry.jpa.model.Status

            switch (type) {
                case STATUS:
                    generator = new QueryGenerator(STATUS);
                    generator.setParameter(StatusConstants.TRANSFER_ID, name);
                    q = generator.selectQuery(em);
                    Status status = (Status) q.getSingleResult();
                    StatusResource statusResource = (StatusResource) Utils.getResource(ResourceType.STATUS, status);
                    em.getTransaction().commit();
                    em.close();
                    return statusResource;
                default:
View Full Code Here

Examples of org.apache.axis.client.async.Status

        call.setTimeout(new Integer(15 * 1000));
        call.setOperationName(new javax.xml.namespace.QName("capeconnect:GlobalWeather:StationInfo", "listCountries"));
        AsyncCall ac = new AsyncCall(call);
        IAsyncResult result = ac.invoke(new Object[]{});
        System.out.println("STARTED");
        Status status = null;
        while ((status = result.getStatus()) == Status.NONE) {
            System.out.print('.');
            Thread.sleep(50);
        }
        System.out.println("FINISHED");
View Full Code Here

Examples of org.apache.cocoon.rest.controller.response.Status

            if (methodDelegate != null) {
                return methodDelegate.execute(controller);
            }
        }

        return new Status(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
    }
View Full Code Here

Examples of org.apache.commons.scxml2.Status

    /**
     * Stores the current state machine configuration ({@link Status#getAllStates()}) in the system context.
     * @param scInstance the state machine instance holding the current configuration
     */
    public void setSystemAllStatesVariable(final SCInstance scInstance) {
        Status currentStatus = scInstance.getCurrentStatus();
        scInstance.getSystemContext().setLocal(SCXMLSystemContext.ALL_STATES_KEY, currentStatus.getAllStates());
    }
View Full Code Here

Examples of org.apache.felix.ipojo.extender.Status

     *
     * @return the declaration status.
     */
    public Status getStatus() {
        // We return an immutable object, created on the fly.
        return new Status() {
            final boolean m_bound = AbstractDeclaration.this.m_bound;
            final String m_message = AbstractDeclaration.this.m_message;
            final Throwable m_throwable = AbstractDeclaration.this.m_throwable;

            public boolean isBound() {
View Full Code Here

Examples of org.apache.flume.PollableSink.Status

      }
      txn.commit();
      txn.close();

      // execute sink to process the events
      Status satus = sink.process();
       
      // verify that the append returned backoff due to timeotu
      Assert.assertEquals(satus, Status.BACKOFF);
    }
View Full Code Here

Examples of org.apache.flume.PollableSource.Status

    kafkaServer.produce(topicName, "", "hello, world");
    kafkaServer.produce(topicName, "", "foo, bar");

    Thread.sleep(500L);

    Status status = kafkaSource.process();
    assertEquals(Status.READY, status);
    Assert.assertEquals("hello, world", new String(events.get(0).getBody(),
            Charsets.UTF_8));
    Assert.assertEquals("foo, bar", new String(events.get(1).getBody(),
            Charsets.UTF_8));
View Full Code Here

Examples of org.apache.flume.Sink.Status

      channel.put(e);
    }
    tx.commit();
    tx.close();
    int count = 0;
    Status status = Status.READY;
    while(status != Status.BACKOFF){
      count++;
      status = sink.process();
    }
    sink.stop();
View Full Code Here

Examples of org.apache.flume.source.avro.Status

   * @throws EventDeliveryException If there is a timeout or if Status != OK
   */
  private void waitForStatusOK(CallFuture<Status> callFuture,
      long timeout, TimeUnit tu) throws EventDeliveryException {
    try {
      Status status = callFuture.get(timeout, tu);
      if (status != Status.OK) {
        throw new EventDeliveryException(this + ": Avro RPC call returned " +
            "Status: " + status);
      }
    } catch (CancellationException ex) {
View Full Code Here

Examples of org.apache.flume.thrift.Status

    final ThriftFlumeEvent e) throws Exception {

    return callTimeoutPool.submit(new Callable<Void>() {
      @Override
      public Void call() throws Exception {
        Status status = client.client.append(e);
        if (status != Status.OK) {
          throw new EventDeliveryException("Failed to deliver events. Server " +
            "returned status : " + status.name());
        }
        return null;
      }
    });
  }
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.