Package org.opensearch.search.profile
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkTime
(long inboundTime, long outboundTime) NetworkTime
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
setInboundNetworkTime
(long newTime) void
setOutboundNetworkTime
(long newTime) void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out)
-
Constructor Details
-
NetworkTime
public NetworkTime(long inboundTime, long outboundTime) -
NetworkTime
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.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)
-