mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Harutyunyan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-3023) Abstracting out the pattern for URL generation
Date Thu, 09 Jul 2015 06:56:04 GMT

     [ https://issues.apache.org/jira/browse/MESOS-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Artem Harutyunyan updated MESOS-3023:
-------------------------------------
    Labels: beginner mesosphere newbie  (was: beginner mesosphere newbiee)

> Abstracting out the pattern for URL generation 
> -----------------------------------------------
>
>                 Key: MESOS-3023
>                 URL: https://issues.apache.org/jira/browse/MESOS-3023
>             Project: Mesos
>          Issue Type: Task
>            Reporter: Artem Harutyunyan
>            Priority: Minor
>              Labels: beginner, mesosphere, newbie
>
> fetcher_test.cpp uses the following code for generating URLs:
> string url = "http://" + net::getHostname(process.self().address.ip).get() + ":" + stringify(process.self().address.port)
+ "/" + process.self().id
> it would be good to isolate that code in a function, and replace the code above with
something like:
> string url = "http://" + endpoint_url(process, "uri_test");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message