@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, triggerAuditEvent
private RepositoryScanner scanner
@Inject public DefaultSystemStatusService(org.springframework.context.ApplicationContext applicationContext, RepositoryScanner scanner)
public String getMemoryStatus() throws ArchivaRestServiceException
getMemoryStatus
in interface SystemStatusService
ArchivaRestServiceException
private static String formatMemory(long l)
public String getCurrentServerTime(String locale) throws ArchivaRestServiceException
getCurrentServerTime
in interface SystemStatusService
ArchivaRestServiceException
public List<QueueEntry> getQueueEntries() throws ArchivaRestServiceException
getQueueEntries
in interface SystemStatusService
ArchivaRestServiceException
public List<CacheEntry> getCacheEntries() throws ArchivaRestServiceException
getCacheEntries
in interface SystemStatusService
ArchivaRestServiceException
public Boolean clearCache(String cacheKey) throws ArchivaRestServiceException
clearCache
in interface SystemStatusService
ArchivaRestServiceException
public Boolean clearAllCaches() throws ArchivaRestServiceException
clearAllCaches
in interface SystemStatusService
ArchivaRestServiceException
public List<RepositoryScannerStatistics> getRepositoryScannerStatistics() throws ArchivaRestServiceException
getRepositoryScannerStatistics
in interface SystemStatusService
ArchivaRestServiceException
private List<ConsumerScanningStatistics> mapConsumerScanningStatistics(RepositoryScannerInstance instance)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.