Package org.apache.zookeeper.server.util
Class SerializeUtils
- java.lang.Object
-
- org.apache.zookeeper.server.util.SerializeUtils
-
public class SerializeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SerializeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deserializeSnapshot(DataTree dt, InputArchive ia, Map<Long,Integer> sessions)
static TxnLogEntry
deserializeTxn(byte[] txnBytes)
static byte[]
serializeRequest(Request request)
static void
serializeSnapshot(DataTree dt, OutputArchive oa, Map<Long,Integer> sessions)
-
-
-
Method Detail
-
deserializeTxn
public static TxnLogEntry deserializeTxn(byte[] txnBytes) throws IOException
- Throws:
IOException
-
deserializeSnapshot
public static void deserializeSnapshot(DataTree dt, InputArchive ia, Map<Long,Integer> sessions) throws IOException
- Throws:
IOException
-
serializeSnapshot
public static void serializeSnapshot(DataTree dt, OutputArchive oa, Map<Long,Integer> sessions) throws IOException
- Throws:
IOException
-
serializeRequest
public static byte[] serializeRequest(Request request)
-
-