You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create the SystemMemUtilTask module and implement the functionality to retrieve JVM memory utilization.
Review the README
Please see README.md for further information on, and use of, this content.
License for embedded documentation and source codes: PIOT-DOC-LIC
Estimated effort may vary greatly
The estimated level of effort for this exercise shown in the 'Estimate' section below is a very rough approximation. The actual level of effort may vary greatly depending on your development and test environment, experience with the requisite technologies, and many other factors.
Actions
NOTE: The implementation examples depicted here are only one way to implement the requirements listed. Your own implementation may vary of course.
Within the programmingtheiot.gda.system package, create a new Java class named SystemMemUtilTask. This should be derived from BaseSystemUtilTask.
Import statements should include the following (you may choose to include the Logger for debugging):
Add in an override for the inherited template method getTelemetryValue(). It will retrieve JVM memory utilization and return the value as a float. Use the @Override annotation and be sure to remove the abstract keyword if you're copying / pasting from the base class. You'll have to perform a simple calculation to derive this, as follows:
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.system
package, create a new Java class namedSystemMemUtilTask
. This should be derived from BaseSystemUtilTask.getTelemetryValue()
. It will retrieve JVM memory utilization and return the value as a float. Use the@Override
annotation and be sure to remove the abstract keyword if you're copying / pasting from the base class. You'll have to perform a simple calculation to derive this, as follows:Estimate
Tests
./system/SystemMemUtilTaskTest
. ThetestGetTelemetryValue()
unit test should pass while logging values between 0.0% and 100.0%.The text was updated successfully, but these errors were encountered: