MCPcopy Create free account
hub / github.com/apache/mesos / agentURLPrefix

Function agentURLPrefix

src/webui/app/controllers.js:53–64  ·  view source on GitHub ↗
(agent, includeProcessId)

Source from the content-addressed store, hash-verified

51 // (e.g., hosting '/slave/log' for each agent log, we don't
52 // namespace metrics within '/metrics/snapshot', etc).
53 function agentURLPrefix(agent, includeProcessId) {
54 var port = agent.pid.substring(agent.pid.lastIndexOf(':') + 1);
55 var processId = agent.pid.substring(0, agent.pid.indexOf('@'));
56
57 var url = '//' + agent.hostname + ':' + port;
58
59 if (includeProcessId) {
60 url += '/' + processId;
61 }
62
63 return url;
64 }
65
66 function leadingMasterURLPrefix(leader_info) {
67 if (leader_info) {

Callers 2

updateFunction · 0.85
rerouteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected