public class

DefaultPaths

extends Object
java.lang.Object
   ↳ com.sun.jmx.snmp.defaults.DefaultPaths

Class Overview

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

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

Public Methods
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(String dirname)
Returns the installation directory for Java DMK concatenated with dirname.
static String getInstallDir()
Returns the installation directory for Java DMK.
static String getTmpDir(String dirname)
Returns the tmp directory for Java DMK concatenated with dirname.
static String getTmpDir()
Returns the tmp directory for the product.
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
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getEtcDir ()

Returns the etc directory for Java DMK.

The default value of the etc directory is:

  • DefaultPaths.getInstallDir("etc").

Returns
  • Java DMK etc directory.

public static String getEtcDir (String dirname)

Returns the etc directory for Java DMK concatenated with dirname.

The default value of the etc directory is:

  • DefaultPaths.getInstallDir("etc").

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

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.

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.

public static String getTmpDir (String dirname)

Returns the tmp directory for Java DMK concatenated with dirname.

The default value of the tmp directory is:

  • DefaultPaths.getInstallDir("tmp").

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

public static String getTmpDir ()

Returns the tmp directory for the product.

The default value of the tmp directory is:

  • DefaultPaths.getInstallDir("tmp").

Returns
  • Java DMK tmp directory.

public static void setEtcDir (String dirname)

Sets the etc directory for Java DMK.

Parameters
dirname The etc directory for Java DMK.

public static void setInstallDir (String dirname)

Sets the installation directory for Java DMK.

Parameters
dirname The directory where Java DMK resides.

public static void setTmpDir (String dirname)

Sets the tmp directory for the product

Parameters
dirname The tmp directory for Java DMK.