public class DrRemoteDcNodeEvent extends EventAdapter
Grid events are used for notification about what happens within the grid. Note that by design Ignite keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)
.
IgniteConfiguration.getIncludeEventTypes()
method in Ignite configuration. Note that certain
events are required for Ignite's internal operations and such events will still be generated but not stored by
event storage if they are disabled in Ignite configuration.Constructor and Description |
---|
DrRemoteDcNodeEvent()
No-arg constructor.
|
DrRemoteDcNodeEvent(ClusterNode node,
String msg,
int type,
InetSocketAddress rmtAddr,
byte dcId,
int nodeCnt)
Creates replication node event with given parameters.
|
Modifier and Type | Method and Description |
---|---|
byte |
dcId()
Returns id of the remote data center.
|
int |
nodeCnt()
Returns count of the available nodes in the remote data center.
|
InetSocketAddress |
rmtAddr()
Returns remote address of the node in the remote data center.
|
String |
toString() |
compareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
public DrRemoteDcNodeEvent()
public DrRemoteDcNodeEvent(ClusterNode node, String msg, int type, InetSocketAddress rmtAddr, byte dcId, int nodeCnt)
node
- Source node of the event.msg
- Optional message.type
- Event type.rmtAddr
- Remote address of the node in the remote data center.dcId
- Id of the remote data center.nodeCnt
- Count of the available nodes in the remote data center.public byte dcId()
public int nodeCnt()
public InetSocketAddress rmtAddr()
public String toString()
toString
in class EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024