Package org.apache.archiva.rest.api.model

Examples of org.apache.archiva.rest.api.model.ArchivaRepositoryStatistics


            {
                log.warn( "Error retrieving repository statistics: {}", e.getMessage(), e );
            }
            if ( stats != null )
            {
                ArchivaRepositoryStatistics archivaRepositoryStatistics =
                    getModelMapper().map( stats, ArchivaRepositoryStatistics.class );
                archivaRepositoryStatistics.setDuration( archivaRepositoryStatistics.getScanEndTime().getTime()
                                                             - archivaRepositoryStatistics.getScanStartTime().getTime() );
                archivaRepositoryStatistics.setLastScanDate(
                    sdf.format( archivaRepositoryStatistics.getScanEndTime() ) );
                return archivaRepositoryStatistics;
            }

        }
        finally
View Full Code Here


            timeout -= 500;
        }

        ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader );

        ArchivaRepositoryStatistics archivaRepositoryStatistics =
            service.getManagedRepositoryStatistics( testRepoId, "en" );

        assertNotNull( archivaRepositoryStatistics );

        log.info( "archivaRepositoryStatistics: {}", archivaRepositoryStatistics.toString() );

        assertEquals( 92, archivaRepositoryStatistics.getNewFileCount() );
        assertEquals( 92, archivaRepositoryStatistics.getTotalFileCount() );

        deleteTestRepo( testRepoId );
    }
View Full Code Here

            {
                log.warn( "Error retrieving repository statistics: {}", e.getMessage(), e );
            }
            if ( stats != null )
            {
                ArchivaRepositoryStatistics archivaRepositoryStatistics =
                    getModelMapper().map( stats, ArchivaRepositoryStatistics.class );
                archivaRepositoryStatistics.setDuration( archivaRepositoryStatistics.getScanEndTime().getTime()
                                                             - archivaRepositoryStatistics.getScanStartTime().getTime() );
                archivaRepositoryStatistics.setLastScanDate(
                    sdf.format( archivaRepositoryStatistics.getScanEndTime() ) );
                return archivaRepositoryStatistics;
            }

        }
        finally
View Full Code Here

            {
                log.warn( "Error retrieving repository statistics: " + e.getMessage(), e );
            }
            if ( stats != null )
            {
                ArchivaRepositoryStatistics archivaRepositoryStatistics =
                    new BeanReplicator().replicateBean( stats, ArchivaRepositoryStatistics.class );
                archivaRepositoryStatistics.setDuration( archivaRepositoryStatistics.getScanEndTime().getTime()
                                                             - archivaRepositoryStatistics.getScanStartTime().getTime() );
                archivaRepositoryStatistics.setLastScanDate(
                    sdf.format( archivaRepositoryStatistics.getScanEndTime() ) );
                return archivaRepositoryStatistics;
            }

        }
        finally
View Full Code Here

            timeout -= 500;
        }

        ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader );

        ArchivaRepositoryStatistics archivaRepositoryStatistics =
            service.getManagedRepositoryStatistics( testRepoId, "en" );

        assertNotNull( archivaRepositoryStatistics );

        log.info( "archivaRepositoryStatistics:" + archivaRepositoryStatistics.toString() );

        assertEquals( 92, archivaRepositoryStatistics.getNewFileCount() );
        assertEquals( 92, archivaRepositoryStatistics.getTotalFileCount() );

        deleteTestRepo( testRepoId );
    }
View Full Code Here

            {
                log.warn( "Error retrieving repository statistics: " + e.getMessage(), e );
            }
            if ( stats != null )
            {
                ArchivaRepositoryStatistics archivaRepositoryStatistics =
                    new BeanReplicator().replicateBean( stats, ArchivaRepositoryStatistics.class );
                archivaRepositoryStatistics.setDuration( archivaRepositoryStatistics.getScanEndTime().getTime()
                                                             - archivaRepositoryStatistics.getScanStartTime().getTime() );
                archivaRepositoryStatistics.setLastScanDate(
                    sdf.format( archivaRepositoryStatistics.getScanEndTime() ) );
                return archivaRepositoryStatistics;
            }

        }
        finally
View Full Code Here

TOP

Related Classes of org.apache.archiva.rest.api.model.ArchivaRepositoryStatistics

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.