public void init(String contextName, ContextFactory factory) { super.init(contextName, factory); parseAndSetPeriod(PERIOD_PROPERTY); metricsServers = Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT); unitsTable = getAttributeTable(UNITS_PROPERTY); slopeTable = getAttributeTable(SLOPE_PROPERTY); tmaxTable = getAttributeTable(TMAX_PROPERTY); dmaxTable = getAttributeTable(DMAX_PROPERTY); try { datagramSocket = new DatagramSocket(); } catch (SocketException se) { se.printStackTrace(); } }
Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT);
Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT);
Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT);
Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT);
Util.parse(getAttribute(SERVERS_PROPERTY), DEFAULT_PORT);