Class NetworkTime

java.lang.Object
org.opensearch.search.profile.NetworkTime
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable

@PublicApi(since="1.0.0") public class NetworkTime extends Object implements org.opensearch.core.common.io.stream.Writeable
Utility class to track time of network operations
Opensearch.api:
  • Constructor Details

    • NetworkTime

      public NetworkTime(long inboundTime, long outboundTime)
    • NetworkTime

      public NetworkTime(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • getInboundNetworkTime

      public long getInboundNetworkTime()
    • getOutboundNetworkTime

      public long getOutboundNetworkTime()
    • setInboundNetworkTime

      public void setInboundNetworkTime(long newTime)
    • setOutboundNetworkTime

      public void setOutboundNetworkTime(long newTime)