CoreBroker
Class IFUtils
java.lang.Object
CoreBroker.IFUtils
- public class IFUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_MAJOR
public static int VERSION_MAJOR
VERSION_MINOR
public static int VERSION_MINOR
FLAGS
public static int FLAGS
ACLINE_STATUS
public static int ACLINE_STATUS
BATTERY_STATUS
public static int BATTERY_STATUS
BATTERY_FLAGS
public static int BATTERY_FLAGS
BATTERY_PERC
public static int BATTERY_PERC
BATTERY_TIME
public static int BATTERY_TIME
USING_MINUTES
public static int USING_MINUTES
ADHOC
public static int ADHOC
INFRABASED
public static int INFRABASED
INFRABASED_WIRED
public static int INFRABASED_WIRED
IFUtils
public IFUtils()
getIFAddresses
public java.lang.String[] getIFAddresses()
getLocalHostAddresses
public java.lang.String[] getLocalHostAddresses()
isLocalAddress
public static boolean isLocalAddress(java.lang.String host)
localURI2localfile
public static java.lang.String localURI2localfile(java.net.URL url,
java.lang.String path,
java.lang.String context)
throws CBException
- Throws:
CBException
isSameURL
public static boolean isSameURL(java.lang.String u1,
java.lang.String u2)
isSameHost
public static boolean isSameHost(java.lang.String h1,
java.lang.String h2)
getEnergyInfo
public int[] getEnergyInfo()
getIFInfo
public void getIFInfo()
getNetworkInfo
public NetworkIFDescr[] getNetworkInfo()
IProute
public int IProute(java.lang.String gwIP)
getFavoritesDir
public static java.lang.String getFavoritesDir()