Module com.github.eventmanager
Class ConfigInternalEvents
java.lang.Object
com.github.eventmanager.filehandlers.config.ConfigInternalEvents
This class contains the configuration settings for the internal events file handler.
The configuration includes settings for the file path, file name, file extension, and whether the file handler is enabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file extension for the internal events log.Gets the file name for the internal events log.Gets the file path where the internal events log will be stored.boolean
Checks if the internal events file handler is enabled.void
setEnabled
(boolean enabled) Enables or disables the internal events file handler.void
setFileExtension
(String fileExtension) Sets the file extension for the internal events log.void
setFileName
(String fileName) Sets the file name for the internal events log.void
setFilePath
(String filePath) Sets the file path where the internal events log will be stored.
-
Constructor Details
-
ConfigInternalEvents
public ConfigInternalEvents()
-
-
Method Details
-
getFilePath
Gets the file path where the internal events log will be stored.- Returns:
- the file path as a
String
-
setFilePath
Sets the file path where the internal events log will be stored.- Parameters:
filePath
- the file path as aString
-
getFileName
Gets the file name for the internal events log.- Returns:
- the file name as a
String
-
setFileName
Sets the file name for the internal events log.- Parameters:
fileName
- the file name as aString
-
getFileExtension
Gets the file extension for the internal events log.- Returns:
- the file extension as a
String
-
setFileExtension
Sets the file extension for the internal events log.- Parameters:
fileExtension
- the file extension as aString
-
isEnabled
public boolean isEnabled()Checks if the internal events file handler is enabled.- Returns:
true
if the file handler is enabled,false
otherwise
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables the internal events file handler.- Parameters:
enabled
-true
to enable the file handler,false
to disable it
-