Class TimedProcessor

  • All Implemented Interfaces:
    org.apache.thrift.TProcessor

    public class TimedProcessor
    extends Object
    implements org.apache.thrift.TProcessor
    A TProcessor which tracks the duration of an RPC and adds it to the metrics subsystem.
    • Constructor Detail

      • TimedProcessor

        public TimedProcessor​(org.apache.hadoop.metrics2.MetricsSystem metricsSystem,
                              AccumuloConfiguration conf,
                              org.apache.thrift.TProcessor next,
                              String serverName,
                              String threadName)
      • TimedProcessor

        public TimedProcessor​(org.apache.hadoop.metrics2.MetricsSystem metricsSystem,
                              org.apache.thrift.TProcessor next,
                              String serverName,
                              String threadName)
    • Method Detail

      • process

        public boolean process​(org.apache.thrift.protocol.TProtocol in,
                               org.apache.thrift.protocol.TProtocol out)
                        throws org.apache.thrift.TException
        Specified by:
        process in interface org.apache.thrift.TProcessor
        Throws:
        org.apache.thrift.TException