Package com.splunk

Examples of com.splunk.ServiceArgs


    }

    private List<SplunkEvent> savedSearch() throws Exception {
        LOG.trace("saved search start");

        ServiceArgs queryArgs = new ServiceArgs();
        queryArgs.setApp("search");
        if (ObjectHelper.isNotEmpty(endpoint.getConfiguration().getOwner())) {
            queryArgs.setOwner(endpoint.getConfiguration().getOwner());
        }
        if (ObjectHelper.isNotEmpty(endpoint.getConfiguration().getApp())) {
            queryArgs.setApp(endpoint.getConfiguration().getApp());
        }

        Calendar startTime = Calendar.getInstance();

        SavedSearch search = null;
View Full Code Here


    public void setUseSunHttpsHandler(boolean useSunHttpsHandler) {
        this.useSunHttpsHandler = useSunHttpsHandler;
    }

    public synchronized Service createService(CamelContext camelContext) {
        final ServiceArgs args = new ServiceArgs();
        if (host != null) {
            args.setHost(host);
        }
        if (port > 0) {
            args.setPort(port);
        }
        if (scheme != null) {
            args.setScheme(scheme);
        }
        if (app != null) {
            args.setApp(app);
        }
        if (owner != null) {
            args.setOwner(owner);
        }

        args.setUsername(username);
        args.setPassword(password);
        // useful in cases where you want to bypass app. servers https handling
        // (wls i'm looking at you)
        if (isUseSunHttpsHandler()) {
            String sunHandlerClassName = "sun.net.www.protocol.https.Handler";
            Class<URLStreamHandler> clazz = camelContext.getClassResolver().resolveClass(sunHandlerClassName, URLStreamHandler.class);
            if (clazz != null) {
                URLStreamHandler handler = camelContext.getInjector().newInstance(clazz);
                args.setHTTPSHandler(handler);
                LOG.debug("using the URLStreamHandler {} for {}", handler, args);
            } else {
                LOG.warn("could not resolve and use the URLStreamHandler class '{}'", sunHandlerClassName);
            }
        }
View Full Code Here

    }

    private List<SplunkEvent> savedSearch(SplunkResultProcessor callback) throws Exception {
        LOG.trace("saved search start");

        ServiceArgs queryArgs = new ServiceArgs();
        queryArgs.setApp("search");
        if (ObjectHelper.isNotEmpty(endpoint.getConfiguration().getOwner())) {
            queryArgs.setOwner(endpoint.getConfiguration().getOwner());
        }
        if (ObjectHelper.isNotEmpty(endpoint.getConfiguration().getApp())) {
            queryArgs.setApp(endpoint.getConfiguration().getApp());
        }

        Calendar startTime = Calendar.getInstance();

        SavedSearch search = null;
View Full Code Here

TOP

Related Classes of com.splunk.ServiceArgs

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.