Interface AggregateController
-
- All Known Implementing Classes:
DefaultAggregateController
public interface AggregateControllerA controller which allows controlling aAggregateProcessorfrom an external source, such as Java API or JMX. This can be used to force completion of aggregated groups, and more.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intforceCompletionOfAllGroups()To force complete of all groupsintforceCompletionOfGroup(String key)To force completing a specific group by its key.intforceDiscardingOfAllGroups()To force discardingof all groupsintforceDiscardingOfGroup(String key)To force discarding a specific group by its key.voidonStart(AggregateProcessor processor)Callback when the aggregate processor is started.voidonStop(AggregateProcessor processor)Callback when the aggregate processor is stopped.
-
-
-
Method Detail
-
onStart
void onStart(AggregateProcessor processor)
Callback when the aggregate processor is started.- Parameters:
processor- the aggregate processor
-
onStop
void onStop(AggregateProcessor processor)
Callback when the aggregate processor is stopped.- Parameters:
processor- the aggregate processor
-
forceCompletionOfGroup
int forceCompletionOfGroup(String key)
To force completing a specific group by its key.- Parameters:
key- the key- Returns:
- 1 if the group was forced completed, 0 if the group does not exists
-
forceCompletionOfAllGroups
int forceCompletionOfAllGroups()
To force complete of all groups- Returns:
- number of groups that was forced completed
-
forceDiscardingOfGroup
int forceDiscardingOfGroup(String key)
To force discarding a specific group by its key.- Parameters:
key- the key- Returns:
- 1 if the group was forced discarded, 0 if the group does not exists
-
forceDiscardingOfAllGroups
int forceDiscardingOfAllGroups()
To force discardingof all groups- Returns:
- number of groups that was forced discarded
-
-