Class TransportStats

java.lang.Object
org.elasticsearch.transport.TransportStats
All Implemented Interfaces:
Writeable, ChunkedToXContent

public class TransportStats extends Object implements Writeable, ChunkedToXContent
  • Constructor Details

    • TransportStats

      public TransportStats(long serverOpen, long totalOutboundConnections, long rxCount, long rxSize, long txCount, long txSize, long[] inboundHandlingTimeBucketFrequencies, long[] outboundHandlingTimeBucketFrequencies, Map<String,TransportActionStats> transportActionStats)
    • TransportStats

      public TransportStats(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • serverOpen

      public long serverOpen()
    • getServerOpen

      public long getServerOpen()
    • rxCount

      public long rxCount()
    • getRxCount

      public long getRxCount()
    • rxSize

      public ByteSizeValue rxSize()
    • getRxSize

      public ByteSizeValue getRxSize()
    • txCount

      public long txCount()
    • getTxCount

      public long getTxCount()
    • txSize

      public ByteSizeValue txSize()
    • getTxSize

      public ByteSizeValue getTxSize()
    • getInboundHandlingTimeBucketFrequencies

      public long[] getInboundHandlingTimeBucketFrequencies()
    • getOutboundHandlingTimeBucketFrequencies

      public long[] getOutboundHandlingTimeBucketFrequencies()
    • getTransportActionStats

      public Map<String,TransportActionStats> getTransportActionStats()
    • toXContentChunked

      public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerParams)
      Description copied from interface: ChunkedToXContent
      Create an iterator of ToXContent chunks for a REST response. Each chunk is serialized with the same XContentBuilder and ToXContent.Params, which is also the same as the ToXContent.Params passed as the params argument. For best results, all chunks should be O(1) size. The last chunk in the iterator must always yield at least one byte of output. See also ChunkedToXContentHelper for some handy utilities.

      Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.

      Specified by:
      toXContentChunked in interface ChunkedToXContent
      Returns:
      iterator over chunks of ToXContent