public class YamlMasterSlaveConfiguration extends Object
Constructor and Description |
---|
YamlMasterSlaveConfiguration() |
Modifier and Type | Method and Description |
---|---|
static YamlMasterSlaveConfiguration |
unmarshal(byte[] yamlBytes)
Unmarshal yaml sharding configuration from yaml bytes.
|
static YamlMasterSlaveConfiguration |
unmarshal(File yamlFile)
Unmarshal yaml master slave configuration from yaml file.
|
public static YamlMasterSlaveConfiguration unmarshal(File yamlFile) throws IOException
yamlFile
- yaml fileIOException
- IO Exceptionpublic static YamlMasterSlaveConfiguration unmarshal(byte[] yamlBytes) throws IOException
yamlBytes
- yaml bytesIOException
- IO ExceptionCopyright © 2018. All rights reserved.