Ejemplo n.º 1
0
  @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());
  }
Ejemplo n.º 2
0
 @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);
 }
Ejemplo n.º 3
0
 @XmlRpcMethod(alias = "flux", method = "all_domains")
 public List<Object> getAllDomains() {
   Collection<FluxDomain> fluxDomains = monitor.getAllDomains();
   return marshalDomains(fluxDomains);
 }