@InterfaceStability.Unstable @InterfaceAudience.Public public class InputInitializerEvent extends Event
InputInitializer
.
This can be used to send information/metadata to the InputInitializer
These events are routed to the InputInitializer, only after the task which generated the event
succeeds. Also, the events will only be sent once per task - irrespective of how many attempts
were run, or succeeded. An example of this is when a task is retried because the node on which it
was running failed. If the Task had succeeded once, the event would already have been sent - and
will not be resent when the task reruns and succeeds. Modifier and Type | Method and Description |
---|---|
static InputInitializerEvent |
create(String targetVertexName,
String targetInputName,
ByteBuffer eventPayload) |
String |
getSourceVertexName()
Returns the name of the vertex which generated the event.
|
String |
getTargetInputName()
Get the input name to which this event is targeted
|
String |
getTargetVertexName()
Get the vertex name on which the targeted Input exists
|
ByteBuffer |
getUserPayload()
Get the actual user payload
|
String |
toString() |
public static InputInitializerEvent create(String targetVertexName, String targetInputName, ByteBuffer eventPayload)
targetVertexName
- the vertex on which the targeted Input existstargetInputName
- the name of the inputeventPayload
- the payload for the event. It is advisable to limit the size of the
payload to a few KB at maxpublic String getTargetVertexName()
public String getTargetInputName()
public ByteBuffer getUserPayload()
public String getSourceVertexName()
Copyright © 2024 Apache Software Foundation. All rights reserved.