You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/07/16 21:45:06 UTC
[jira] [Created] (SLIDER-242) exportGroups retrieval can be lifted
outside nested loop in AgentProviderService#processReturnedStatus()
Ted Yu created SLIDER-242:
-----------------------------
Summary: 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)