org.apache.flume.api
Class RpcClientFactory
java.lang.Object
org.apache.flume.api.RpcClientFactory
public class RpcClientFactory
- extends Object
Factory class to construct Flume RPCClient
implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RpcClientFactory
public RpcClientFactory()
getInstance
public static RpcClient getInstance(String hostname,
Integer port)
throws FlumeException
- Returns an instance of
RpcClient
connected to the specified
hostname
and port
.
- Throws:
FlumeException
getInstance
public static RpcClient getInstance(String hostname,
Integer port,
Integer batchSize)
throws FlumeException
- Returns an instance of
RpcClient
connected to the specified
hostname
and port
with the specified batchSize
.
- Throws:
FlumeException
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.