Exemplo n.º 1
0
def initialize(tacsAddress):
	"""
	Initializes the AgentController proxy (client).
	"""
	ProbeImplementationManager.setLogger(TliLogger())
	TACC.initialize("TE", tacsAddress)
	TACC.instance().setReceivedNotificationCallback(onTriEnqueueMsgNotification)
	TACC.instance().setLogNotificationCallback(onLogNotification)
Exemplo n.º 2
0
def initialize(tacsAddress):
    """
	Initializes the AgentController proxy (client).
	"""
    ProbeImplementationManager.setLogger(TliLogger())
    TACC.initialize("TE", tacsAddress)
    TACC.instance().setReceivedNotificationCallback(
        onTriEnqueueMsgNotification)
    TACC.instance().setLogNotificationCallback(onLogNotification)
Exemplo n.º 3
0
def initialize(probePaths = ["../plugins/probes"], codecPaths = ["../plugins/codecs"]):
	# CodecManager logging diversion
	CodecManager.instance().setLogCallback(logging.getLogger("Agent.Codec").debug)
	# ProbeImplementationManager logging diversion
	ProbeImplementationManager.setLogger(logging.getLogger("Agent.Probe"))
	# Loading plugins: probes & codecs
	localPath = os.path.normpath(os.path.realpath(os.path.dirname(sys.modules[globals()['__name__']].__file__)))
	scanPlugins([ ((os.path.isabs(x) and x) or os.path.normpath(os.path.realpath('%s/%s' % (os.getcwd(), x)))) for x in codecPaths], label = "codec")
	scanPlugins([ ((os.path.isabs(x) and x) or os.path.normpath(os.path.realpath('%s/%s' % (os.getcwd(), x)))) for x in probePaths], label = "probe")