|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.SystemUtils
public class SystemUtils
Miscellanous utilities for getting system resources.
Field Summary | |
---|---|
static java.lang.String |
LOCALHOST
Hostname for this machine used when no name can be found, or when the actual name doesn't matter. |
Constructor Summary | |
---|---|
SystemUtils()
|
Method Summary | |
---|---|
static void |
checkPortNotUsed(int port)
Check that a given port is not in use. |
static java.util.List<java.lang.String> |
getCurrentClasspath()
Get the current class path entries. |
static java.lang.String |
getLocalHostName()
Get the first hostname available for this machine, or "localhost" if none are available. |
static java.lang.String |
getLocalIP()
Looks up the IP number of the local host. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCALHOST
Constructor Detail |
---|
public SystemUtils()
Method Detail |
---|
public static java.lang.String getLocalIP()
public static java.lang.String getLocalHostName()
public static void checkPortNotUsed(int port)
port
- Port to check
IOFailure
- if the port cannot be bound.public static java.util.List<java.lang.String> getCurrentClasspath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |