org.apache.flume.api
Class RpcClientConfigurationConstants

java.lang.Object
  extended by org.apache.flume.api.RpcClientConfigurationConstants

public final class RpcClientConfigurationConstants
extends Object

Configuration constants used by the RpcClient. These configuration keys can be specified via a Properties object to the appropriate method of RpcClientFactory in order to obtain a customized RPC client.


Field Summary
static String CONFIG_BACKOFF
           
static String CONFIG_BATCH_SIZE
          Configuration key used to specify the batch size.
static String CONFIG_CLIENT_TYPE
          Configuration key to specify the RpcClient type to be used.
static String CONFIG_CONNECT_TIMEOUT
          Configuration key to specify connection timeout in milliseconds.
static String CONFIG_HOST_SELECTOR
          The selector type used by the LoadBalancingRpcClient.
static String CONFIG_HOSTS
          Hosts configuration key to specify a space delimited list of named hosts.
static String CONFIG_HOSTS_PREFIX
          Hosts prefix to specify address of a particular named host.
static String CONFIG_MAX_ATTEMPTS
          Maximum attempts to be made by the FailoverRpcClient in case of failures.
static String CONFIG_MAX_BACKOFF
           
static String CONFIG_REQUEST_TIMEOUT
          Configuration key to specify request timeout in milliseconds.
static String DEFAULT_BACKOFF
           
static Integer DEFAULT_BATCH_SIZE
          Default batch size.
static String DEFAULT_CLIENT_TYPE
          The default client type to be created if no explicit type is specified.
static long DEFAULT_CONNECT_TIMEOUT_MILLIS
          Default connection, handshake, and initial request timeout in milliseconds.
static long DEFAULT_REQUEST_TIMEOUT_MILLIS
          Default request timeout in milliseconds.
static String HOST_SELECTOR_RANDOM
           
static String HOST_SELECTOR_ROUND_ROBIN
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_HOSTS

public static final String CONFIG_HOSTS
Hosts configuration key to specify a space delimited list of named hosts. For example:
 hosts = h1 h2
 

See Also:
Constant Field Values

CONFIG_HOSTS_PREFIX

public static final String CONFIG_HOSTS_PREFIX
Hosts prefix to specify address of a particular named host. For example
 hosts.h1 = server1.example.com:12121
 hosts.h2 = server2.example.com:12121
 

See Also:
Constant Field Values

CONFIG_BATCH_SIZE

public static final String CONFIG_BATCH_SIZE
Configuration key used to specify the batch size. Default batch size is .

See Also:
Constant Field Values

CONFIG_CONNECT_TIMEOUT

public static final String CONFIG_CONNECT_TIMEOUT
Configuration key to specify connection timeout in milliseconds. The default connection timeout is .

See Also:
Constant Field Values

CONFIG_REQUEST_TIMEOUT

public static final String CONFIG_REQUEST_TIMEOUT
Configuration key to specify request timeout in milliseconds. The default request timeout is .

See Also:
Constant Field Values

DEFAULT_BATCH_SIZE

public static final Integer DEFAULT_BATCH_SIZE
Default batch size.


DEFAULT_CONNECT_TIMEOUT_MILLIS

public static final long DEFAULT_CONNECT_TIMEOUT_MILLIS
Default connection, handshake, and initial request timeout in milliseconds.


DEFAULT_REQUEST_TIMEOUT_MILLIS

public static final long DEFAULT_REQUEST_TIMEOUT_MILLIS
Default request timeout in milliseconds.


CONFIG_MAX_ATTEMPTS

public static final String CONFIG_MAX_ATTEMPTS
Maximum attempts to be made by the FailoverRpcClient in case of failures.

See Also:
Constant Field Values

CONFIG_CLIENT_TYPE

public static final String CONFIG_CLIENT_TYPE
Configuration key to specify the RpcClient type to be used. The available values are DEFAULT which results in the creation of a regular NettyAvroRpcClient and DEFAULT_FAILOVER which results in the creation of a failover client implementation on top of multiple NettyAvroRpcClients. The default value of this configuration is .

See Also:
Constant Field Values

DEFAULT_CLIENT_TYPE

public static final String DEFAULT_CLIENT_TYPE
The default client type to be created if no explicit type is specified.


CONFIG_HOST_SELECTOR

public static final String CONFIG_HOST_SELECTOR
The selector type used by the LoadBalancingRpcClient. This value of this setting could be either round_robin, random, or the fully qualified name class that implements the LoadBalancingRpcClient.HostSelector interface.

See Also:
Constant Field Values

HOST_SELECTOR_ROUND_ROBIN

public static final String HOST_SELECTOR_ROUND_ROBIN
See Also:
Constant Field Values

HOST_SELECTOR_RANDOM

public static final String HOST_SELECTOR_RANDOM
See Also:
Constant Field Values

CONFIG_MAX_BACKOFF

public static final String CONFIG_MAX_BACKOFF
See Also:
Constant Field Values

CONFIG_BACKOFF

public static final String CONFIG_BACKOFF
See Also:
Constant Field Values

DEFAULT_BACKOFF

public static final String DEFAULT_BACKOFF
See Also:
Constant Field Values


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.