public class DiscoveryDataBag extends Object
GridComponent
to collect and exchange discovery data both on
joining node and on cluster nodes.
It only organizes interaction with components and doesn't provide any capabilities of converting collected data
into formats eligible for transmitting over media (like marshalling, compressing and so on).Modifier and Type | Class and Description |
---|---|
static interface |
DiscoveryDataBag.GridDiscoveryData
Facade interface representing
DiscoveryDataBag object with discovery data collected in the grid. |
static interface |
DiscoveryDataBag.JoiningNodeDiscoveryData
Facade interface representing
DiscoveryDataBag object with discovery data from joining node. |
Constructor and Description |
---|
DiscoveryDataBag(UUID joiningNodeId,
boolean isJoiningNodeClient) |
DiscoveryDataBag(UUID joiningNodeId,
Set<Integer> cmnDataInitializedCmps,
boolean isJoiningNodeClient) |
Modifier and Type | Method and Description |
---|---|
void |
addGridCommonData(Integer cmpId,
Serializable data) |
void |
addJoiningNodeData(Integer cmpId,
Serializable data) |
void |
addNodeSpecificData(Integer cmpId,
Serializable data) |
Map<Integer,Serializable> |
commonData() |
void |
commonData(Map<Integer,Serializable> cmnData) |
boolean |
commonDataCollectedFor(Integer cmpId) |
DiscoveryDataBag.GridDiscoveryData |
gridDiscoveryData(int cmpId) |
boolean |
isJoiningNodeClient() |
Map<Integer,Serializable> |
joiningNodeData() |
void |
joiningNodeData(Map<Integer,Serializable> joinNodeData) |
UUID |
joiningNodeId() |
Map<Integer,Serializable> |
localNodeSpecificData() |
DiscoveryDataBag.JoiningNodeDiscoveryData |
newJoinerDiscoveryData(int cmpId) |
void |
nodeSpecificData(Map<UUID,Map<Integer,Serializable>> nodeSpecData) |
String |
toString() |
public DiscoveryDataBag(UUID joiningNodeId, boolean isJoiningNodeClient)
joiningNodeId
- Joining node id.isJoiningNodeClient
- Flag indicates the joining node is client.public DiscoveryDataBag(UUID joiningNodeId, Set<Integer> cmnDataInitializedCmps, boolean isJoiningNodeClient)
joiningNodeId
- Joining node id.cmnDataInitializedCmps
- Component IDs with already initialized common discovery data.isJoiningNodeClient
- Flag indicates the joining node is client.public UUID joiningNodeId()
public boolean isJoiningNodeClient()
true
if the joining node is client node. Return false
otherwise.public DiscoveryDataBag.GridDiscoveryData gridDiscoveryData(int cmpId)
cmpId
- Component ID.public DiscoveryDataBag.JoiningNodeDiscoveryData newJoinerDiscoveryData(int cmpId)
cmpId
- Component ID.public void addJoiningNodeData(Integer cmpId, Serializable data)
cmpId
- Component ID.data
- Data.public void addGridCommonData(Integer cmpId, Serializable data)
cmpId
- Component ID.data
- Data.public void addNodeSpecificData(Integer cmpId, Serializable data)
cmpId
- Component ID.data
- Data.public boolean commonDataCollectedFor(Integer cmpId)
cmpId
- Component ID.True
if common data collected for given component.public void joiningNodeData(Map<Integer,Serializable> joinNodeData)
joinNodeData
- Joining node data.public void commonData(Map<Integer,Serializable> cmnData)
cmnData
- Cmn data.public void nodeSpecificData(Map<UUID,Map<Integer,Serializable>> nodeSpecData)
nodeSpecData
- Node specific data.public Map<Integer,Serializable> joiningNodeData()
public Map<Integer,Serializable> commonData()
public Map<Integer,Serializable> localNodeSpecificData()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024