Package org.apache.hadoop.hdfs.protocol.ClientProxyResponses

Examples of org.apache.hadoop.hdfs.protocol.ClientProxyResponses.OpenResponse


    public Object answer(InvocationOnMock invocation) throws IOException {
      Object args[] = invocation.getArguments();
      if (args.length == 1) {
        LocatedBlocksWithMetaInfo realAnswer = realNN.open((OpenRequest) args[0]).get();
        return new OpenResponse(injectFailureIfNecessary(realAnswer));
      } else {
        LocatedBlocksWithMetaInfo realAnswer = realNN.openAndFetchMetaInfo((String) args[0],
            (Long) args[1], (Long) args[2]);
        return injectFailureIfNecessary(realAnswer);
      }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.ClientProxyResponses.OpenResponse

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.