Package tigase.server.sreceiver

Examples of tigase.server.sreceiver.PropertyItem


  }

  public Map<String, PropertyItem> getParams() {
    Map<String, PropertyItem> props = super.getParams();
    props.put(MONITORS_CLASSES_PROP_KEY,
            new PropertyItem(MONITORS_CLASSES_PROP_KEY,
            MONITORS_CLASSES_PROP_KEY, selected_monitors, all_monitors,
            "List of system monitors available for use"));
    props.put(WARNING_TRESHOLD_PROP_KEY,
            new PropertyItem(WARNING_TRESHOLD_PROP_KEY,
            WARNING_TRESHOLD_PROP_KEY, warning_treshold));
//  log.fine("selected_monitors: " + Arrays.toString(selected_monitors) +
//            ", all_monitors: " + Arrays.toString(all_monitors));
    return props;
  }
View Full Code Here


  }

  @Override
  public Map<String, PropertyItem> getDefaultParams() {
    Map<String, PropertyItem> defs = super.getDefaultParams();
    defs.put(DESCRIPTION_PROP_KEY, new PropertyItem(DESCRIPTION_PROP_KEY,
            DESCRIPTION_DISPL_NAME, "System Monitor Task"));
    defs.put(MESSAGE_TYPE_PROP_KEY,
            new PropertyItem(MESSAGE_TYPE_PROP_KEY,
            MESSAGE_TYPE_DISPL_NAME, MessageType.NORMAL));
    defs.put(ONLINE_ONLY_PROP_KEY,
            new PropertyItem(ONLINE_ONLY_PROP_KEY,
            ONLINE_ONLY_DISPL_NAME, false));
    defs.put(REPLACE_SENDER_PROP_KEY,
            new PropertyItem(REPLACE_SENDER_PROP_KEY,
            REPLACE_SENDER_DISPL_NAME, SenderAddress.REPLACE_SRECV));
    defs.put(SUBSCR_RESTRICTIONS_PROP_KEY,
            new PropertyItem(SUBSCR_RESTRICTIONS_PROP_KEY,
            SUBSCR_RESTRICTIONS_DISPL_NAME, SubscrRestrictions.MODERATED));
    defs.put(MONITORS_CLASSES_PROP_KEY,
            new PropertyItem(MONITORS_CLASSES_PROP_KEY,
            MONITORS_CLASSES_PROP_KEY, all_monitors, all_monitors,
            "List of system monitors available for use"));
    defs.put(WARNING_TRESHOLD_PROP_KEY,
            new PropertyItem(WARNING_TRESHOLD_PROP_KEY,
            WARNING_TRESHOLD_PROP_KEY, warning_treshold));
    return defs;
  }
View Full Code Here

TOP

Related Classes of tigase.server.sreceiver.PropertyItem

Copyright © 2018 www.massapicom. 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.