org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeRequest Java Examples

The following examples show how to use org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeRequest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThriftHiveMetastoreClient.java    From presto with Apache License 2.0 5 votes vote down vote up
@Override
public void sendTransactionHeartbeat(long transactionId)
        throws TException
{
    HeartbeatTxnRangeRequest rqst = new HeartbeatTxnRangeRequest(transactionId, transactionId);
    client.heartbeat_txn_range(rqst);
}
 
Example #2
Source File: FederatedHMSHandlerTest.java    From waggle-dance with Apache License 2.0 5 votes vote down vote up
@Test
public void heartbeat_txn_range() throws TException {
  HeartbeatTxnRangeRequest request = new HeartbeatTxnRangeRequest();
  HeartbeatTxnRangeResponse expected = new HeartbeatTxnRangeResponse();
  when(primaryClient.heartbeat_txn_range(request)).thenReturn(expected);
  HeartbeatTxnRangeResponse result = handler.heartbeat_txn_range(request);
  assertThat(result, is(expected));
}
 
Example #3
Source File: FederatedHMSHandler.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns) throws TException {
  return getPrimaryClient().heartbeat_txn_range(txns);
}
 
Example #4
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public HeartbeatTxnRangeResponse heartbeat_txn_range(final HeartbeatTxnRangeRequest txns) throws TException {
    throw unimplemented("heartbeat_txn_range", new Object[]{txns});
}