Class UpdateChannelConfiguration



  • public class UpdateChannelConfiguration
    extends java.lang.Object
    A wrapper for the Hyperledger Channel update configuration
    • Constructor Detail

      • UpdateChannelConfiguration

        public UpdateChannelConfiguration​(java.io.File configFile)
                                   throws java.io.IOException,
                                          InvalidArgumentException
        constructs a UpdateChannelConfiguration object with the actual configuration gotten from the file system
        Parameters:
        configFile - The file containing the channel configuration.
        Throws:
        java.io.IOException
        InvalidArgumentException
      • UpdateChannelConfiguration

        public UpdateChannelConfiguration​(byte[] configAsBytes)
                                   throws InvalidArgumentException
        constructs a UpdateChannelConfiguration object
        Parameters:
        configAsBytes - the byte array containing the serialized channel configuration
        Throws:
        InvalidArgumentException
    • Method Detail

      • setUpdateChannelConfiguration

        public void setUpdateChannelConfiguration​(byte[] updateChannelConfigurationAsBytes)
                                           throws InvalidArgumentException
        sets the UpdateChannelConfiguration from a byte array
        Parameters:
        updateChannelConfigurationAsBytes - the byte array containing the serialized channel configuration
        Throws:
        InvalidArgumentException
      • getUpdateChannelConfigurationAsBytes

        public byte[] getUpdateChannelConfigurationAsBytes​()
        Returns:
        the channel configuration serialized per protobuf and ready for inclusion into channel configuration