OpenOB 3.0 alpha2 documentation

openob.node

Contents

Source code for openob.node

import sys
import time
from openob.logger import LoggerFactory
from openob.rtp.tx import RTPTransmitter
from openob.rtp.rx import RTPReceiver
from openob.link_config import LinkConfig
from gst import ElementNotFoundError


[docs]class Node(object): """ OpenOB node instance. Nodes run links. Each Node looks after its end of a link, ensuring that it remains running and tries to recover from failures, as well as responding to configuration changes. Nodes have a name; everything else is link specific. For instance, a node might be the 'studio' node, which would run a 'tx' end for the 'stl' link. Nodes have a config host which is where they store their inter-Node data and communicate with other Nodes. """ def __init__(self, node_name): """Set up a new node.""" self.node_name = node_name self.logger_factory = LoggerFactory() self.logger = self.logger_factory.getLogger('node.%s' % self.node_name)

Contents