Package com.splunk

Examples of com.splunk.Receiver


    protected void doWrite(SplunkEvent event) throws IOException {
        Index index = getIndex();
        if (index != null) {
            index.submit(args, event.toString());
        } else {
            Receiver receiver = endpoint.getService().getReceiver();
            receiver.submit(args, event.toString());
        }
    }
View Full Code Here


    }

    @Override
    protected Socket createSocket(Service service) throws IOException {
        Index indexObject = null;
        Receiver receiver = null;
        Socket socket = null;

        if (index != null) {
            indexObject = service.getIndexes().get(index);
            if (indexObject == null) {
                throw new RuntimeCamelException(String.format("cannot find index [%s]", index));
            }
            socket = indexObject.attach(args);
        } else {
            receiver = service.getReceiver();
            socket = receiver.attach(args);
        }
        socket.setTcpNoDelay(true);
        LOG.trace(String.format("created a socket on %s", socket.getRemoteSocketAddress()));
        return socket;
    }
View Full Code Here

TOP

Related Classes of com.splunk.Receiver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.