oemware.core.util
Class SystemUtils

java.lang.Object
  extended by oemware.core.util.SystemUtils

public final class SystemUtils
extends java.lang.Object

The system utils.

Version:
$Id: SystemUtils.java 13 2008-06-15 19:43:04Z oemware $

Constructor Summary
SystemUtils()
           
 
Method Summary
static void addShutdownHookThread()
          Add the shutdown hook thread.
static java.lang.String getSystemProperty(java.lang.String pParamName)
          Returns the property or dies.
static int getSystemPropertyInt(java.lang.String pParamName)
          Returns the property or exception.
static short getSystemPropertyShort(java.lang.String pParamName)
          Returns the property or exception.
static void startDaemonThread()
          Start the daemon thread.
static void stopDaemonThread()
          Stop the daemon thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemUtils

public SystemUtils()
Method Detail

startDaemonThread

public static void startDaemonThread()
                              throws CoreException
Start the daemon thread.

Throws:
CoreException

stopDaemonThread

public static void stopDaemonThread()
                             throws CoreException
Stop the daemon thread.

Throws:
CoreException

addShutdownHookThread

public static void addShutdownHookThread()
                                  throws CoreException
Add the shutdown hook thread.

Throws:
CoreException

getSystemPropertyInt

public static final int getSystemPropertyInt(java.lang.String pParamName)
                                      throws CoreException
Returns the property or exception. All of these are required properties.

Parameters:
pParamName - The param name - e.g., oemware.instance.id.
Returns:
The value.
Throws:
CoreException.
CoreException

getSystemPropertyShort

public static final short getSystemPropertyShort(java.lang.String pParamName)
                                          throws CoreException
Returns the property or exception. All of these are required properties.

Parameters:
pParamName - The param name - e.g., oemware.instance.id.
Returns:
The value.
Throws:
CoreException.
CoreException

getSystemProperty

public static final java.lang.String getSystemProperty(java.lang.String pParamName)
                                                throws CoreException
Returns the property or dies. All of these are required properties.

Parameters:
pParamName - The param name - e.g., oemware.instance.id.
Returns:
The value.
Throws:
CoreException


Copyright © 2008 Deft Labs - Released under LGPL, Version 3.0