Examples of BinaryOutputArchive


Examples of org.apache.jute.BinaryOutputArchive

                minCommittedLog = request.zxid;
                maxCommittedLog = request.zxid;
            }

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            BinaryOutputArchive boa = BinaryOutputArchive.getArchive(baos);
            try {
                request.hdr.serialize(boa, "hdr");
                if (request.txn != null) {
                    request.txn.serialize(boa, "txn");
                }
View Full Code Here

Examples of org.apache.jute_voltpatches.BinaryOutputArchive

    private void shipZKDatabaseSnapshot(long joiningAgreementSite, long txnId) throws IOException {
        m_recoveryLog.info("Shipping ZK snapshot from " + CoreUtils.hsIdToString(m_hsId) +
                " to " + CoreUtils.hsIdToString(joiningAgreementSite));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DataOutputStream dos = new DataOutputStream(baos);
        BinaryOutputArchive boa = new BinaryOutputArchive(dos);
        m_server.getZKDatabase().serializeSnapshot(boa);
        dos.flush();
        byte databaseBytes[] = org.xerial.snappy.Snappy.compress(baos.toByteArray());
        ByteBuffer metadata = ByteBuffer.allocate(9);
        metadata.put(BINARY_PAYLOAD_SNAPSHOT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.