Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TFS
controller
Compare revisions
55deaf8425de3a736a5fbf574295a2477f9a793e...a39e8f074701d1d79af7fc71e593ca71da39d6d2
Commits (2)
"TelemetryFrontendServiceServicerImpl" file added
· b7df322b
Waleed Akbar
authored
Apr 24, 2024
b7df322b
Initial "TelemetryFrontendService" generic file added
· a39e8f07
Waleed Akbar
authored
Apr 24, 2024
a39e8f07
Hide whitespace changes
Inline
Side-by-side
src/telemetry_frontend/service/TelemetryFrontendService.py
0 → 100644
View file @
a39e8f07
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
common.Constants
import
ServiceNameEnum
from
common.Settings
import
get_service_port_grpc
from
monitoring.service.NameMapping
import
NameMapping
from
common.tools.service.GenericGrpcService
import
GenericGrpcService
from
common.proto.telemetry_frontend_pb2_grpc
import
add_TelemetryFrontendServiceServicer_to_server
from
telemetryfrontend.service.TelemetryFrontendServiceServicerImpl
import
TelemetryFrontendServiceServicerImpl
class
TelemetryFrontendService
(
GenericGrpcService
):
def
__init__
(
self
,
name_mapping
:
NameMapping
,
cls_name
:
str
=
__name__
)
->
None
:
port
=
get_service_port_grpc
(
ServiceNameEnum
.
TELEMETRYFRONTEND
)
super
().
__init__
(
port
,
cls_name
=
cls_name
)
self
.
telemetry_frontend_servicer
=
TelemetryFrontendServiceServicerImpl
(
name_mapping
)
def
install_servicers
(
self
):
add_TelemetryFrontendServiceServicer_to_server
(
self
.
telemetry_frontend_servicer
,
self
.
server
)
src/telemetry_frontend/service/TelemetryFrontendServiceServicerImpl.py
0 → 100644
View file @
a39e8f07
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
\ No newline at end of file