Examples of PhysicalPartitionKey


Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

    }

    StatsCollectors<DbusEventsStatisticsCollector> statsColl = createStats(pnames);

    PhysicalPartitionKey[] pkeys =
      {new PhysicalPartitionKey(p[0]),
       new PhysicalPartitionKey(p[1]),
       new PhysicalPartitionKey(p[2])};

    CheckpointMult cpMult = new CheckpointMult();
    for (int i =0; i < 3; ++i)
    {
      Checkpoint cp = new Checkpoint();
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

    }

    StatsCollectors<DbusEventsStatisticsCollector> statsColl = createStats(pnames);

    PhysicalPartitionKey[] pkeys =
      {new PhysicalPartitionKey(p[0])
      };

    CheckpointMult cpMult = new CheckpointMult();
    Checkpoint cp = new Checkpoint();
    cp.setFlexible();
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

    }

    StatsCollectors<DbusEventsStatisticsCollector> statsColl = createStats(pnames);

    PhysicalPartitionKey[] pkeys =
      {new PhysicalPartitionKey(p[0]),
       new PhysicalPartitionKey(p[1]),
       new PhysicalPartitionKey(p[2])};

    CheckpointMult cpMult = new CheckpointMult();
    for (int i =0; i < 3; ++i)
    {
      Checkpoint cp = new Checkpoint();
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

    log.info("start");

    TestSetup t = new TestSetup();

    PhysicalPartition pp100 = new PhysicalPartition(100, "multBufferTest1");
    PhysicalPartitionKey pk1 = new PhysicalPartitionKey(pp100);
    PhysicalPartition pp101 = new PhysicalPartition(101, "multBufferTest2");
    PhysicalPartitionKey pk2 = new PhysicalPartitionKey(pp101);

    //generate events in pp100
    byte [] schema = "abcdefghijklmnop".getBytes(Charset.defaultCharset());
    DbusEventBufferAppendable buf100 =
        t._eventBuffer.getDbusEventBufferAppendable(pp100);
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

    Collection<PhysicalPartitionKey> phyPartitions = new ArrayList<PhysicalPartitionKey>();
    DbusEventBufferMult db = new DbusEventBufferMult();
    DbusEventBufferMult.DbusEventBufferBatchReader dbr = db.new DbusEventBufferBatchReader(cp, phyPartitions, null);

    // Return true only once if streamFromLatest == true
    PhysicalPartitionKey pk = new PhysicalPartitionKey();
    Set<PhysicalPartitionKey> sls = new HashSet<PhysicalPartitionKey>();
    boolean streamFromLatestScn = true;

    // The set is initially empty - meaning none of the partitions have been served
    Assert.assertTrue(dbr.computeStreamFromLatestScnForPartition(pk, sls, streamFromLatestScn));
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

          {
            ppartKeys = _eventBuffer.getAllPhysicalPartitionKeys(); break;
          }
          else
          {
            ppartKeys.add(new PhysicalPartitionKey(ppart));
          }
        }
      }
      // TODO
      // The following if statement is a very conservative one just to make sure that there are
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventBufferMult.PhysicalPartitionKey

        PhysicalPartition pp = dBuf.getPhysicalPartition();
        if (pp.getName().equals(dbName))
        {
          dBuf.closeBuffer(false);
          dBuf.removeMMapFiles();
          PhysicalPartitionKey pKey = new PhysicalPartitionKey(pp);
          eventMult.removeBuffer(pKey, null);
        }
      }
    eventMult.deallocateRemovedBuffers(true);
      return;
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.