Search in sources :

Example 1 with OnlineLogRecord

use of org.apache.hadoop.hbase.client.OnlineLogRecord in project hbase by apache.

the class ThriftHBaseServiceHandler method getSlowLogResponses.

@Override
public List<TOnlineLogRecord> getSlowLogResponses(Set<TServerName> tServerNames, TLogQueryFilter tLogQueryFilter) throws TIOError, TException {
    try {
        Set<ServerName> serverNames = ThriftUtilities.getServerNamesFromThrift(tServerNames);
        LogQueryFilter logQueryFilter = ThriftUtilities.getSlowLogQueryFromThrift(tLogQueryFilter);
        List<OnlineLogRecord> onlineLogRecords = connectionCache.getAdmin().getSlowLogResponses(serverNames, logQueryFilter);
        return ThriftUtilities.getSlowLogRecordsFromHBase(onlineLogRecords);
    } catch (IOException e) {
        throw getTIOError(e);
    }
}
Also used : ServerName(org.apache.hadoop.hbase.ServerName) TServerName(org.apache.hadoop.hbase.thrift2.generated.TServerName) TOnlineLogRecord(org.apache.hadoop.hbase.thrift2.generated.TOnlineLogRecord) OnlineLogRecord(org.apache.hadoop.hbase.client.OnlineLogRecord) DoNotRetryIOException(org.apache.hadoop.hbase.DoNotRetryIOException) IOException(java.io.IOException) TLogQueryFilter(org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter) LogQueryFilter(org.apache.hadoop.hbase.client.LogQueryFilter)

Aggregations

IOException (java.io.IOException)1 DoNotRetryIOException (org.apache.hadoop.hbase.DoNotRetryIOException)1 ServerName (org.apache.hadoop.hbase.ServerName)1 LogQueryFilter (org.apache.hadoop.hbase.client.LogQueryFilter)1 OnlineLogRecord (org.apache.hadoop.hbase.client.OnlineLogRecord)1 TLogQueryFilter (org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter)1 TOnlineLogRecord (org.apache.hadoop.hbase.thrift2.generated.TOnlineLogRecord)1 TServerName (org.apache.hadoop.hbase.thrift2.generated.TServerName)1