Skip to content
Andrew Trimble edited this page May 30, 2014 · 6 revisions

The spirit behind BigIO configuration is default settings that "just work," but control if you need it. The io.bigio.Parameters class provides access to the BigIO configuration structure. It loads any file in the "config" directory of the installation that ends in .properties. It will also put all properties into the System configuration i.e., System.getProperties("your.property") will return a valid result.

// returns the property value if it exists, or null if it does not
Parameters.INSTANCE.getProperty("my.property"); 

// returns the property value if it exists, or "defaultValue" if it does not
Parameters.INSTANCE.getProperty("my.property", "defaultValue");

The configuration options for BigIO are as follows:

Parameter Description Type Default Value
io.bigio.protocol controls the network protocol for messages "tcp" or "udp" "tcp"
io.bigio.port.gossip the port number used to gossip cluster state integer random unused port
io.bigio.port.data the port number used to send messages integer random unused port
io.bigio.componentDir the directory from which to load jars string "components"
io.bigio.binDir the directory from which to load the BigIO jars string "bin"
io.bigio.components a comma separated list of fully qualified class names for the components to be instantiated string empty (will load everything found)
io.bigio.gossip.interval the number of milliseconds to wait before gossiping the cluster state long 250
io.bigio.multicast.enabled specifies whether or not to use multicast for discovery "true" or "false" "true"
io.bigio.multicast.group the multicast address IP address 239.0.0.1
io.bigio.multicast.port the multicast port integer 8989
io.bigio.remote.maxRetry the maximum number of times to try and reconnect with a lost remote member integer 3
io.bigio.remote.retryInterval the number of milliseconds to wait between retries long 2000
io.bigio.remote.connectionTimeout the number of milliseconds to wait before a connection is considered failed long 5000

Clone this wiki locally