Review Board 1.7.22


Rename o.a.h.h.regionserver.wal.WALObserver to o.a.h.h.regionserver.wal.WALActionsListener

Review Request #1317 - Created Aug. 8, 2011 and updated

Ted Yu
TRUNK
HBASE-4152
Reviewers
hbase
hbase
Rename o.a.h.h.regionserver.wal.WALObserver to o.a.h.h.regionserver.wal.WALActionsListener 
Unit test suite.
/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Revision 1154588 New Change
[20] 114 lines
[+20]
115
import org.apache.hadoop.hbase.regionserver.handler.OpenMetaHandler;
115
import org.apache.hadoop.hbase.regionserver.handler.OpenMetaHandler;
116
import org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler;
116
import org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler;
117
import org.apache.hadoop.hbase.regionserver.handler.OpenRootHandler;
117
import org.apache.hadoop.hbase.regionserver.handler.OpenRootHandler;
118
import org.apache.hadoop.hbase.regionserver.metrics.RegionServerMetrics;
118
import org.apache.hadoop.hbase.regionserver.metrics.RegionServerMetrics;
119
import org.apache.hadoop.hbase.regionserver.wal.HLog;
119
import org.apache.hadoop.hbase.regionserver.wal.HLog;
120
import org.apache.hadoop.hbase.regionserver.wal.WALObserver;
120
import org.apache.hadoop.hbase.regionserver.wal.WALActionsListener;
121
import org.apache.hadoop.hbase.regionserver.RegionOpeningState;
121
import org.apache.hadoop.hbase.regionserver.RegionOpeningState;
122
import org.apache.hadoop.hbase.replication.regionserver.Replication;
122
import org.apache.hadoop.hbase.replication.regionserver.Replication;
123
import org.apache.hadoop.hbase.security.User;
123
import org.apache.hadoop.hbase.security.User;
124
import org.apache.hadoop.hbase.util.Bytes;
124
import org.apache.hadoop.hbase.util.Bytes;
125
import org.apache.hadoop.hbase.util.CompressionTest;
125
import org.apache.hadoop.hbase.util.CompressionTest;
[+20] [20] 1039 lines
[+20] [+] protected HLog instantiateHLog(Path logdir, Path oldLogDir) throws IOException {
1165
      getWALActionListeners(), this.serverNameFromMasterPOV.toString());
1165
      getWALActionListeners(), this.serverNameFromMasterPOV.toString());
1166
  }
1166
  }
1167

    
   
1167

   
1168
  /**
1168
  /**
1169
   * Called by {@link #instantiateHLog(Path, Path)} setting up WAL instance.
1169
   * Called by {@link #instantiateHLog(Path, Path)} setting up WAL instance.
1170
   * Add any {@link WALObserver}s you want inserted before WAL startup.
1170
   * Add any {@link WALActionsListener}s you want inserted before WAL startup.
1171
   * @return List of WALActionsListener that will be passed in to
1171
   * @return List of WALActionsListener that will be passed in to
1172
   * {@link HLog} on construction.
1172
   * {@link HLog} on construction.
1173
   */
1173
   */
1174
  protected List<WALObserver> getWALActionListeners() {
1174
  protected List<WALActionsListener> getWALActionListeners() {
1175
    List<WALObserver> listeners = new ArrayList<WALObserver>();
1175
    List<WALActionsListener> listeners = new ArrayList<WALActionsListener>();
1176
    // Log roller.
1176
    // Log roller.
1177
    this.hlogRoller = new LogRoller(this, this);
1177
    this.hlogRoller = new LogRoller(this, this);
1178
    listeners.add(this.hlogRoller);
1178
    listeners.add(this.hlogRoller);
1179
    if (this.replicationHandler != null) {
1179
    if (this.replicationHandler != null) {
1180
      // Replication handler is an implementation of WALActionsListener.
1180
      // Replication handler is an implementation of WALActionsListener.
[+20] [20] 1855 lines
/src/main/java/org/apache/hadoop/hbase/regionserver/LogRoller.java
Revision 1154588 New Change
 
/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java
Revision 1154588 New Change
 
/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALActionsListener.java
New File
 
/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALObserver.java
Revision 1154588 New Change
 
/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
Revision 1154588 New Change
 
/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java
Revision 1154588 New Change
 
/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestWALActionsListener.java
New File
 
/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestWALObserver.java
Revision 1154588 New Change
 
/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManager.java
Revision 1154588 New Change
 
  1. /src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java: Loading...
  2. /src/main/java/org/apache/hadoop/hbase/regionserver/LogRoller.java: Loading...
  3. /src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java: Loading...
  4. /src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALActionsListener.java: Loading...
  5. /src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALObserver.java: Loading...
  6. /src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java: Loading...
  7. /src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java: Loading...
  8. /src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestWALActionsListener.java: Loading...
  9. /src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestWALObserver.java: Loading...
  10. /src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManager.java: Loading...