/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.baja.sys.BComponent * javax.baja.sys.Property * javax.baja.sys.Sys * javax.baja.sys.Type */ package com.tridium.platform.tcpip; import javax.baja.sys.BComponent; import javax.baja.sys.Property; import javax.baja.sys.Sys; import javax.baja.sys.Type; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BPingArgs extends BComponent { public static final Property destHost = BPingArgs.newProperty((int)0, (String)"", null); public static final Property timeout = BPingArgs.newProperty((int)0, (int)5, null); public static final Type TYPE; boolean isIpv6; static /* synthetic */ Class class$com$tridium$platform$tcpip$BPingArgs; public String getDestHost() { return this.getString(destHost); } public void setDestHost(String string) { this.setString(destHost, string, null); } public int getTimeout() { return this.getInt(timeout); } public void setTimeout(int n) { this.setInt(timeout, n, null); } public Type getType() { return TYPE; } static /* synthetic */ Class class(String string, boolean bl) { try { Class clazz = Class.forName(string); if (!bl) { clazz = clazz.getComponentType(); } return clazz; } catch (ClassNotFoundException classNotFoundException) { throw new NoClassDefFoundError(classNotFoundException.getMessage()); } } private final /* synthetic */ void this() { this.isIpv6 = false; } public BPingArgs() { this(false); } public BPingArgs(boolean bl) { this.this(); if (bl) { this.setDestHost("::1"); } else { this.setDestHost("127.0.0.1"); } } public BPingArgs(String string) { this.this(); this.setDestHost(string); } public BPingArgs(String string, int n) { this.this(); this.setDestHost(string); this.setTimeout(n); } static { Class clazz = class$com$tridium$platform$tcpip$BPingArgs; if (clazz == null) { clazz = class$com$tridium$platform$tcpip$BPingArgs = BPingArgs.class("[Lcom.tridium.platform.tcpip.BPingArgs;", false); } TYPE = Sys.loadType((Class)clazz); } }