com.sleepycat.je.rep.impl.networkRestore
Class Protocol.FileInfoResp

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol.Message
      extended by com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
          extended by com.sleepycat.je.rep.impl.networkRestore.Protocol.FileStart
              extended by com.sleepycat.je.rep.impl.networkRestore.Protocol.FileInfoResp
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Direct Known Subclasses:
Protocol.FileEnd
Enclosing class:
Protocol

public class Protocol.FileInfoResp
extends Protocol.FileStart


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.impl.networkRestore.Protocol.FileStart
fileLength, fileName, lastModifiedTime
 
Constructor Summary
Protocol.FileInfoResp(ByteBuffer buffer)
           
Protocol.FileInfoResp(String fileName, long fileLength, long lastModifiedTime, byte[] digestSHA1)
           
 
Method Summary
 byte[] getDigestSHA1()
          Returns the SHA1 value if it was requested, or a zero length byte array if it was not requested.
 BinaryProtocol.MessageOp getOp()
           
 ByteBuffer wireFormat()
          The default message consists of the operation enum and just a 0 length size.
 
Methods inherited from class com.sleepycat.je.rep.impl.networkRestore.Protocol.FileStart
getFileLength, getLastModifiedTime
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
getBoolean, getByteArray, getDouble, getEnum, getNameIdPair, getRepNodeImplArray, getStringArray, getVLSN, wireFormat
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.Message
allocateInitializedBuffer, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol.FileInfoResp

public Protocol.FileInfoResp(String fileName,
                             long fileLength,
                             long lastModifiedTime,
                             byte[] digestSHA1)

Protocol.FileInfoResp

public Protocol.FileInfoResp(ByteBuffer buffer)
Method Detail

getOp

public BinaryProtocol.MessageOp getOp()
Overrides:
getOp in class Protocol.FileStart

wireFormat

public ByteBuffer wireFormat()
Description copied from class: BinaryProtocol.Message
The default message consists of the operation enum and just a 0 length size.

Specified by:
wireFormat in interface BinaryProtocol.WireFormatable
Overrides:
wireFormat in class Protocol.FileStart

getDigestSHA1

public byte[] getDigestSHA1()
Returns the SHA1 value if it was requested, or a zero length byte array if it was not requested.



Copyright (c) 2004-2012 Oracle. All rights reserved.