Examples of submit()


Examples of com.cloudera.flume.util.AdminRPCThrift.submit()

    server.serve();

    AdminRPC client = new AdminRPCThrift("localhost", 56789);
    LOG.info("Connected to test master");

    long submit = client.submit(new Command(""));
    Assert.assertEquals("Expected response was 42, got " + submit, submit, 42);

    boolean succ = client.isSuccess(42);
    Assert.assertEquals("Expected response was false, got " + succ, succ, false);
View Full Code Here

Examples of com.cloudhopper.smpp.SmppSession.submit()

            submit0.setSourceAddress(new Address((byte)0x03, (byte)0x00, "40404"));
            submit0.setDestAddress(new Address((byte)0x01, (byte)0x01, "44555519205"));
            submit0.setShortMessage(textBytes);

            SubmitSmResp submitResp = session0.submit(submit0, 10000);
           
           
            logger.info("sendWindow.size: {}", session0.getSendWindow().getSize());
           
            System.out.println("Press any key to unbind and close sessions");
View Full Code Here

Examples of com.codahale.metrics.InstrumentedExecutorService.submit()

    protected void shutDown() throws Exception {
        LOG.debug("Stopping BufferSynchronizerService");
        if (indexerAvailable && cluster.isConnectedAndHealthy()) {
            final ExecutorService executorService = new InstrumentedExecutorService(Executors.newFixedThreadPool(2), metricRegistry);

            executorService.submit(new Runnable() {
                @Override
                public void run() {
                    bufferSynchronizer.waitForEmptyBuffers(configuration.getShutdownTimeout(), TimeUnit.MILLISECONDS);
                }
            });
View Full Code Here

Examples of com.commander4j.messages.OutgoingDespatchConfirmation.submit()

            }

            if (transactionType.equals("Despatch Confirmation"))
            {
              OutgoingDespatchConfirmation odc = new OutgoingDespatchConfirmation(Common.selectedHostID, Common.sessionID);
              odc.submit(Long.valueOf(messageRef));
              errorMessage.setText(odc.getErrorMessage());
              odc = null;
            }

            if (transactionType.equals("Despatch Pre Advice"))
View Full Code Here

Examples of com.commander4j.messages.OutgoingDespatchPreAdvice.submit()

            }

            if (transactionType.equals("Despatch Pre Advice"))
            {
              OutgoingDespatchPreAdvice opa = new OutgoingDespatchPreAdvice(Common.selectedHostID, Common.sessionID);
              opa.submit(Long.valueOf(messageRef));
              errorMessage.setText(opa.getErrorMessage());
              opa = null;
            }

            if (transactionType.equals("Equipment Tracking"))
View Full Code Here

Examples of com.commander4j.messages.OutgoingEquipmentTracking.submit()

            }

            if (transactionType.equals("Equipment Tracking"))
            {
              OutgoingEquipmentTracking oet = new OutgoingEquipmentTracking(Common.selectedHostID, Common.sessionID);
              oet.submit(Long.valueOf(messageRef));
              errorMessage.setText(oet.getErrorMessage());
              oet = null;
            }
          }
View Full Code Here

Examples of com.commander4j.messages.OutgoingLabelData.submit()

  }
 
  public void sendMessage()
  {
    OutgoingLabelData old = new OutgoingLabelData(getHostID(),getSessionID());
    old.submit(getUniqueID());
  }
 
  public boolean create()
  {
View Full Code Here

Examples of com.commander4j.messages.OutgoingPalletDelete.submit()

          if (txn > 0)
          {
            if (getLocationObj().isPalletDeleteMessageRequired() == true)
            {
              OutgoingPalletDelete opsc = new OutgoingPalletDelete(getHostID(), getSessionID());
              opsc.submit(txn);
            } else
            {
              logger.debug("Pallet Delete Message Suppressed for Location " + getLocationObj().getLocationID());
            }
          }
View Full Code Here

Examples of com.commander4j.messages.OutgoingPalletSplit.submit()

          if (txn > 0)
          {
            if (getLocationObj().isPalletSplitMessageRequired() == true)
            {
              OutgoingPalletSplit ops = new OutgoingPalletSplit(getHostID(), getSessionID());
              ops.submit(txn);
            } else
            {
              logger.debug("Pallet Split Message Suppressed for Location " + getLocationObj().getLocationID());
            }
          }
View Full Code Here

Examples of com.commander4j.messages.OutgoingPalletStatusChange.submit()

        if (txn > 0)
        {
          if (getLocationObj().isStatusChangeMessageRequired() == true)
          {
            OutgoingPalletStatusChange opsc = new OutgoingPalletStatusChange(getHostID(), getSessionID());
            opsc.submit(txn);
          } else
          {
            logger.debug("Pallet Status Message Suppressed for Location " + getLocationObj().getLocationID());
          }
        }
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.