Package org.apache.hadoop.hdfs.server.namenode

Examples of org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream


  /**
   * Get underlying streams.
   */
  URLLogInputStream[] getStreams(EditLogInputStream str) throws Exception {
    // there is a single redundant stream
    RedundantEditLogInputStream relis = (RedundantEditLogInputStream) str;
    Field streamsF = RedundantEditLogInputStream.class.getDeclaredField("streams");
    streamsF.setAccessible(true);
    EditLogInputStream[] underlyingStreams = (EditLogInputStream[])streamsF.get(relis);
    URLLogInputStream[] urlStreams = new URLLogInputStream[underlyingStreams.length];
    int i = 0;
View Full Code Here


  /**
   * Get the journal node we are tailing from, and indicate which stream this is.
   */
  private JournalNode getTailingJN(EditLogInputStream str,
      URLLogInputStream[] tailingStream) throws Exception {
    RedundantEditLogInputStream is = (RedundantEditLogInputStream) str;

    Field curIdxF = RedundantEditLogInputStream.class
        .getDeclaredField("curIdx");
    curIdxF.setAccessible(true);
    int curIdx = curIdxF.getInt(is);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream

Copyright © 2018 www.massapicom. 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.