Search in sources :

Example 1 with IReplicationThread

use of org.apache.asterix.common.replication.IReplicationThread in project asterixdb by apache.

the class LogBuffer method notifyReplicationTermination.

public void notifyReplicationTermination() {
    LogRecord logRecord = null;
    try {
        logRecord = (LogRecord) remoteJobsQ.take();
    } catch (InterruptedException e) {
    //ignore
    }
    logRecord.isFlushed(true);
    IReplicationThread replicationThread = logRecord.getReplicationThread();
    if (replicationThread != null) {
        replicationThread.notifyLogReplicationRequester(logRecord);
    }
}
Also used : ILogRecord(org.apache.asterix.common.transactions.ILogRecord) LogRecord(org.apache.asterix.common.transactions.LogRecord) IReplicationThread(org.apache.asterix.common.replication.IReplicationThread)

Aggregations

IReplicationThread (org.apache.asterix.common.replication.IReplicationThread)1 ILogRecord (org.apache.asterix.common.transactions.ILogRecord)1 LogRecord (org.apache.asterix.common.transactions.LogRecord)1