/** * Creates a writable socket to this index. * * @return The socket. * @throws IOException */ public Socket attach() throws IOException { return attach(null, null); }
/** * Creates a writable socket to this index. * * @param args Optional arguments for this stream. Valid parameters are: * "host", "host_regex", "source", and "sourcetype". * @return The socket. * @throws IOException */ public Socket attach(Args args) throws IOException { return attach(null, args); }
/** * Creates a writable socket to this index. * * @param indexName The index to write to. * @return The socket. * @throws IOException */ public Socket attach(String indexName) throws IOException { return attach(indexName, null); }
/** * Creates a writable socket to this index. * * @return The writable socket. * @throws IOException */ public Socket attach() throws IOException { Receiver receiver = service.getReceiver(); return receiver.attach(getName()); }
/** * Creates a writable socket to this index. * * @param args Optional arguments for this stream. Valid parameters are: * "host", "host_regex", "source", and "sourcetype". * @return The socket. * @throws IOException */ public Socket attach(Args args) throws IOException { Receiver receiver = service.getReceiver(); return receiver.attach(getName(), args); }