Package org.hyperledger.fabric.sdk
Class UpdateChannelConfiguration
- java.lang.Object
-
- org.hyperledger.fabric.sdk.UpdateChannelConfiguration
-
public class UpdateChannelConfiguration extends java.lang.Object
A wrapper for the Hyperledger Channel update configuration
-
-
Constructor Summary
Constructors Constructor Description UpdateChannelConfiguration()
The constructor for the UpdateChannelConfiguration wrapper.UpdateChannelConfiguration(byte[] configAsBytes)
constructs a UpdateChannelConfiguration objectUpdateChannelConfiguration(java.io.File configFile)
constructs a UpdateChannelConfiguration object with the actual configuration gotten from the file system
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getUpdateChannelConfigurationAsBytes()
void
setUpdateChannelConfiguration(byte[] updateChannelConfigurationAsBytes)
sets the UpdateChannelConfiguration from a byte array
-
-
-
Constructor Detail
-
UpdateChannelConfiguration
public UpdateChannelConfiguration()
The constructor for the UpdateChannelConfiguration wrapper. You will need to use theChannel.updateChannelConfiguration(UpdateChannelConfiguration, byte[]...)
method to populate the update channel configuration
-
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
-
-