Examples of readEntry()


Examples of org.apache.bookkeeper.proto.BookieClient.readEntry()

            bc.readEntry(1, 12, recb, arc);
            arc.wait(1000);
            assertEquals(BookieProtocol.ENOENTRY, arc.rc);
        }
        synchronized(arc) {
            bc.readEntry(1, 13, recb, arc);
            arc.wait(1000);
            assertEquals(BookieProtocol.ENOENTRY, arc.rc);
        }
    }
    private ByteBuffer createByteBuffer(int i) {
View Full Code Here

Examples of org.apache.bookkeeper.proto.BookieClient.readEntry()

    @Test
    public void testNoLedger() throws Exception {
        ResultStruct arc = new ResultStruct();
        BookieClient bc = new BookieClient("127.0.0.1", port, 50000);
        synchronized(arc) {
            bc.readEntry(2, 13, recb, arc);
            arc.wait(1000);
            assertEquals(BookieProtocol.ENOLEDGER, arc.rc);
        }
    }
}
View Full Code Here

Examples of org.apache.olingo.odata2.core.ep.consumer.XmlEntityConsumer.readEntry()

  @Override
  public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,
      final EntityProviderReadProperties properties) throws EntityProviderException {
    XmlEntityConsumer xec = new XmlEntityConsumer();
    return xec.readEntry(entitySet, content, properties);
  }

  @Override
  public Map<String, Object> readProperty(final EdmProperty edmProperty, final InputStream content,
      final EntityProviderReadProperties properties) throws EntityProviderException {
View Full Code Here

Examples of org.geotools.data.shapefile.dbf.DbaseFileReader.readEntry()

            row[i] = dbfReader.readField(index);
        }
      }
      else
      {
        row = dbfReader.readEntry();
      }
      rowsList.add(row);
    }
   
   
View Full Code Here

Examples of org.nasutekds.server.util.LDIFReader.readEntry()

        while (true)
        {
          Entry e = null;
          try
          {
            e = reader.readEntry();
            if (e == null)
            {
              break;
            }
          }
View Full Code Here

Examples of org.onesocialweb.openfire.model.activity.PersistentActivityDomReader.readEntry()

            + " to " + toJID);
        final ActivityDomReader reader = new PersistentActivityDomReader();
        List<Element> items=(List<Element>) itemsElement.elements("item");
        if ((items!=null) && (items.size()!=0)){
          for (Element itemElement :items) {
            ActivityEntry activity = reader
            .readEntry(new ElementAdapter(itemElement
                .element("entry")));
            try {

              ActivityManager.getInstance().handleMessage(
View Full Code Here

Examples of org.onesocialweb.xml.dom.ActivityDomReader.readEntry()

            + " to " + toJID);
        final ActivityDomReader reader = new PersistentActivityDomReader();
        List<Element> items=(List<Element>) itemsElement.elements("item");
        if ((items!=null) && (items.size()!=0)){
          for (Element itemElement :items) {
            ActivityEntry activity = reader
            .readEntry(new ElementAdapter(itemElement
                .element("entry")));
            try {

              ActivityManager.getInstance().handleMessage(
View Full Code Here

Examples of org.openbel.framework.common.record.NamespaceRecordFile.readEntry()

            assertThat(record.getRecordCount(), is((long) i + 1));
        }

        // read namespace records
        // TODO assert the entry data
        NamespaceEntry entry5000 = record.readEntry(5000);
        assertThat(entry5000, is(notNullValue()));

        NamespaceEntry entry10000 = record.readEntry(10000);
        assertThat(entry10000, is(notNullValue()));
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.