Examples of MaxSCNReaderWriter


Examples of com.linkedin.databus2.core.seq.MaxSCNReaderWriter

            .andReturn(vs)
            .anyTimes();
    EasyMock.expect(srs.fetchLatestVersionedSchemaBySourceName(null)).andReturn(vs);

    // mock for MaxSCNReadWriter
    MaxSCNReaderWriter mscn = EasyMock.createMock(MaxSCNReaderWriter.class);
    EasyMock.expect(mscn.getMaxScn()).andReturn((long) -2).atLeastOnce();
    mscn.saveMaxScn(EasyMock.anyLong());
    EasyMock.expectLastCall().anyTimes();
    EasyMock.replay(mscn);
    EasyMock.replay(srs);

    int totalTransWritten = 0;
View Full Code Here

Examples of com.linkedin.databus2.core.seq.MaxSCNReaderWriter

    // Register a command to allow start/stop/status of the relay
    List<EventProducer> plist = new ArrayList<EventProducer>();

    PhysicalPartition pPartition = pConfig.getPhysicalPartition();
    MaxSCNReaderWriter maxScnReaderWriters = _maxScnReaderWriters
        .getOrCreateHandler(pPartition);
    LOG.info("Starting server container with maxScnReaderWriter:"
        + maxScnReaderWriters);

    // Get the event buffer
View Full Code Here

Examples of com.linkedin.databus2.core.seq.MaxSCNReaderWriter

  /** get maxScnReaderWriters given a physical source **/
  public MaxSCNReaderWriter getMaxSCNReaderWriter(PhysicalSourceStaticConfig pConfig)
  {
    try
    {
      MaxSCNReaderWriter maxScnReaderWriters = _maxScnReaderWriters
        .getOrCreateHandler(pConfig.getPhysicalPartition());
      return maxScnReaderWriters;
    }
    catch (DatabusException e)
    {
View Full Code Here

Examples of com.linkedin.databus2.core.seq.MaxSCNReaderWriter

  protected void resetSCN(DatabusRelayMain relay)
  {
    for (PhysicalSourceStaticConfig pConfig : relay.getPhysicalSources())
    {
      MaxSCNReaderWriter scnWriters = relay.getMaxSCNReaderWriter(pConfig);
      if (scnWriters != null)
      {
        try
        {
          scnWriters.saveMaxScn(0);
        }
        catch (DatabusException e)
        {
          LOG.error("Warn: cannot clear scn" + e);
        }
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.