@XmlRpcMethod(alias = "flux", method = "hosts") public List<Object> getHosts(String domain) { FluxDomain fluxDomain = monitor.getDomain(domain); if (fluxDomain == null) return new ArrayList<Object>(); return marshalHosts(fluxDomain.getHosts()); }
@XmlRpcMethod(alias = "flux", method = "active_domains") public List<Object> getActiveDomains(int minutes) { Date baseline = getBaseline(minutes); Collection<FluxDomain> fluxDomains = monitor.getActiveDomains(baseline); return marshalDomains(fluxDomains); }
@XmlRpcMethod(alias = "flux", method = "all_domains") public List<Object> getAllDomains() { Collection<FluxDomain> fluxDomains = monitor.getAllDomains(); return marshalDomains(fluxDomains); }