org.apache.archiva.rest.services
Class DefaultSystemStatusService

java.lang.Object
  extended by org.apache.archiva.rest.services.AbstractRestService
      extended by org.apache.archiva.rest.services.DefaultSystemStatusService
All Implemented Interfaces:
org.apache.archiva.rest.api.services.SystemStatusService

@Service(value="systemStatusService#rest")
public class DefaultSystemStatusService
extends AbstractRestService
implements org.apache.archiva.rest.api.services.SystemStatusService

Since:
1.4-M3
Author:
Olivier Lamy

Field Summary
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
archivaAdministration, httpServletRequest, log, managedRepositoryAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
 
Constructor Summary
DefaultSystemStatusService(org.springframework.context.ApplicationContext applicationContext, org.apache.archiva.repository.scanner.RepositoryScanner scanner)
           
 
Method Summary
 Boolean clearAllCaches()
           
 Boolean clearCache(String cacheKey)
           
 List<org.apache.archiva.rest.api.model.CacheEntry> getCacheEntries()
           
 String getCurrentServerTime(String locale)
           
 String getMemoryStatus()
           
 List<org.apache.archiva.rest.api.model.QueueEntry> getQueueEntries()
           
 List<org.apache.archiva.rest.api.model.RepositoryScannerStatistics> getRepositoryScannerStatistics()
           
 
Methods inherited from class org.apache.archiva.rest.services.AbstractRestService
buildArtifacts, doScanRepository, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSystemStatusService

@Inject
public DefaultSystemStatusService(org.springframework.context.ApplicationContext applicationContext,
                                         org.apache.archiva.repository.scanner.RepositoryScanner scanner)
Method Detail

getMemoryStatus

public String getMemoryStatus()
                       throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getMemoryStatus in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getCurrentServerTime

public String getCurrentServerTime(String locale)
                            throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getCurrentServerTime in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getQueueEntries

public List<org.apache.archiva.rest.api.model.QueueEntry> getQueueEntries()
                                                                   throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getQueueEntries in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getCacheEntries

public List<org.apache.archiva.rest.api.model.CacheEntry> getCacheEntries()
                                                                   throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getCacheEntries in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

clearCache

public Boolean clearCache(String cacheKey)
                   throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
clearCache in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

clearAllCaches

public Boolean clearAllCaches()
                       throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
clearAllCaches in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getRepositoryScannerStatistics

public List<org.apache.archiva.rest.api.model.RepositoryScannerStatistics> getRepositoryScannerStatistics()
                                                                                                   throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getRepositoryScannerStatistics in interface org.apache.archiva.rest.api.services.SystemStatusService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.