Exemplo n.º 1
0
 def __init__(self, name, parent, node=None):
     if name and node:
         raise TypeError("node specified for a non-root Uri")  # pragma: no cover
     self.name, self.parent = name, parent
     if node:
         _validate_nodeid(node)
         self._node = node
Exemplo n.º 2
0
 def __init__(self, name, parent, node=None):
     if name and node:
         raise TypeError(
             "node specified for a non-root Uri")  # pragma: no cover
     self.name, self.parent = name, parent
     if node:
         _validate_nodeid(node)
         self._node = node
Exemplo n.º 3
0
 def __init__(self, actor_cls, init_params={}, initial_message=_EMPTY, nodeid=None, name=None, keep_running=False):
     if nodeid:
         _validate_nodeid(nodeid)
     self._init_params = init_params
     self._initial_message = initial_message
     self._actor_cls = actor_cls
     self._wrapper = None
     self._nodeid = nodeid
     self._name = name
     self._keep_running = keep_running
Exemplo n.º 4
0
 def __init__(self,
              actor_cls,
              init_params={},
              initial_message=_EMPTY,
              nodeid=None,
              enable_relay=False,
              name=None,
              keep_running=False):
     if nodeid:
         _validate_nodeid(nodeid)
     self._init_params = init_params
     self._initial_message = initial_message
     self._actor_cls = actor_cls
     self._wrapper = None
     self._nodeid = nodeid
     self._enable_relay = enable_relay
     self._name = name
     self._keep_running = keep_running
Exemplo n.º 5
0
def _assert_valid_nodeid(nodeid):  # pragma: no cover
    try:
        _validate_nodeid(nodeid)
    except ValueError as e:
        raise AssertionError(e.message)
Exemplo n.º 6
0
def _assert_valid_nodeid(nodeid):  # pragma: no cover
    try:
        _validate_nodeid(nodeid)
    except ValueError as e:
        raise AssertionError(e.message)