-
Notifications
You must be signed in to change notification settings - Fork 12
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
PIOT-GDA-02-002: Create module - SystemPerformanceManager #48
Comments
Added: This will not resolve: When I comment it out the test import and run the tests PyUnit just says Runs 1/1 and Finished in 60.46 secs. There is no log output printed in the console. How do I get some log output? I am using Eclipse IDE Version: 2023-03 (4.27.0) Build id: 20230309-1520 |
Added an example to the Action 'Import the java.util.logging logging framework. You can import all, or just Level and Logger.' As the reader works through each exercise, and moves into the following lab modules, the minor detail will become less specific (e.g., an action may simply indicate 'Import the requisite module(s) / class(es)', and the focus will center on the logic details. To run tests within the GDA project, you'll need to execute them using JUnit, not PyUnit. Once this is done, I would expect to see log output similar to the example shown within the Console tab of Eclipse (other IDE's may have a different mechanism for displaying console output of course). |
I should have said that I was using JUnit. So any suggestions on why I don't get any output from the test run. Did you want to add |
Added logger declaration into sample code. As for logging within the console, there could be a number of reasons why log messages aren't showing up. Here are a few things to consider:
|
Description
Review the README
Estimated effort may vary greatly
Actions
NOTE: The implementation examples depicted here are only one way to implement the requirements listed. Your own implementation may vary of course.
programmingtheiot\gda
source folder namedsystem
and navigate to that folder.public SystemPerformanceManager()
this.pollRate
: useConfigUtil
to retrieve the integer propertyConfigConst.POLL_CYCLES_KEY
from theConfigConst.GATEWAY_DEVICE
config file section, withConfigConst.DEFAULT_POLL_CYCLES
as the default value.startManager()
method, and log an info message indicating manager was started.stopManager()
method, and log an info message indicating manager was stopped.Estimate
Tests
The text was updated successfully, but these errors were encountered: