Package com.google.enterprise.connector.traversal

Examples of com.google.enterprise.connector.traversal.FileSizeLimitInfo.maxDocumentSize()


    DocPusher dpusher =
        new DocPusher(feedConnection, dataSource, limit, dfc);
    Map<String, Object> config = getTestDocumentConfig();
    config.put(SpiConstants.PROPNAME_CONTENT,
               new HugeInputStream(limit.maxDocumentSize() - 10));
    Document bigDocument = ConnectorTestUtils.createSimpleDocument(config);
    assertEquals(PusherStatus.LOW_MEMORY, dpusher.take(bigDocument, null));
    dpusher.flush();
    assertFalse(feedConnection.isBacklogged());
  }
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.