Class FileHeader
java.lang.Object
org.apache.zookeeper.server.persistence.FileHeader
- All Implemented Interfaces:
Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
deserialize
(InputArchive a_, String tag) boolean
long
getDbid()
int
getMagic()
int
int
hashCode()
void
readFields
(DataInput in) void
serialize
(OutputArchive a_, String tag) void
setDbid
(long m_) void
setMagic
(int m_) void
setVersion
(int m_) static String
toString()
void
write
(DataOutput out)
-
Constructor Details
-
FileHeader
public FileHeader() -
FileHeader
public FileHeader(int magic, int version, long dbid)
-
-
Method Details
-
getMagic
public int getMagic() -
setMagic
public void setMagic(int m_) -
getVersion
public int getVersion() -
setVersion
public void setVersion(int m_) -
getDbid
public long getDbid() -
setDbid
public void setDbid(long m_) -
serialize
- Specified by:
serialize
in interfaceRecord
- Throws:
IOException
-
deserialize
- Specified by:
deserialize
in interfaceRecord
- Throws:
IOException
-
toString
-
write
- Throws:
IOException
-
readFields
- Throws:
IOException
-
compareTo
- Throws:
ClassCastException
-
equals
-
hashCode
public int hashCode() -
signature
-