Package info.devbug.domain

Examples of info.devbug.domain.ActiveHost


                if (ip instanceof Inet4Address && ip.isReachable(100)) {
                    // Try for one tenth of a second
                    String ipv4 = ip.getHostAddress();
                    String name = ip.getHostName();
                    ActiveHost activeHost = new ActiveHost(ipv4, name);
                    availableAddressess.add(activeHost);
                    loger.log(Level.INFO, "Address %s is reachable\n", ipv4);
                }
            } catch (IOException e) {
                loger.log(Level.WARNING, "Retrieving ips error", e);
View Full Code Here


    @GET
    @Path("/test")
    @Produces(MediaType.APPLICATION_JSON)
    public ActiveHost test() {
        // String output = "Jersey say : sdfsdfdsf";
        ActiveHost host = new ActiveHost("ipv4", "name");
        /*
         * host.setName("name"); host.setLocalIP("ipv4");
         */

        // System.out.println(output);
View Full Code Here

TOP

Related Classes of info.devbug.domain.ActiveHost

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.