Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Conversation

@mcolmant
Copy link
Contributor

@mcolmant mcolmant commented Apr 7, 2016

Each base component has now is own supervisor, a Clock is not started automatically anymore (allows to have external "ticks", a new display for InfluxDB was written.
Travis-ci is now used to publish automatically the artefacts when a tag is created.

mcolmant and others added 4 commits March 14, 2016 15:32
…utomatically created anymore

A Clock for producing periodic ticks is created only when the "every(frequency)" method is called on a PowerMonitoring object.
It allows then to have external ticks when needed.
Sensors, formulae and reporters have now their own Supervisor, and each component actor is now responsible to handle one target at a time.
Two reporters are not refactored yet (Rest, Fuse).

refactor(tests): improve the coverage, and clean tests

Several tests have been rewritten and cleaned.
The coverage is now up to more than 70%.

refactor(examples): change the external dependency to a local one

The examples were written to use PowerAPI as en external dependency. The dependency is now local (PowerAPIBuild), and allows to get the examples up-to-date with the powerapi-core library.
This feature adds an InfluxDB display, using the standard java API.
Use travis for building docker images on tags and publish releases.

Closes #77
@mcolmant mcolmant self-assigned this Apr 7, 2016
@mcolmant mcolmant force-pushed the develop branch 3 times, most recently from 32db677 to a0b2161 Compare April 7, 2016 20:38
case "--frequency" :: value :: tail if validate(durationR, value) =>
cliMonitorsSubcommand(options, currentMonitor ++ Map('frequency -> value), tail)
case "--self" :: tail =>
cliMonitorsSubcommand(options, currentMonitor + ('targets -> (currentMonitor.getOrElse('targets, Set[Any]()).asInstanceOf[Set[Any]] + Process(ManagementFactory.getRuntimeMXBean.getName.split("@")(0).toInt))), tail)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Scalastyle] WARNING: File line length exceeds 160 characters

if (divisor.isInfinite || divisor.isNaN) throw new IllegalArgumentException("divisor must be a finite and defined value")
else safeMul(value / divisor)
}, unit
if (divisor.isInfinite || divisor.isNaN) throw new IllegalArgumentException("divisor must be a finite and defined value")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Scalastyle] WARNING: If block needs braces

def toKiloWatts(p: Double) = p/(C2/C0)
def toMegaWatts(p: Double) = p/(C3/C0)

def toWatts(p: Double) = p / (C1 / C0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Scalastyle] WARNING: Public method must have explicit type

@rouvoy rouvoy merged commit 883f8c9 into master Apr 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants