Class YCSBServer

    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • appExecuteBatch

        public byte[][] appExecuteBatch​(byte[][] commands,
                                        MessageContext[] msgCtx,
                                        boolean fromConsensus)
        Description copied from class: DefaultRecoverable
        Execute a batch of ordered requests
        Specified by:
        appExecuteBatch in class DefaultRecoverable
        Parameters:
        commands - The batch of requests
        msgCtx - The context associated to each request
        fromConsensus - true if the request arrived from a consensus execution, false if it arrives from the state transfer protocol
        Returns:
        the respective replies for each request
      • appExecuteUnordered

        public byte[] appExecuteUnordered​(byte[] theCommand,
                                          MessageContext theContext)
        Description copied from class: DefaultRecoverable
        Execute an unordered request
        Specified by:
        appExecuteUnordered in class DefaultRecoverable
        Parameters:
        theCommand - The unordered request
        theContext - The context associated to the request
        Returns:
        the reply for the request issued by the client
      • installSnapshot

        public void installSnapshot​(byte[] state)
        Description copied from class: DefaultRecoverable
        Given a snapshot received from the state transfer protocol, install it
        Specified by:
        installSnapshot in class DefaultRecoverable
        Parameters:
        state - The serialized snapshot
      • getSnapshot

        public byte[] getSnapshot()
        Description copied from class: DefaultRecoverable
        Returns a serialized snapshot of the application state
        Specified by:
        getSnapshot in class DefaultRecoverable
        Returns:
        A serialized snapshot of the application state