Package com.orientechnologies.orient.core.db.document

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open()


  public final class DocumentAdder implements Runnable {
    @Override
    public void run() {
      ODatabaseDocumentTx db = new ODatabaseDocumentTx(URL);
      db.open("admin", "admin");

      try {
        ODocument document = new ODocument();
        ORidBag ridBag = new ORidBag();
        document.field("ridBag", ridBag);
View Full Code Here


      final Random random = new Random();
      long addedRecords = 0;
      int retries = 0;

      ODatabaseDocumentTx db = new ODatabaseDocumentTx(URL);
      db.open("admin", "admin");

      final int defaultClusterId = db.getDefaultClusterId();
      latch.await();
      try {
        while (cont) {
View Full Code Here

      final Random random = new Random();
      long deletedRecords = 0;
      int retries = 0;

      ODatabaseDocumentTx db = new ODatabaseDocumentTx(URL);
      db.open("admin", "admin");

      final int defaultClusterId = db.getDefaultClusterId();
      latch.await();
      try {
        while (cont) {
View Full Code Here

    OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(false);

    final ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/demo");
    for (int i = 0; i < 1000; ++i) {
      System.out.println("Connecting " + i + "...");
      db.open("admin", "admin");
      db.query(new OSQLSynchQuery<Object>("select 1"));
//      try {
//        Thread.sleep(100);
//      } catch (InterruptedException e) {
//        e.printStackTrace();
View Full Code Here

    OGlobalConfiguration.setConfiguration(defaultsMap);

    ODatabaseDocumentTx database = new ODatabaseDocumentTx("plocal:/temp/databases/bulktest");
    if (database.exists())
      database.open("admin", "admin").drop();

    database.create();

    OSchema schema = database.getMetadata().getSchema();
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.