@Test public void shouldProvideStatisticsImmediatelyAfterStartup() throws Exception { History history = repository.getRepositoryStatistics() .getHistory(ValueMetric.WORKSPACE_COUNT, Window.PREVIOUS_60_SECONDS); Statistics[] stats = history.getStats(); assertThat(stats.length, is(not(0))); assertThat(history.getTotalDuration(TimeUnit.SECONDS), is(60L)); System.out.println(history); }
public RepositoryStatistics getRepositoryStatistics() { return statistics(); }
JcrRepository implements org.modeshape.jcr.api.Repository { public RepositoryStatistics getRepositoryStatistics() { return statistics(); } }
JcrRepository implements org.modeshape.jcr.api.Repository { public RepositoryStatistics getRepositoryStatistics() { return statistics(); } protected  JcrRepository( RepositoryConfiguration configuration ); }
JcrRepository implements org.modeshape.jcr.api.Repository { public RepositoryStatistics getRepositoryStatistics() { return statistics(); } protected  JcrRepository( RepositoryConfiguration configuration ); State getState(); @Override String getName(); @Override int getActiveSessionsCount(); RepositoryStatistics getRepositoryStatistics(); Problems getStartupProblems(); Transactions transactions(); RepositoryConfiguration getConfiguration(); @Override String getDescriptor( String key ); @Override JcrValue getDescriptorValue( String key ); @Override JcrValue[] getDescriptorValues( String key ); @Override boolean isSingleValueDescriptor( String key ); @Override boolean isStandardDescriptor( String key ); @Override String[] getDescriptorKeys(); @Override synchronized JcrSession login(); @Override synchronized JcrSession login( Credentials credentials ); @Override synchronized JcrSession login( String workspaceName ); @Override synchronized JcrSession login( final Credentials credentials,
                                          String workspaceName ); }
JcrRepository implements org.modeshape.jcr.api.Repository { public RepositoryStatistics getRepositoryStatistics() { return statistics(); } protected  JcrRepository( RepositoryConfiguration configuration ); State getState(); @Override String getName(); @Override int getActiveSessionsCount(); RepositoryStatistics getRepositoryStatistics(); Problems getStartupProblems(); Transactions transactions(); RepositoryConfiguration getConfiguration(); @Override String getDescriptor( String key ); @Override JcrValue getDescriptorValue( String key ); @Override JcrValue[] getDescriptorValues( String key ); @Override boolean isSingleValueDescriptor( String key ); @Override boolean isStandardDescriptor( String key ); @Override String[] getDescriptorKeys(); @Override synchronized JcrSession login(); @Override synchronized JcrSession login( Credentials credentials ); @Override synchronized JcrSession login( String workspaceName ); @Override synchronized JcrSession login( final Credentials credentials,
                                          String workspaceName );  }