Module com.github.eventmanager
Class OutputEntry
java.lang.Object
com.github.eventmanager.filehandlers.config.OutputEntry
The OutputEntry class holds the configuration settings for the event outputs.
It includes settings for the name of the output and its parameters.
This example demonstrates how to create an OutputEntry object to print output:
OutputEntry outputEntry = new OutputEntry();
outputEntry.setName("PrintOutput");
outputEntry.setParameters();
LogHandler logHandler = new LogHandler();
logHandler.setOutput(outputEntry);
This class is used to configure a socket output for the events.
OutputEntry socketOutput = new OutputEntry();
socketOutput.setName("SocketOutput");
socketOutput.setParameters(Map.of("socketSettings",
List.of(
new SocketEntry("localhost", 6000)
)
));
EventManager eventManager = new EventManager();
eventManager.setOutput(socketOutput);
-
Constructor Summary
ConstructorsConstructorDescriptionOutputEntry
(String name, Map<String, Object> parameters) Constructor to initialize the OutputEntry with a name and parameters. -
Method Summary
-
Constructor Details
-
OutputEntry
Constructor to initialize the OutputEntry with a name and parameters.- Parameters:
name
- The name of the output.parameters
- The parameters for the output.
-
OutputEntry
public OutputEntry()
-