public static class EdgeManagerPluginOnDemand.EventRouteMetadata extends Object
Events to be routed between
producer and consumer tasks. The routing data enabled the system to send
the event from the producer task output to the consumer task input| Modifier and Type | Method and Description |
|---|---|
static EdgeManagerPluginOnDemand.EventRouteMetadata |
create(int numEvents,
int[] targetIndices)
Create an
EdgeManagerPluginOnDemand.EventRouteMetadata that will create numEvents copies of
the Event to be routed. |
static EdgeManagerPluginOnDemand.EventRouteMetadata |
create(int numEvents,
int[] targetIndices,
int[] sourceIndices)
Create an
EdgeManagerPluginOnDemand.EventRouteMetadata that will create numEvents copies of
the Event to be routed. |
int |
getNumEvents()
Get the number of copies of the event to be routed
|
int[] |
getSourceIndices()
Get the source output indices
|
int[] |
getTargetIndices()
Get the target input indices
|
public static EdgeManagerPluginOnDemand.EventRouteMetadata create(int numEvents, int[] targetIndices)
EdgeManagerPluginOnDemand.EventRouteMetadata that will create numEvents copies of
the Event to be routed. Use this to create
EdgeManagerPluginOnDemand.EventRouteMetadata for DataMovementEvents or
InputFailedEvents where the target input indices must be
specified to route those events. Typically numEvents would be 1 for these
events.numEvents - Number of copies of the event to be routedtargetIndices - Target input indices. The array length must match the number of
events specified when creating the EdgeManagerPluginOnDemand.EventRouteMetadata
objectEdgeManagerPluginOnDemand.EventRouteMetadatapublic static EdgeManagerPluginOnDemand.EventRouteMetadata create(int numEvents, int[] targetIndices, int[] sourceIndices)
EdgeManagerPluginOnDemand.EventRouteMetadata that will create numEvents copies of
the Event to be routed. Use this to create
EdgeManagerPluginOnDemand.EventRouteMetadata for CompositeDataMovementEvent where
the target input indices and source output indices must be specified to
route those events. Typically numEvents would be 1 for these events.numEvents - Number of copies of the event to be routedtargetIndices - Target input indices. The array length must match the number of
events specified when creating the EdgeManagerPluginOnDemand.EventRouteMetadata
objectsourceIndices - Source output indices. The array length must match the number of
events specified when creating the EdgeManagerPluginOnDemand.EventRouteMetadata
objectEdgeManagerPluginOnDemand.EventRouteMetadatapublic int getNumEvents()
@Nullable public int[] getTargetIndices()
@Nullable public int[] getSourceIndices()
Copyright © 2016 Apache Software Foundation. All rights reserved.