Skip to content

Commit 7fe25eb

Browse files
authored
Merge pull request #8190 from fstagni/90_WebAppHandler
refactor: move DIRAC WebApp related RPC calls to dedicated service
2 parents c735ed7 + b1a7f17 commit 7fe25eb

File tree

16 files changed

+594
-657
lines changed

16 files changed

+594
-657
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
""" Module that contains client access to the WebApp handler.
2+
"""
3+
4+
from DIRAC.Core.Base.Client import Client, createClient
5+
6+
7+
@createClient("Monitoring/WebApp")
8+
class WebAppClient(Client):
9+
"""WebAppClient sets url for the WebAppHandler."""
10+
11+
def __init__(self, url=None, **kwargs):
12+
"""
13+
Sets URL for WebApp handler
14+
15+
:param self: self reference
16+
:param url: url of the WebAppHandler
17+
:param kwargs: forwarded to the Base Client class
18+
"""
19+
20+
super().__init__(**kwargs)
21+
22+
if not url:
23+
self.serverURL = "Monitoring/WebApp"
24+
25+
else:
26+
self.serverURL = url

src/DIRAC/MonitoringSystem/ConfigTemplate.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ Services
2828
}
2929
}
3030
##END
31+
##BEGIN WebApp
32+
WebApp
33+
{
34+
Port = 9199
35+
Authorization
36+
{
37+
Default = authenticated
38+
}
39+
}
3140
}

0 commit comments

Comments
 (0)