Package com.microstrategy.utils
Class StdOutErrToFile
- java.lang.Object
-
- com.microstrategy.utils.StdOutErrToFile
-
- All Implemented Interfaces:
StdOutErrToFileMXBean
public class StdOutErrToFile extends java.lang.Object implements StdOutErrToFileMXBean
JMX bean to redirect Java standard out and err streams to a file.
-
-
Constructor Summary
Constructors Constructor Description StdOutErrToFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEnabled()
java.lang.String
getFile()
void
printSystemProperties()
void
setEnabled(boolean enable)
void
setFile(java.io.File f)
void
setFile(java.lang.String path)
-
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enable) throws java.io.IOException
- Specified by:
setEnabled
in interfaceStdOutErrToFileMXBean
- Throws:
java.io.IOException
-
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled
in interfaceStdOutErrToFileMXBean
-
setFile
public void setFile(java.lang.String path) throws java.io.IOException
- Specified by:
setFile
in interfaceStdOutErrToFileMXBean
- Throws:
java.io.IOException
-
getFile
public java.lang.String getFile() throws java.io.IOException
- Specified by:
getFile
in interfaceStdOutErrToFileMXBean
- Throws:
java.io.IOException
-
printSystemProperties
public void printSystemProperties()
- Specified by:
printSystemProperties
in interfaceStdOutErrToFileMXBean
-
setFile
public void setFile(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
-