GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DynamicWorkerDefinitionMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 53
rs 10
ccs 0
cts 10
cp 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A send_message() 0 9 1
B __init__() 0 30 1
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from enarksh.message.Message import Message
9
10
11
class DynamicWorkerDefinitionMessage(Message):
12
    """
13
    Message type for loading a dynamic worker definition.
14
    """
15
    MESSAGE_TYPE = 'controller:DynamicWorkerDefinitionMessage'
16
    """
17
    The message type.
18
19
    :type: str
20
    """
21
22
    # ------------------------------------------------------------------------------------------------------------------
23
    def __init__(self, sch_id, rnd_id, xml):
24
        """
25
        Object constructor.
26
27
        :param int sch_id: The ID of the schedule.
28
        :param int rnd_id: The ID of the run node.
29
        :param int xml: The XML with the dynamic worker definition.
30
        """
31
        Message.__init__(self, DynamicWorkerDefinitionMessage.MESSAGE_TYPE)
32
33
        self.sch_id = sch_id
34
        """
35
        The ID of the schedule.
36
37
        :type: int
38
        """
39
40
        self.rnd_id = rnd_id
41
        """
42
        The ID of the run node.
43
44
        :type: int
45
        """
46
47
        self.xml = xml
48
        """
49
        The XML with the dynamic worker definition.
50
51
        :type: str
52
        """
53
54
    # ------------------------------------------------------------------------------------------------------------------
55
    def send_message(self, end_point):
56
        """
57
        Sends the message to an end point.
58
59
        :param str end_point: The end point.
60
61
        :rtype: None
62
        """
63
        self.message_controller.send_message(end_point, self)
64
65
# ----------------------------------------------------------------------------------------------------------------------
66