public class VisorGridDiscoveryEvent extends VisorGridEvent
DiscoveryEvent.V1, V2| Constructor and Description |
|---|
VisorGridDiscoveryEvent()
Default constructor.
|
VisorGridDiscoveryEvent(int typeId,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay,
UUID evtNodeId,
String addr,
boolean isDaemon,
long topVer)
Create event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
UUID |
getEventNodeId() |
byte |
getProtocolVersion() |
long |
getTopologyVersion() |
boolean |
isDaemon() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getId, getMessage, getName, getNid, getShortDisplay, getTimestamp, getTypeIdreadExternal, toList, toSet, writeExternalpublic VisorGridDiscoveryEvent()
public VisorGridDiscoveryEvent(int typeId,
IgniteUuid id,
String name,
UUID nid,
long ts,
@Nullable
String msg,
String shortDisplay,
UUID evtNodeId,
String addr,
boolean isDaemon,
long topVer)
typeId - Event type.id - Event id.name - Event name.nid - Event node ID.ts - Event timestamp.msg - Event message.shortDisplay - Shortened version of toString() result.evtNodeId - Event node id.addr - Event node address.isDaemon - If event node is daemon on not.topVer - Topology version.public UUID getEventNodeId()
public String getAddress()
public boolean isDaemon()
public long getTopologyVersion()
0 if configured discovery SPI implementation
does not support versioning.public byte getProtocolVersion()
getProtocolVersion in class VisorDataTransferObjectprotected void writeExternalData(ObjectOutput out) throws IOException
writeExternalData in class VisorGridEventout - Output object to write data content.IOException - If I/O errors occur.protected void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
readExternalData in class VisorGridEventprotoVer - Input object version.in - Input object to load data content.IOException - If I/O errors occur.ClassNotFoundException - If the class for an object being restored cannot be found.public String toString()
toString in class VisorGridEvent
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017