コード例 #1
0
ファイル: JmxDiscoverAgent.java プロジェクト: fbacchella/jrds
  @Override
  public List<FieldInfo> getFields() {
    FieldInfo port = new FieldInfo();
    port.dojoType = DojoType.TextBox;
    port.id = "discoverJmxPort";
    port.label = "JMX Port";
    port.value = "";

    FieldInfo protocol = new FieldInfo();
    protocol.dojoType = DojoType.TextBox;
    protocol.id = "discoverJmxProtocol";
    protocol.label = "JMX protocol";
    protocol.value = "rmi";

    FieldInfo user = new FieldInfo();
    user.dojoType = DojoType.TextBox;
    user.id = "discoverJmxUser";
    user.label = "JMX user";
    user.value = "";

    FieldInfo password = new FieldInfo();
    password.dojoType = DojoType.TextBox;
    password.id = "discoverJmxPassword";
    password.label = "JMX password";
    password.value = "";

    return Arrays.asList(port, protocol, user, password);
  }
コード例 #2
0
  @Override
  public List<FieldInfo> getFields() {
    FieldInfo community = new FieldInfo();
    community.dojoType = DojoType.TextBox;
    community.id = "discoverSnmpCommunity";
    community.label = "SNMP community";
    community.value = "public";

    FieldInfo port = new FieldInfo();
    port.dojoType = DojoType.TextBox;
    port.id = "discoverSnmpPort";
    port.label = "SNMP Port";
    port.value = "161";

    FieldInfo keepOID = new FieldInfo();
    keepOID.dojoType = DojoType.ToggleButton;
    keepOID.id = "discoverWithOid";
    keepOID.label = " Keep index OID ";
    keepOID.value = "false";

    return Arrays.asList(community, port, keepOID);
  }