Examples of complete()


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

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

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

  @Override
  public Event newEvent(String type, String name) {
View Full Code Here

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

      t.setStatus(Transaction.SUCCESS);
    } catch (Exception e) {
      Cat.logError(e);
      t.setStatus(e);
    } finally {
      t.complete();
    }
  }

  @Override
  public void enableLogging(Logger logger) {
View Full Code Here

Examples of com.dianping.cat.message.internal.DefaultEvent.complete()

    if (nameValuePairs != null && nameValuePairs.length() > 0) {
      event.addData(nameValuePairs);
    }
    event.setStatus(status);
    event.complete();
  }

  protected Transaction newTransaction(String type, String name) {
    DefaultMessageProducer cat = (DefaultMessageProducer) Cat.getProducer();
    Transaction transaction = cat.newTransaction(m_current, type, name);
View Full Code Here

Examples of com.dianping.cat.message.internal.DefaultTransaction.complete()

  private Transaction newTransaction(String type, String name, long timestamp, String status, int duration, String data) {
    DefaultTransaction transaction = new DefaultTransaction(type, name, null);

    transaction.setStatus(status);
    transaction.addData(data);
    transaction.complete();
    transaction.setTimestamp(timestamp);
    transaction.setDurationInMillis(duration);
    return transaction;
  }
View Full Code Here

Examples of com.flaptor.indextank.api.IndexEngineApi.complete()

        if (field == null || field.isEmpty()) {
            field = "text";
        }

        List<String> complete = api.complete(query, field);

        JSONObject json = new JSONObject();
        json.put("query", query);
        json.put("suggestions", complete);
View Full Code Here

Examples of com.google.api.client.extensions.auth.helpers.ThreeLeggedFlow.complete()

      flow.setHttpTransport(getHttpTransport());
      flow.setJsonFactory(getJsonFactory());

      // Complete the flow object with the token we got in our query parameters
      Credential c = flow.complete(completionCode);
      manager.makePersistent(c);
      manager.deletePersistent(flow);
      resp.sendRedirect(redirectUrl);
    } finally {
      manager.close();
View Full Code Here

Examples of com.google.api.explorer.client.history.EmbeddedHistoryItemView.complete()

    @Override
    public void finished(ApiRequest request, ApiResponse response, long startTime, long endTime) {
      super.finished(request, response, startTime, endTime);
      EmbeddedHistoryItemView historyItem = new EmbeddedHistoryItemView(request);
      historyItem.complete(response, endTime - startTime, JsonPrettifier.EXTERNAL_LINK_FACTORY);
      localView.showHistoryItem(historyItem);
    }
  }

  /**
 
View Full Code Here

Examples of com.lowagie.text.Table.complete()

            table = ((SimpleTable)element).createTable();
          } catch (BadElementException e) {
            throw new ExceptionConverter(e);
          }
              }
                table.complete();
                // start tag
                addTabs(indent);
                writeStart(HtmlTags.TABLE);
                writeMarkupAttributes(markup);
                os.write(SPACE);
View Full Code Here

Examples of com.ning.compress.Uncompressor.complete()

        } else { // otherwise, must use bulk operations?
            // TODO: currently we do not have other codecs
            throw new UnsupportedOperationException("No Uncompressor for compression type: "+_compression);
        }
        uncomp.feedCompressedData(copyBuffer, 0, inputLength);
        uncomp.complete();
    }

    /**
     * Method called in the complex case of having to read a large piece of
     * content, where source does not fit in the input buffer.
View Full Code Here

Examples of com.persistit.TransactionStatus.complete()

                    bucket.unlock();
                }
            }
        } catch (InterruptedException ie) {
            status.abort();
            status.complete(0);
            throw ie;
        }
        return status;
    }
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.