@Override public synchronized void logout() { // get the user id first, because calling terminate may cleanup the security context and loose this information String userID = getUserID(); terminate(true); try { RunningState running = repository.runningState(); long lifetime = Math.abs(System.nanoTime() - this.nanosCreated); Map<String, String> payload = Collections.singletonMap("userId", userID); running.statistics().recordDuration(DurationMetric.SESSION_LIFETIME, lifetime, TimeUnit.NANOSECONDS, payload); running.statistics().decrement(ValueMetric.SESSION_COUNT); running.removeSession(this); } catch (IllegalStateException e) { // The repository has been shutdown } finally { if (bufferMgr != null) { try { bufferMgr.close(); } finally { bufferMgr = null; } } } }
@Override public synchronized void logout() { // get the user id first, because calling terminate may cleanup the security context and loose this information String userID = getUserID(); terminate(true); try { RunningState running = repository.runningState(); long lifetime = Math.abs(System.nanoTime() - this.nanosCreated); Map<String, String> payload = Collections.singletonMap("userId", userID); running.statistics().recordDuration(DurationMetric.SESSION_LIFETIME, lifetime, TimeUnit.NANOSECONDS, payload); running.statistics().decrement(ValueMetric.SESSION_COUNT); running.removeSession(this); } catch (IllegalStateException e) { // The repository has been shutdown } finally { if (bufferMgr != null) { try { bufferMgr.close(); } finally { bufferMgr = null; } } } }
JcrSession inputSession = null; JcrSession outputSession = null; final RepositoryStatistics stats = repository.statistics(); Sequencer sequencer = null; String sequencerName = null;
ChangeBus localBus = new RepositoryChangeBus(name(), changeDispatchingQueue, statistics(), config.getEventBusSize()); this.changeBus = clusteringService != null ? new ClusteredChangeBus(localBus, clusteringService) : localBus; this.changeBus.start();
ChangeBus localBus = new RepositoryChangeBus(name(), changeDispatchingQueue, statistics(), config.getEventBusSize()); this.changeBus = clusteringService != null ? new ClusteredChangeBus(localBus, clusteringService) : localBus; this.changeBus.start();
JcrSession inputSession = null; JcrSession outputSession = null; final RepositoryStatistics stats = repository.statistics(); Sequencer sequencer = null; String sequencerName = null;
protected final RepositoryStatistics statistics() { return repository.statistics(); }
protected final RepositoryStatistics statistics() { return runningState().statistics(); }
protected final RepositoryStatistics statistics() { return repository.statistics(); }
protected final RepositoryStatistics statistics() { return runningState().statistics(); }