voldemort.coordinator
Class CoordinatorConfig

java.lang.Object
  extended by voldemort.coordinator.CoordinatorConfig

public class CoordinatorConfig
extends java.lang.Object


Field Summary
static java.lang.String BOOTSTRAP_URLS_PROPERTY
           
static java.lang.String FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY
           
static java.lang.String METADATA_CHECK_INTERVAL_IN_MS
           
static java.lang.String NETTY_SERVER_BACKLOG
           
static java.lang.String NETTY_SERVER_PORT
           
 
Constructor Summary
CoordinatorConfig()
          Dummy constructor for testing purposes
CoordinatorConfig(java.io.File propertyFile)
          Instantiate the coordinator config using a properties file
CoordinatorConfig(java.util.Properties properties)
          Initiate the coordinator config from a set of properties.
 
Method Summary
 java.lang.String[] getBootstrapURLs()
           
 java.lang.String getFatClientConfigPath()
           
 int getMetadataCheckIntervalInMs()
           
 int getNettyServerBacklog()
           
 int getServerPort()
           
 CoordinatorConfig setBootstrapURLs(java.util.List<java.lang.String> bootstrapUrls)
          Sets the bootstrap URLs used by the different Fat clients inside the Coordinator
 void setFatClientConfigPath(java.lang.String fatClientConfigPath)
          Defines individual config for each of the fat clients managed by the Coordinator
 void setMetadataCheckIntervalInMs(int metadataCheckIntervalInMs)
           
 void setNettyServerBacklog(int nettyServerBacklog)
           
 void setServerPort(int serverPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOTSTRAP_URLS_PROPERTY

public static final java.lang.String BOOTSTRAP_URLS_PROPERTY
See Also:
Constant Field Values

FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY

public static final java.lang.String FAT_CLIENTS_CONFIG_FILE_PATH_PROPERTY
See Also:
Constant Field Values

METADATA_CHECK_INTERVAL_IN_MS

public static final java.lang.String METADATA_CHECK_INTERVAL_IN_MS
See Also:
Constant Field Values

NETTY_SERVER_PORT

public static final java.lang.String NETTY_SERVER_PORT
See Also:
Constant Field Values

NETTY_SERVER_BACKLOG

public static final java.lang.String NETTY_SERVER_BACKLOG
See Also:
Constant Field Values
Constructor Detail

CoordinatorConfig

public CoordinatorConfig(java.io.File propertyFile)
Instantiate the coordinator config using a properties file

Parameters:
propertyFile - Properties file

CoordinatorConfig

public CoordinatorConfig(java.util.Properties properties)
Initiate the coordinator config from a set of properties. This is useful for wiring from Spring or for externalizing client properties to a properties file

Parameters:
properties - The properties to use

CoordinatorConfig

public CoordinatorConfig()
Dummy constructor for testing purposes

Method Detail

getBootstrapURLs

public java.lang.String[] getBootstrapURLs()

setBootstrapURLs

public CoordinatorConfig setBootstrapURLs(java.util.List<java.lang.String> bootstrapUrls)
Sets the bootstrap URLs used by the different Fat clients inside the Coordinator

Parameters:
bootstrapUrls - list of bootstrap URLs defining which cluster to connect to
Returns:
modified CoordinatorConfig

getFatClientConfigPath

public java.lang.String getFatClientConfigPath()

setFatClientConfigPath

public void setFatClientConfigPath(java.lang.String fatClientConfigPath)
Defines individual config for each of the fat clients managed by the Coordinator

Parameters:
fatClientConfigPath - The path of the file containing the fat client config in Avro format

getMetadataCheckIntervalInMs

public int getMetadataCheckIntervalInMs()

setMetadataCheckIntervalInMs

public void setMetadataCheckIntervalInMs(int metadataCheckIntervalInMs)
Parameters:
metadataCheckIntervalInMs - Defines the frequency with which to check for updates in the cluster metadata (Eg: cluster.xml and stores.xml)

getServerPort

public int getServerPort()

setServerPort

public void setServerPort(int serverPort)
Parameters:
serverPort - Defines the port to use while bootstrapping the Netty server

getNettyServerBacklog

public int getNettyServerBacklog()

setNettyServerBacklog

public void setNettyServerBacklog(int nettyServerBacklog)
Parameters:
nettyServerBacklog - Defines the netty server backlog value


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu