org.apache.derby.impl.services.net.receiver
Class LogReceiver

java.lang.Object
  extended byorg.apache.derby.impl.services.net.receiver.LogReceiver

public class LogReceiver
extends java.lang.Object

The LogReceiver is a simple process receiving log records and storing these on disk at regular intervals.

Author:
Egil S¿rensen

Method Summary
static LogReceiver getInstance()
           
 LogicalLog getLog()
          Get the active log from the LogReceiver
 int getNextLsn()
          Get the next lsn from the active log
 void receive(LogicalLog newLog)
          Receive an incoming log and hand it to HotStandbyController
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogReceiver getInstance()

receive

public void receive(LogicalLog newLog)
Receive an incoming log and hand it to HotStandbyController

Parameters:
newLog - The received log

getLog

public LogicalLog getLog()
Get the active log from the LogReceiver

Returns:
The active log

getNextLsn

public int getNextLsn()
Get the next lsn from the active log

Returns:
The next lsn