public class NimbusClient extends ThriftClient
Modifier and Type | Class and Description |
---|---|
static interface |
NimbusClient.WithNimbus |
_protocol, _retryForever
Constructor and Description |
---|
NimbusClient(Map conf,
String host) |
NimbusClient(Map conf,
String host,
int port) |
NimbusClient(Map conf,
String host,
Integer port,
Integer timeout,
String asUser) |
NimbusClient(Map conf,
String host,
int port,
Integer timeout) |
Modifier and Type | Method and Description |
---|---|
Nimbus.Client |
getClient() |
static NimbusClient |
getConfiguredClient(Map conf) |
static NimbusClient |
getConfiguredClient(Map conf,
Integer timeout) |
static NimbusClient |
getConfiguredClientAs(Map conf,
String asUser) |
static NimbusClient |
getConfiguredClientAs(Map conf,
String asUser,
Integer timeout) |
static void |
withConfiguredClient(NimbusClient.WithNimbus cb) |
static void |
withConfiguredClient(NimbusClient.WithNimbus cb,
Map conf) |
close, reconnect, transport
public NimbusClient(Map conf, String host, int port) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public NimbusClient(Map conf, String host, int port, Integer timeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public NimbusClient(Map conf, String host, Integer port, Integer timeout, String asUser) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static void withConfiguredClient(NimbusClient.WithNimbus cb) throws Exception
Exception
public static void withConfiguredClient(NimbusClient.WithNimbus cb, Map conf) throws Exception
Exception
public static NimbusClient getConfiguredClient(Map conf)
public static NimbusClient getConfiguredClient(Map conf, Integer timeout)
public static NimbusClient getConfiguredClientAs(Map conf, String asUser)
public static NimbusClient getConfiguredClientAs(Map conf, String asUser, Integer timeout)
public Nimbus.Client getClient()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.