com.sun.jdmk.defaults
Class DefaultPaths

java.lang.Object
  |
  +--com.sun.jdmk.defaults.DefaultPaths

public class DefaultPaths
extends Object

This class represents a set of default directories used by Java DMK.

Since:
JDMK 5.0

Method Summary
static String getEtcDir()
          Returns the etc directory for Java DMK.
static String getEtcDir(String dirname)
          Returns the etc directory for Java DMK concatenated with dirname.
static String getInstallDir()
          Returns the installation directory for Java DMK.
static String getInstallDir(String dirname)
          Returns the installation directory for Java DMK concatenated with dirname.
static String getTmpDir()
          Returns the tmp directory for the product.
static String getTmpDir(String dirname)
          Returns the tmp directory for Java DMK concatenated with dirname.
static void setEtcDir(String dirname)
          Sets the etc directory for Java DMK.
static void setInstallDir(String dirname)
          Sets the installation directory for Java DMK.
static void setTmpDir(String dirname)
          Sets the tmp directory for the product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstallDir

public static String getInstallDir()
Returns the installation directory for Java DMK. The default value of the installation directory is: <base_dir> + File.separator + SUNWjdmk + File.separator + jdmk5.0

Returns:
Java DMK installation directory.

getInstallDir

public static String getInstallDir(String dirname)
Returns the installation directory for Java DMK concatenated with dirname. The default value of the installation directory is: <base_dir> + File.separator + SUNWjdmk + File.separator + jdmk5.0

Parameters:
dirname - The directory to be appended.
Returns:
Java DMK installation directory + File.separator + dirname.

setInstallDir

public static void setInstallDir(String dirname)
Sets the installation directory for Java DMK.

Parameters:
dirname - The directory where Java DMK resides.

getEtcDir

public static String getEtcDir()
Returns the etc directory for Java DMK.

The default value of the etc directory is:

Returns:
Java DMK etc directory.

getEtcDir

public static String getEtcDir(String dirname)
Returns the etc directory for Java DMK concatenated with dirname.

The default value of the etc directory is:

Parameters:
dirname - The directory to be appended.
Returns:
Java DMK etc directory + File.separator + dirname.

setEtcDir

public static void setEtcDir(String dirname)
Sets the etc directory for Java DMK.

Parameters:
dirname - The etc directory for Java DMK.

getTmpDir

public static String getTmpDir()
Returns the tmp directory for the product.

The default value of the tmp directory is:

Returns:
Java DMK tmp directory.

getTmpDir

public static String getTmpDir(String dirname)
Returns the tmp directory for Java DMK concatenated with dirname.

The default value of the tmp directory is:

Parameters:
dirname - The directory to be appended.
Returns:
Java DMK tmp directory + File.separator + dirname.

setTmpDir

public static void setTmpDir(String dirname)
Sets the tmp directory for the product

Parameters:
dirname - The tmp directory for Java DMK.

JMX 1.2_8   2002.10.31_20:03:55_MET

Copyright 1999-2002 Sun Microsystems, Inc.   901 San Antonio Road Palo Alto, California, 94303, U.S.A.   All Rights Reserved.