@Service(value="systemStatusService#rest") public class DefaultSystemStatusService extends AbstractRestService implements SystemStatusService
| Modifier and Type | Field and Description | 
|---|---|
private Map<String,org.apache.archiva.redback.components.cache.Cache> | 
caches  | 
private Map<String,org.apache.archiva.redback.components.taskqueue.TaskQueue> | 
queues  | 
private RepositoryScanner | 
scanner  | 
archivaAdministration, config, httpServletRequest, httpServletResponse, log, managedRepositoryAdmin, proxyConnectorAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories| Constructor and Description | 
|---|
DefaultSystemStatusService(org.springframework.context.ApplicationContext applicationContext,
                          RepositoryScanner scanner)  | 
| Modifier and Type | Method and Description | 
|---|---|
Boolean | 
clearAllCaches()  | 
Boolean | 
clearCache(String cacheKey)  | 
private static String | 
formatMemory(long l)  | 
List<CacheEntry> | 
getCacheEntries()  | 
String | 
getCurrentServerTime(String locale)  | 
String | 
getMemoryStatus()  | 
List<QueueEntry> | 
getQueueEntries()  | 
List<RepositoryScannerStatistics> | 
getRepositoryScannerStatistics()  | 
private List<ConsumerScanningStatistics> | 
mapConsumerScanningStatistics(RepositoryScannerInstance instance)  | 
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEventprivate RepositoryScanner scanner
@Inject public DefaultSystemStatusService(org.springframework.context.ApplicationContext applicationContext, RepositoryScanner scanner)
public String getMemoryStatus() throws ArchivaRestServiceException
getMemoryStatus in interface SystemStatusServiceArchivaRestServiceExceptionprivate static String formatMemory(long l)
public String getCurrentServerTime(String locale) throws ArchivaRestServiceException
getCurrentServerTime in interface SystemStatusServiceArchivaRestServiceExceptionpublic List<QueueEntry> getQueueEntries() throws ArchivaRestServiceException
getQueueEntries in interface SystemStatusServiceArchivaRestServiceExceptionpublic List<CacheEntry> getCacheEntries() throws ArchivaRestServiceException
getCacheEntries in interface SystemStatusServiceArchivaRestServiceExceptionpublic Boolean clearCache(String cacheKey) throws ArchivaRestServiceException
clearCache in interface SystemStatusServiceArchivaRestServiceExceptionpublic Boolean clearAllCaches() throws ArchivaRestServiceException
clearAllCaches in interface SystemStatusServiceArchivaRestServiceExceptionpublic List<RepositoryScannerStatistics> getRepositoryScannerStatistics() throws ArchivaRestServiceException
getRepositoryScannerStatistics in interface SystemStatusServiceArchivaRestServiceExceptionprivate List<ConsumerScanningStatistics> mapConsumerScanningStatistics(RepositoryScannerInstance instance)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.