Examples of dump()


Examples of org.pcap4j.core.PcapDumper.dump()

      Packet packet = handle.getNextPacket();
      if (packet == null) {
        continue;
      }
      else {
        dumper.dump(packet, handle.getTimestampInts(), handle.getTimestampMicros());
        num++;
        if (num >= COUNT) {
          break;
        }
      }
View Full Code Here

Examples of org.raml.emitter.RamlEmitter.dump()

    @Test
    public void emitFullConfigFromRaml()
    {
        Raml raml = parseRaml("org/raml/full-config.yaml");
        RamlEmitter emitter = new RamlEmitter();
        String dumpFromRaml = emitter.dump(raml);
        verifyFullDump(raml, dumpFromRaml);
    }

    @Test
    public void emitFullConfigFromAst()
View Full Code Here

Examples of org.renjin.compiler.ir.tac.IRBodyBuilder.dump()

  @Test
  public void simple() {
    ExpressionVector ast = RParser.parseSource("x + sqrt(x * y)\n");
    IRBodyBuilder factory = new IRBodyBuilder(functionTable);
    IRBody ir = factory.build(ast);
    factory.dump( ast );
  }

  @Test
  public void sideEffects() {
    dump("1; y<-{sqrt(2);4}; launchMissile(3); 4");
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.dump()

      if (callKey.equalsIgnoreCase(Constants.CC_CMD_KILL)) {
        client.killSC();
        System.out.println("SC exit requested");
      } else if (callKey.equalsIgnoreCase(Constants.CC_CMD_DUMP)) {
        client.dump();
        System.out.println("SC dump requested");
        client.detach();
      } else if (callKey.equalsIgnoreCase(Constants.CC_CMD_CLEAR_CACHE)) {
        client.clearCache();
        System.out.println("Cache has been cleared");
View Full Code Here

Examples of org.serviceconnector.service.Service.dump()

  public void dump(XMLDumpWriter writer) throws Exception {
    writer.writeStartElement("services");
    Set<Entry<String, Service>> serviceEntries = this.registryMap.entrySet();
    for (Entry<String, Service> serviceEntry : serviceEntries) {
      Service service = serviceEntry.getValue();
      service.dump(writer);
    }
    writer.writeEndElement(); // end of services
  }
}
View Full Code Here

Examples of org.serviceconnector.service.Session.dump()

    writer.writeAttribute("sessionScheduler_activeCount", this.sessionScheduler.getActiveCount());

    Set<Entry<String, Session>> sessionEntries = this.registryMap.entrySet();
    for (Entry<String, Session> sessionEntry : sessionEntries) {
      Session session = sessionEntry.getValue();
      session.dump(writer);
    }
    writer.writeEndElement(); // end of sessions
  }
}
View Full Code Here

Examples of org.serviceconnector.service.Subscription.dump()

    writer.writeAttribute("subscriptionScheduler_activeCount", this.subscriptionScheduler.getActiveCount());

    Set<Entry<String, Subscription>> entries = this.registryMap.entrySet();
    for (Entry<String, Subscription> entry : entries) {
      Subscription subscriptions = entry.getValue();
      subscriptions.dump(writer);
    }
    writer.writeEndElement(); // end of subscriptions
  }
}
View Full Code Here

Examples of org.shiftone.cache.util.RingFifo.dump()

    public void testSimple()
    {

        RingFifo fifo = new RingFifo(5);

        assertEquals(",,,,", fifo.dump());
        fifo.enqueue("A");
        assertEquals("A", fifo.peek());
        assertEquals("A,,,,", fifo.dump());
        fifo.enqueue("B");
        assertEquals("A,B,,,", fifo.dump());
View Full Code Here

Examples of org.stringtree.http.MultipartForm.dump()

   
    public void testPut() throws IOException {
      MultipartForm form = new MultipartForm();
        form.put("first", new Document("primary"));
        form.put("second", new Document("secondary"));
System.err.println("posting " + form.dump());
        Document result = client.post(baseURL + "multi", form);
        assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
    }
   
    public void tearDown() {
View Full Code Here

Examples of org.tmatesoft.hg.internal.StreamLogFacility.dump()

  }
 
  private void testConsoleLog() {
    LogFacility fc = new StreamLogFacility(Debug, true, System.out);
    System.out.printf("isDebug: %s, isInfo:%s\n", fc.isDebug(), fc.getLevel() == Info);
    fc.dump(getClass(), Debug, "%d", 1);
    fc.dump(getClass(), Info, "%d\n", 2);
    fc.dump(getClass(), Warn, "%d\n", 3);
    fc.dump(getClass(), Error, "%d", 4);
    Exception ex = new Exception();
    fc.dump(getClass(), Debug, ex, "message");
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.