Search in sources :

Example 1 with Group

use of org.openkilda.wfm.topology.ping.model.Group in project open-kilda by telstra.

the class GroupCollector method collect.

private void collect(Tuple input) throws Exception {
    CollectorDescriptor descriptor = saveCurrentRecord(input);
    if (descriptor.isCompleted()) {
        try {
            Group group = descriptor.makeGroup();
            emitGroup(input, group);
        } catch (IllegalStateException e) {
            throw new WorkflowException(this, input, e.toString());
        }
    }
}
Also used : Group(org.openkilda.wfm.topology.ping.model.Group) WorkflowException(org.openkilda.wfm.error.WorkflowException) CollectorDescriptor(org.openkilda.wfm.topology.ping.model.CollectorDescriptor)

Aggregations

WorkflowException (org.openkilda.wfm.error.WorkflowException)1 CollectorDescriptor (org.openkilda.wfm.topology.ping.model.CollectorDescriptor)1 Group (org.openkilda.wfm.topology.ping.model.Group)1