Examples of complete()


Examples of com.arjuna.wst.BusinessActivityTerminator.complete()

            if (participant != null)
            {
                final String messageId = MessageId.getMessageId() ;
                try
                {
                    participant.complete() ;
                }
                catch (final FaultedException fe)
                {
                    final AddressingContext responseAddressingContext =
                        AddressingContext.createNotificationContext(addressingContext, messageId) ;
View Full Code Here

Examples of com.arjuna.wst.stub.BusinessActivityTerminatorStub.complete()

            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
           
          terminatorStub.complete();
      }
      catch (SystemException ex)
      {
          throw ex;
      }
View Full Code Here

Examples of com.arjuna.wst11.BusinessActivityTerminator.complete()

                W3CEndpointReference endpoint = participant.getEndpoint();

                final String messageId = MessageId.getMessageId() ;
                try
                {
                    participant.complete() ;
                }
                catch (final FaultedException fe)
                {
                    final AddressingProperties responseAddressingProperties = AddressingHelper.createNotificationContext(messageId) ;
                    TerminationParticipantClient.getClient().sendFaulted(endpoint, responseAddressingProperties, instanceIdentifier) ;
View Full Code Here

Examples of com.arjuna.wst11.stub.BusinessActivityTerminatorStub.complete()

            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.complete();
      }
      catch (SystemException ex)
      {
          throw ex;
      }
View Full Code Here

Examples of com.asakusafw.windgate.core.session.SessionMirror.complete()

    @Test
    public void getIds() throws Exception {
        SessionMirror session1 = provider.create("testing1");
        session1.close();
        SessionMirror session2 = provider.create("testing2");
        session2.complete();
        SessionMirror session3 = provider.create("testing3");
        session3.close();

        List<String> all = new ArrayList<String>(provider.getCreatedIds());
        assertThat(all, hasItems("testing1", "testing3"));
View Full Code Here

Examples of com.caucho.network.listen.AsyncController.complete()

    AsyncController cometController = _cometController;
   
    boolean isSuspend = _tcpConnection.isCometSuspend();

    if (cometController != null) {
      cometController.complete();
    }

    // TCK:
    // XXX: should be on completing thread.
    if (! isSuspend) {
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.complete()

    UpdateableInt update = new UpdateableInt();
    update.fromBytes(masterPrc.fetch(workerOne, 1));
    assertEquals(Integer.valueOf(200), update.get());
   
    // Complete
    masterPrc.complete(workerOne, progress);
    masterPrc.error(workerTwo, "An error occurred");
   
    // Shutdown, expect return code of 1, because we should have one failure
    assertEquals(new Integer(1), master.get());
  }
View Full Code Here

Examples of com.dianping.cat.message.Event.complete()

  public void sendEvent() throws Exception {
    for (int i = 0; i < 100; i++) {
      Event t = Cat.getProducer().newEvent("Test", "Test");

      t.addData("key and value");
      t.complete();
    }
    Thread.sleep(1000);
  }

  @Test
View Full Code Here

Examples of com.dianping.cat.message.Heartbeat.complete()

  public void logHeartbeat(String type, String name, String status, String nameValuePairs) {
    Heartbeat heartbeat = newHeartbeat(type, name);

    heartbeat.addData(nameValuePairs);
    heartbeat.setStatus(status);
    heartbeat.complete();
  }

  @Override
  public void logMetric(String name, String status, String nameValuePairs) {
    String type = "";
View Full Code Here

Examples of com.dianping.cat.message.Metric.complete()

    if (nameValuePairs != null && nameValuePairs.length() > 0) {
      metric.addData(nameValuePairs);
    }

    metric.setStatus(status);
    metric.complete();
  }

  @Override
  public void logTrace(String type, String name) {
    logTrace(type, name, Message.SUCCESS, 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.