-
Notifications
You must be signed in to change notification settings - Fork 1
Add ActiveMQ connection in continuous mode and fix monitor_url/env handling in fastmon client #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -260,7 +260,21 @@ def start_continuous_monitoring(self): | |
| NOTE: Intended for development and testing purposes. | ||
| """ | ||
| self.logger.info("Starting continuous fast monitoring (DEV MODE)...") | ||
|
|
||
|
|
||
| # Connect to ActiveMQ | ||
| # TODO: abstract the connection with the message queue (check methods in swf-common-lib) | ||
| self.conn.connect( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, now I get it! This part is implemented in the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will address it in a upcoming PR, following the discussion with @buddhasystem |
||
| self.mq_user, | ||
| self.mq_password, | ||
| wait=True, | ||
| version='1.1', | ||
| headers={ | ||
| 'client-id': self.agent_name, | ||
| 'heart-beat': '30000,30000' # Send heartbeat every 30sec, expect server every 30sec | ||
| } | ||
| ) | ||
| self.mq_connected = True | ||
|
|
||
| try: | ||
| while True: | ||
| tf_files_created = self._emulate_stf_registration_and_sampling() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.