java.lang.Object
com.zeroc.IceGrid.LoadInfo
- All Implemented Interfaces:
Serializable
,Cloneable
Information about the load of a node.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static LoadInfo
ice_read
(InputStream istr) Unmarshals aLoadInfo
from an input stream.ice_read
(InputStream istr, int tag) Unmarshals an optionalLoadInfo
from an input stream.void
ice_readMembers
(InputStream istr) Unmarshals and sets this object's fields from an input stream.static void
ice_write
(OutputStream ostr, int tag, LoadInfo v) Marshals an optionalLoadInfo
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<LoadInfo> v) Marshals an optionalLoadInfo
into an output stream.static void
ice_write
(OutputStream ostr, LoadInfo v) Marshals aLoadInfo
into an output stream.void
ice_writeMembers
(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
avg1
public float avg1The load average over the past minute. -
avg5
public float avg5The load average over the past 5 minutes. -
avg15
public float avg15The load average over the past 15 minutes.
-
-
Constructor Details
-
LoadInfo
public LoadInfo()Constructs aLoadInfo
. -
LoadInfo
public LoadInfo(float avg1, float avg5, float avg15) Constructs aLoadInfo
with values for all its fields.- Parameters:
avg1
- The load average over the past minute.avg5
- The load average over the past 5 minutes.avg15
- The load average over the past 15 minutes.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr
- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr
- the input stream
-
ice_write
Marshals aLoadInfo
into an output stream.- Parameters:
ostr
- the output streamv
- theLoadInfo
to marshal; can be null
-
ice_read
Unmarshals aLoadInfo
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
LoadInfo
-
ice_write
Marshals an optionalLoadInfo
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalLoadInfo
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalLoadInfo
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-