hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Templeton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6766) *AppsBlock classes need a printOrNA() helper method
Date Thu, 06 Jul 2017 15:04:00 GMT
Daniel Templeton created YARN-6766:
--------------------------------------

             Summary: *AppsBlock classes need a printOrNA() helper method
                 Key: YARN-6766
                 URL: https://issues.apache.org/jira/browse/YARN-6766
             Project: Hadoop YARN
          Issue Type: Bug
          Components: webapp
    Affects Versions: 3.0.0-alpha3, 2.8.1
            Reporter: Daniel Templeton
            Priority: Minor


The various {{*AppsBlock}} classes are riddled with statements like:

{code}.append(appInfo.getReservedVCores() == -1 ? "N/A" : String.valueOf(appInfo.getReservedVCores())){code}

The code would be much cleaner if there were a utility method for that operation, e.g.:

{code}.append(printData(appInfo.getReservedCores())){code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message