![JAR search and dependency download from the Maven repository](/logo.png)
com.nitorcreations.willow.metrics.HostInfoMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of willow-servers Show documentation
Show all versions of willow-servers Show documentation
Willow operational servlets and servers
The newest version!
package com.nitorcreations.willow.metrics;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Named;
import com.nitorcreations.willow.messages.HostInfoMessage;
import com.nitorcreations.willow.messages.metrics.MetricConfig;
@Named("/hostinfo")
public class HostInfoMetric extends FullMessageMetric> {
@Override
protected Collection processData(long start, long stop, int step, MetricConfig conf) {
Map map = new HashMap<>();
for (HostInfoMessage him : rawData.values()) {
map.put(him.getInstance(), him);
}
return map.values();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy