Class DebugConfigurationFromProperties
- java.lang.Object
-
- com.sun.identity.shared.debug.file.impl.DebugConfigurationFromProperties
-
- All Implemented Interfaces:
DebugConfiguration
public class DebugConfigurationFromProperties extends Object implements DebugConfiguration
Read debug configuration from a properties file.
-
-
Constructor Summary
Constructors Constructor Description DebugConfigurationFromProperties(String debugFilePropertiesPath)initialize the properties It will reset the current properties for every Debug instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDebugPrefix()Get the debug prefix configurationStringgetDebugSuffix()Get the debug suffix configuration Suffix is an empty string or contains a date format if the rotation interval is enable (rotation interval > 0)longgetRotationFileSizeInByte()get size rotation in byteintgetRotationInterval()get rotation interval in minute Rotation interval can't be <= 0StringtoString()
-
-
-
Constructor Detail
-
DebugConfigurationFromProperties
public DebugConfigurationFromProperties(String debugFilePropertiesPath) throws InvalidDebugConfigurationException
initialize the properties It will reset the current properties for every Debug instance- Parameters:
debugFilePropertiesPath- path to the debug configuration file- Throws:
InvalidDebugConfigurationException
-
-
Method Detail
-
getDebugPrefix
public String getDebugPrefix()
Description copied from interface:DebugConfigurationGet the debug prefix configuration- Specified by:
getDebugPrefixin interfaceDebugConfiguration- Returns:
- prefix
-
getDebugSuffix
public String getDebugSuffix()
Description copied from interface:DebugConfigurationGet the debug suffix configuration Suffix is an empty string or contains a date format if the rotation interval is enable (rotation interval > 0)- Specified by:
getDebugSuffixin interfaceDebugConfiguration- Returns:
- suffix
-
getRotationInterval
public int getRotationInterval()
Description copied from interface:DebugConfigurationget rotation interval in minute Rotation interval can't be <= 0- Specified by:
getRotationIntervalin interfaceDebugConfiguration- Returns:
- the number of minutes before rotating a file. If <= 0, the rotation is disable.
-
getRotationFileSizeInByte
public long getRotationFileSizeInByte()
Description copied from interface:DebugConfigurationget size rotation in byte- Specified by:
getRotationFileSizeInBytein interfaceDebugConfiguration- Returns:
- the maximum file size in byte. If <= 0, the rotation is disable.
-
-