java.lang.Object
com.github.eventmanager.filehandlers.config.OutputEntry

public class OutputEntry extends Object
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 Details

    • OutputEntry

      public OutputEntry(String name, Map<String,Object> parameters)
      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()