/** * Creates a new data input based on the input kind. * * @param name Depending on the type of data input, a string that contains: * <ul><li>The filename or directory and path (for monitor and oneshot * inputs)</li> * <li> The script name (for script inputs)</li> * <li> The port number (for TCP and UDP inputs)</li> * <li> The collection name (for Windows Perfmon and WMI inputs)</li> * <li> The stanza (for Windows Registry inputs)</li> * <li> The name of the configuration (for Windows AD inputs)</li></ul> * @param kind A member of {@code InputKind}, indicating the type of input. * @param <T> The implicit type of the input. * @return The {@code Input} that was created. */ public <T extends Input> T create(String name, InputKind kind) { return (T)create(name, kind, (Map<String, Object>)null); }