Writeable, ToXContent, ToXContentFragmentpublic static class FsInfo.DeviceStats extends java.lang.Object implements Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Constructor | Description |
|---|---|
DeviceStats(int majorDeviceNumber,
int minorDeviceNumber,
java.lang.String deviceName,
long currentReadsCompleted,
long currentSectorsRead,
long currentWritesCompleted,
long currentSectorsWritten,
FsInfo.DeviceStats previousDeviceStats) |
|
DeviceStats(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
operations() |
|
long |
readKilobytes() |
|
long |
readOperations() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
long |
writeKilobytes() |
|
long |
writeOperations() |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic DeviceStats(int majorDeviceNumber,
int minorDeviceNumber,
java.lang.String deviceName,
long currentReadsCompleted,
long currentSectorsRead,
long currentWritesCompleted,
long currentSectorsWritten,
FsInfo.DeviceStats previousDeviceStats)
public DeviceStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic long operations()
public long readOperations()
public long writeOperations()
public long readKilobytes()
public long writeKilobytes()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException