Lightweight Bartering Grid

lbg.common.net
Class CommonNetHandling

java.lang.Object
  extended by lbg.common.net.CommonNetHandling

public abstract class CommonNetHandling
extends java.lang.Object

A CommonNetHandling provides common Net handling routines.

Author:
Cyril Briquet

Constructor Summary
CommonNetHandling()
           
 
Method Summary
static int getCoresCount()
           
static java.lang.String getLocalHostName()
           
static boolean isValidPort(int port)
           
static java.net.URL loadRandomURLSafely(java.lang.String[] target_url)
           
static java.net.URL loadURLSafely(java.lang.String target_url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonNetHandling

public CommonNetHandling()
Method Detail

isValidPort

public static boolean isValidPort(int port)

getLocalHostName

public static java.lang.String getLocalHostName()
                                         throws GridException
Throws:
GridException

loadURLSafely

public static java.net.URL loadURLSafely(java.lang.String target_url)

loadRandomURLSafely

public static java.net.URL loadRandomURLSafely(java.lang.String[] target_url)

getCoresCount

public static int getCoresCount()

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.