Examples of ResourceMonitorIfc


Examples of tigase.server.sreceiver.sysmon.ResourceMonitorIfc

    if (mons != null) {
      selected_monitors = mons;
      monitors.clear();
      for (String string : mons) {
        try {
          ResourceMonitorIfc resMon =
                  (ResourceMonitorIfc) Class.forName(string).newInstance();
          String monJid = getJID() + "/" + resMon.getClass().getSimpleName();
          resMon.init(monJid, warning_treshold, this);
          monitors.put(monJid, resMon);
          log.config("Loaded resource monitor: " + monJid);
        } catch (Exception ex) {
          log.log(Level.SEVERE,
                  "Can't instantiate resource monitor: " + string, ex);
View Full Code Here

Examples of tigase.server.sreceiver.sysmon.ResourceMonitorIfc

  @Override
  protected void processMessage(Packet packet, Queue<Packet> results) {
    if (isPostCommand(packet)) {
      runCommand(packet, results);
    } else {
      ResourceMonitorIfc monitor = monitorForCommand(packet);
      if (monitor != null) {
        runMonitorCommand(monitor, packet, results);
      } else {
        String body = packet.getElemCData("/message/body");
        results.offer(Packet.getMessage(packet.getElemFrom(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.