@Override public void init(final Properties props) throws Exception { final Options options = new Options(props); options.setLogger(new OptionsLog(log)); print = options.getAll("print", OpenEJBHttpServer.Output.class); indent = print.size() > 0 && options.get("indent.xml", false); debugPayload = "true".equalsIgnoreCase(props.getProperty("debugPayload", "true")); }
@Override public void init(final Properties p) throws Exception { final Options o = new Options(p); o.setLogger(new OptionsLog(log)); this.ignore.add("localhost"); this.ignore.add("::1"); this.ignore.add("127.0.0.1"); try { final String[] ignoreList = o.get("ignore", "").split(","); for (final String s : ignoreList) { if (null != s && s.trim().length() > 0) { this.ignore.add(s.trim().toLowerCase()); } } } catch (final Exception e) { log.warning("Invalid ignore parameter. Should be a lowercase single host or comma seperated list of hosts to ignore like: ignore=host1,host2,ipv4,ipv6"); } this.multicast = o.get("bind", this.multicast); this.port = o.get("port", this.port); this.group = o.get("group", this.group); final InetAddress ia = InetAddress.getByName(this.multicast); this.address = new InetSocketAddress(ia, this.port); this.buildPacket(); }
public static void install() { SystemInstance.get().getOptions().setLogger(new OptionsLog()); }
public static void install() { SystemInstance.get().getOptions().setLogger(new OptionsLog()); }
public static void install() { SystemInstance.get().getOptions().setLogger(new OptionsLog()); }
@Override public void init(final Properties props) throws Exception { final Options options = new Options(props); options.setLogger(new OptionsLog(log)); print = options.getAll("print", OpenEJBHttpServer.Output.class); indent = print.size() > 0 && options.get("" + "" + ".xml", false); countStreams = options.get("stream.count", false); }
options.setLogger(new OptionsLog(log));
@Override public void init(final Properties props) { final Options options = new Options(props); options.setLogger(new OptionsLog(log)); host = props.getProperty("bind", host); loopbackMode = options.get("loopback_mode", loopbackMode); port = options.get("port", port); heartRate = options.get("heart_rate", heartRate); final Tracker.Builder builder = new Tracker.Builder(); builder.setGroup(props.getProperty("group", builder.getGroup())); builder.setHeartRate(heartRate); builder.setMaxMissedHeartbeats(options.get("max_missed_heartbeats", builder.getMaxMissedHeartbeats())); builder.setMaxReconnectDelay(options.get("max_reconnect_delay", builder.getMaxReconnectDelay())); builder.setReconnectDelay(options.get("reconnect_delay", builder.getReconnectDelay())); builder.setExponentialBackoff(options.get("exponential_backoff", builder.getExponentialBackoff())); builder.setMaxReconnectAttempts(options.get("max_reconnect_attempts", builder.getMaxReconnectAttempts())); tracker = builder.build(); }