Class ThriftClientTypes<C extends org.apache.thrift.TServiceClient>
- java.lang.Object
-
- org.apache.accumulo.core.rpc.clients.ThriftClientTypes<C>
-
- Direct Known Subclasses:
ClientServiceThriftClient
,CompactionCoordinatorServiceThriftClient
,CompactorServiceThriftClient
,FateThriftClient
,GCMonitorServiceThriftClient
,ManagerThriftClient
,ReplicationCoordinatorThriftClient
,ReplicationServicerThriftClient
,TabletScanClientServiceThriftClient
,TabletServerThriftClient
public abstract class ThriftClientTypes<C extends org.apache.thrift.TServiceClient> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ThriftClientTypes.Exec<R,C>
execute method with supplied client returning object of type Rstatic interface
ThriftClientTypes.ExecVoid<C>
execute method with supplied client
-
Field Summary
Fields Modifier and Type Field Description static ClientServiceThriftClient
CLIENT
static CompactorServiceThriftClient
COMPACTOR
static CompactionCoordinatorServiceThriftClient
COORDINATOR
static FateThriftClient
FATE
static GCMonitorServiceThriftClient
GC
static ManagerThriftClient
MANAGER
static ReplicationCoordinatorThriftClient
REPLICATION_COORDINATOR
static ReplicationServicerThriftClient
REPLICATION_SERVICER
static TabletScanClientServiceThriftClient
TABLET_SCAN
static TabletServerThriftClient
TABLET_SERVER
-
Constructor Summary
Constructors Constructor Description ThriftClientTypes(String serviceName, org.apache.thrift.TServiceClientFactory<C> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
execute(ClientContext context, ThriftClientTypes.Exec<R,C> exec)
void
executeVoid(ClientContext context, ThriftClientTypes.ExecVoid<C> exec)
C
getClient(org.apache.thrift.protocol.TProtocol prot)
org.apache.thrift.TServiceClientFactory<C>
getClientFactory()
C
getConnection(ClientContext context)
C
getConnectionWithRetry(ClientContext context)
String
getServiceName()
-
-
-
Field Detail
-
CLIENT
public static final ClientServiceThriftClient CLIENT
-
COMPACTOR
public static final CompactorServiceThriftClient COMPACTOR
-
COORDINATOR
public static final CompactionCoordinatorServiceThriftClient COORDINATOR
-
FATE
public static final FateThriftClient FATE
-
GC
public static final GCMonitorServiceThriftClient GC
-
MANAGER
public static final ManagerThriftClient MANAGER
-
REPLICATION_COORDINATOR
public static final ReplicationCoordinatorThriftClient REPLICATION_COORDINATOR
-
REPLICATION_SERVICER
public static final ReplicationServicerThriftClient REPLICATION_SERVICER
-
TABLET_SERVER
public static final TabletServerThriftClient TABLET_SERVER
-
TABLET_SCAN
public static final TabletScanClientServiceThriftClient TABLET_SCAN
-
-
Method Detail
-
getServiceName
public final String getServiceName()
-
getClientFactory
public final org.apache.thrift.TServiceClientFactory<C> getClientFactory()
-
getClient
public C getClient(org.apache.thrift.protocol.TProtocol prot)
-
getConnection
public C getConnection(ClientContext context)
-
getConnectionWithRetry
public C getConnectionWithRetry(ClientContext context)
-
execute
public <R> R execute(ClientContext context, ThriftClientTypes.Exec<R,C> exec) throws AccumuloException, AccumuloSecurityException
-
executeVoid
public void executeVoid(ClientContext context, ThriftClientTypes.ExecVoid<C> exec) throws AccumuloException, AccumuloSecurityException
-
-