@OnStopped public void onStopped() { if (splunkService != null) { isInitialized.set(false); splunkService.logout(); splunkService = null; } }
splunkService.logout(); splunkService = createSplunkService(context); export = splunkService.export(query, exportArgs);
/** * Close connection. */ @Override public void disconnect() { try { service.logout(); } catch (Exception e) { throw new RuntimeException("closing connection", e); } }
/** * Close connection. */ @Override public void disconnect() { try{ service.logout(); } catch(Exception e){ throw new RuntimeException("closing connection", e); } }