Examples of serializeToBuffer()


Examples of org.voltdb.exceptions.SerializableException.serializeToBuffer()

            ShutdownPrepareRequest.Builder builder = ShutdownPrepareRequest.newBuilder()
                                                        .setSenderSite(this.catalog_site.getId());
            // Pack the error into a SerializableException
            if (error != null) {
                SerializableException sError = new SerializableException(error);
                ByteBuffer buffer = sError.serializeToBuffer();
                buffer.rewind();
                builder.setError(ByteString.copyFrom(buffer));
                if (debug.val)
                    LOG.debug("Serializing error message in shutdown request");
            }
View Full Code Here

Examples of org.voltdb.exceptions.SerializableException.serializeToBuffer()

        } catch (Throwable ex) {
            error = ex;
        }
        assertNotNull(error);
        SerializableException sError = new SerializableException(error);
        ByteBuffer buffer = sError.serializeToBuffer();
        buffer.rewind();
       
        ShutdownPrepareRequest.Builder builder = ShutdownPrepareRequest.newBuilder()
                                                        .setSenderSite(0)
                                                        .setError(ByteString.copyFrom(buffer));
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.