|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.logging.Diagnostics
public final class Diagnostics
Provides utilities for creating diagnostic files. Diagnostics are off by default.
Method Summary | |
---|---|
static java.lang.String |
basicConfigurationData() Returns a String containing basic configuration data about the execution environment. |
static java.io.File |
getDiagnosticDirectory() Returns the diagnostic directory. |
static boolean |
isLockedFile(java.io.File file) Returns true if the specified file is a locked diagnostic file that should not be transmitted. |
static boolean |
isOn() Returns true if the diagnostics are being saved in the diagnostics directory located in the system directory.. |
static java.io.File |
newFile(java.lang.String prefix) Creates a new diagnostic File. |
static java.io.File |
newFile(java.lang.String prefix, java.lang.String suffix) Creates a new diagnostic File. |
static java.io.File |
newLockedFile(java.lang.String prefix) Returns a diagnostic file which will be locked. |
static void |
setDiagnosticDirectory(java.io.File diagnosticDirectory) Sets the directory to use for diagnostic files. |
static java.lang.String |
systemProperties() Returns a String containing the names and values of all system properties defined in the current configuration. |
static void |
writeBanner(java.io.Writer w, java.lang.String bannerText) Writes a banner to the specified writer. |
static void |
writeSystemConfiguration(java.io.Writer w) Writes information about the current system configuration to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.File getDiagnosticDirectory()
public static void setDiagnosticDirectory(java.io.File diagnosticDirectory)
diagnosticDirectory
- the directory to use for diagnostic files.java.lang.IllegalArgumentException
- if the diagnosticDirectory exists and is not a directory, or does not exist and could not be created.public static boolean isLockedFile(java.io.File file)
file
-public static boolean isOn()
public static java.io.File newLockedFile(java.lang.String prefix)
prefix
-public static java.io.File newFile(java.lang.String prefix, java.lang.String suffix)
prefix
- an identifying prefix for the file. May be null.suffix
- a suffix for the file. May be null.public static java.io.File newFile(java.lang.String prefix)
prefix
- an identifying prefix for the file.public static void writeBanner(java.io.Writer w, java.lang.String bannerText)
w
- a writer to write to.bannerText
- the text for the banner.public static void writeSystemConfiguration(java.io.Writer w) throws java.io.IOException
w
- a writer to write to.java.io.IOException
public static java.lang.String basicConfigurationData()
public static java.lang.String systemProperties()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |