[
https://issues.apache.org/jira/browse/SLIDER-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu resolved SLIDER-242.
---------------------------
Resolution: Fixed
> exportGroups retrieval can be lifted outside nested loop in
> AgentProviderService#processReturnedStatus()
> --------------------------------------------------------------------------------------------------------
>
> Key: SLIDER-242
> URL: https://issues.apache.org/jira/browse/SLIDER-242
> Project: Slider
> Issue Type: Task
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
>
> Inside the nested loop:
> {code}
> for (ComponentStatus status : statuses) {
> log.info("Status report: " + status.toString());
> if (status.getConfigs() != null) {
> for (String key : status.getConfigs().keySet()) {
> {code}
> I see:
> {code}
> Application application = getMetainfo().getApplication();
> List<ExportGroup> exportGroups = application.getExportGroups();
> {code}
> But getMetainfo() is not related to the status variable. The above lines can
> be lifted outside the nested loop
--
This message was sent by Atlassian JIRA
(v6.2#6252)