java.lang.Object
com.zeroc.IceGrid.NodeInfo
- All Implemented Interfaces:
Serializable
,Cloneable
Information about an IceGrid node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe path to the node data directory.The network name of the host running this node.The machine hardware type.The name of the node.int
The number of processor threads on the node.The operating system name.The operation system release level.The operation system version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static NodeInfo
ice_read
(InputStream istr) Unmarshals aNodeInfo
from an input stream.ice_read
(InputStream istr, int tag) Unmarshals an optionalNodeInfo
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, NodeInfo v) Marshals an optionalNodeInfo
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<NodeInfo> v) Marshals an optionalNodeInfo
into an output stream.static void
ice_write
(OutputStream ostr, NodeInfo v) Marshals aNodeInfo
into an output stream.void
ice_writeMembers
(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
name
The name of the node. -
os
The operating system name. -
hostname
The network name of the host running this node. -
release
The operation system release level. -
version
The operation system version. -
machine
The machine hardware type. -
nProcessors
public int nProcessorsThe number of processor threads on the node. For example, nProcessors is 8 on a computer with a single quad-core processor and two threads per core. -
dataDir
The path to the node data directory.
-
-
Constructor Details
-
NodeInfo
public NodeInfo()Constructs aNodeInfo
. -
NodeInfo
public NodeInfo(String name, String os, String hostname, String release, String version, String machine, int nProcessors, String dataDir) Constructs aNodeInfo
with values for all its fields.- Parameters:
name
- The name of the node.os
- The operating system name.hostname
- The network name of the host running this node.release
- The operation system release level.version
- The operation system version.machine
- The machine hardware type.nProcessors
- The number of processor threads on the node.dataDir
- The path to the node data directory.
-
-
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 aNodeInfo
into an output stream.- Parameters:
ostr
- the output streamv
- theNodeInfo
to marshal; can be null
-
ice_read
Unmarshals aNodeInfo
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
NodeInfo
-
ice_write
Marshals an optionalNodeInfo
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalNodeInfo
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalNodeInfo
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-