@Override public void performGroupOperation(DeviceId deviceId, GroupOperations groupOps) { GroupProgrammable programmable = getGroupProgrammable(deviceId); if (programmable != null) { programmable.performGroupOperation(deviceId, groupOps); } }
private void pollDeviceGroups(DeviceId deviceId) { Collection<Group> groups = getGroupProgrammable(deviceId).getGroups(); groupProviderService.pushGroupMetrics(deviceId, groups); }