Package org.apache.ignite.cluster
Interface BaselineNode
-
- All Known Subinterfaces:
ClusterNode
- All Known Implementing Classes:
IsolatedNode
public interface BaselineNode
Interface representing a single node from baseline topology.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
attribute(String name)
Gets a node attribute.Map<String,Object>
attributes()
Gets all node attributes.Object
consistentId()
Gets consistent globally unique node ID.
-
-
-
Method Detail
-
consistentId
Object consistentId()
Gets consistent globally unique node ID. This method returns consistent node ID which survives node restarts.- Returns:
- Consistent globally unique node ID.
-
attribute
@Nullable <T> T attribute(String name)
Gets a node attribute. Attributes are assigned to nodes at startup viaIgniteConfiguration.getUserAttributes()
method.The system adds the following attributes automatically:
{@link System#getProperties()}
- All system properties.{@link System#getenv(String)}
- All environment properties.- All attributes defined in
IgniteNodeAttributes
Note that attributes cannot be changed at runtime.
- Type Parameters:
T
- Attribute Type.- Parameters:
name
- Attribute name. Note that attribute names starting withorg.apache.ignite
are reserved for internal use.- Returns:
- Attribute value or
null
.
-
attributes
Map<String,Object> attributes()
Gets all node attributes. Attributes are assigned to nodes at startup viaIgniteConfiguration.getUserAttributes()
method.The system adds the following attributes automatically:
{@link System#getProperties()}
- All system properties.{@link System#getenv(String)}
- All environment properties.- All attributes defined in
IgniteNodeAttributes
Note that attributes cannot be changed at runtime.
- Returns:
- All node attributes.
-
-