public class VisorEventMapper extends Object implements IgniteClosure<Event,VisorGridEvent>
Constructor and Description |
---|
VisorEventMapper() |
Modifier and Type | Method and Description |
---|---|
VisorGridEvent |
apply(Event evt)
Closure body.
|
protected VisorGridEvent |
deploymentEvent(DeploymentEvent de,
int type,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay) |
protected VisorGridEvent |
discoveryEvent(DiscoveryEvent de,
int type,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay) |
protected VisorGridEvent |
jobEvent(JobEvent je,
int type,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay) |
protected VisorGridEvent |
map(Event evt,
int type,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay)
Map grid event to Visor data transfer object.
|
protected VisorGridEvent |
taskEvent(TaskEvent te,
int type,
IgniteUuid id,
String name,
UUID nid,
long ts,
String msg,
String shortDisplay) |
protected VisorGridEvent map(Event evt, int type, IgniteUuid id, String name, UUID nid, long ts, String msg, String shortDisplay)
evt
- Grid event.type
- Event's type.id
- Event id.name
- Event name.nid
- Event node ID.ts
- Event timestamp.msg
- Event message.shortDisplay
- Shortened version of toString()
result.protected VisorGridEvent taskEvent(TaskEvent te, int type, IgniteUuid id, String name, UUID nid, long ts, String msg, String shortDisplay)
te
- Task event.type
- Event's type.id
- Event id.name
- Event name.nid
- Event node ID.ts
- Event timestamp.msg
- Event message.shortDisplay
- Shortened version of toString()
result.protected VisorGridEvent jobEvent(JobEvent je, int type, IgniteUuid id, String name, UUID nid, long ts, String msg, String shortDisplay)
je
- Job event.type
- Event's type.id
- Event id.name
- Event name.nid
- Event node ID.ts
- Event timestamp.msg
- Event message.shortDisplay
- Shortened version of toString()
result.protected VisorGridEvent deploymentEvent(DeploymentEvent de, int type, IgniteUuid id, String name, UUID nid, long ts, String msg, String shortDisplay)
de
- Deployment event.type
- Event's type.id
- Event id.name
- Event name.nid
- Event node ID.ts
- Event timestamp.msg
- Event message.shortDisplay
- Shortened version of toString()
result.protected VisorGridEvent discoveryEvent(DiscoveryEvent de, int type, IgniteUuid id, String name, UUID nid, long ts, String msg, String shortDisplay)
de
- Discovery event.type
- Event's type.id
- Event id.name
- Event name.nid
- Event node ID.ts
- Event timestamp.msg
- Event message.shortDisplay
- Shortened version of toString()
result.public VisorGridEvent apply(Event evt)
apply
in interface IgniteClosure<Event,VisorGridEvent>
evt
- Closure parameter.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017